SYMBOL INDEX (2307 symbols across 337 files) FILE: 1-basics/1_basics/01_vars_1/01_vars_1.go function main (line 5) | func main() { FILE: 1-basics/1_basics/02_vars_2/02_vars_2.go function main (line 5) | func main() { FILE: 1-basics/1_basics/03_const/03_const.go constant pi (line 5) | pi = 3.141 constant hello (line 7) | hello = "Привет" constant e (line 8) | e = 2.718 constant zero (line 11) | zero = iota constant _ (line 12) | _ constant two (line 13) | two constant three (line 14) | three constant _ (line 17) | _ = iota constant KB (line 18) | KB uint64 = 1 << (10 * iota) constant MB (line 19) | MB constant year (line 23) | year = 2017 constant yearTyped (line 25) | yearTyped int = 2017 function main (line 28) | func main() { FILE: 1-basics/1_basics/04_pointers/04_pointers.go function main (line 3) | func main() { FILE: 1-basics/1_basics/05_array/05_array.go function main (line 5) | func main() { FILE: 1-basics/1_basics/06_slice_1/06_slice_1.go function main (line 5) | func main() { FILE: 1-basics/1_basics/07_slice_2/07_slice_2.go function main (line 5) | func main() { FILE: 1-basics/1_basics/08_strings/08_strings.go function main (line 8) | func main() { FILE: 1-basics/1_basics/09_map/09_map.go function main (line 5) | func main() { FILE: 1-basics/1_basics/10_control/10_control.go function main (line 5) | func main() { FILE: 1-basics/1_basics/11_loop/11_loop.go function main (line 5) | func main() { FILE: 1-basics/1_basics/12_types/12_types.go type UserID (line 3) | type UserID function main (line 5) | func main() { FILE: 1-basics/1_basics/13_generic/1_generic/main.go function equalInt (line 5) | func equalInt(a, b int) bool { function equalFloat (line 9) | func equalFloat(a, b float64) bool { function equal (line 15) | func equal[T int | float64](a, b T) bool { type MyType (line 20) | type MyType function equalWithAlias (line 22) | func equalWithAlias[T ~int | ~float64](a, b T) bool { function KeyExists (line 26) | func KeyExists[T any](m map[string]T, key string) bool { function main (line 31) | func main() { FILE: 1-basics/1_basics/13_generic/2_methods/methods.go type Box (line 9) | type Box struct method GetValue (line 14) | func (b Box[T]) GetValue() T { method SetValue (line 19) | func (b *Box[T]) SetValue(v T) { type Number (line 24) | type Number interface type Calculator (line 28) | type Calculator struct method Add (line 33) | func (c Calculator[T]) Add(a T) T { method Multiply (line 37) | func (c Calculator[T]) Multiply(a T) T { type Container (line 42) | type Container struct method ToJSON (line 46) | func (c Container[T]) ToJSON() ([]byte, error) { method FromJSON (line 50) | func (c *Container[T]) FromJSON(data []byte) error { function CompareWith (line 55) | func CompareWith[T any, U any](b Box[T], other U, compareFunc func(T, U)... type Cache (line 60) | type Cache struct function NewCache (line 64) | func NewCache[K comparable, V any]() *Cache[K, V] { method Set (line 70) | func (c *Cache[K, V]) Set(key K, value V) { method Get (line 74) | func (c *Cache[K, V]) Get(key K) (V, bool) { method Delete (line 79) | func (c *Cache[K, V]) Delete(key K) { type Stringer (line 84) | type Stringer interface type Printer (line 88) | type Printer struct method Print (line 92) | func (p Printer[T]) Print() string { type MyInt (line 97) | type MyInt method String (line 99) | func (m MyInt) String() string { function main (line 103) | func main() { FILE: 1-basics/2_functions/1_functions/1_functions.go function singleIn (line 6) | func singleIn(in int) int { function multIn (line 11) | func multIn(a, b int, c int) int { function namedReturn (line 16) | func namedReturn() (out int) { function multipleReturn (line 22) | func multipleReturn(in int) (int, error) { function multipleNamedReturn (line 30) | func multipleNamedReturn(ok bool) (rez int, err error) { function sum (line 42) | func sum(in ...int) (result int) { function main (line 50) | func main() { FILE: 1-basics/2_functions/2_firstclass/2_firstclass.go function doNothing (line 6) | func doNothing() { function main (line 10) | func main() { FILE: 1-basics/2_functions/3_defer/3_defer.go function getSomeVars (line 5) | func getSomeVars() string { function main (line 10) | func main() { FILE: 1-basics/2_functions/4_recover/4_recover.go function deferTest (line 7) | func deferTest() { function main (line 24) | func main() { FILE: 1-basics/3_structs/1_structs/1_structs.go type Person (line 5) | type Person struct type Account (line 11) | type Account struct function main (line 19) | func main() { FILE: 1-basics/3_structs/2_methods/2_methods.go type Person (line 5) | type Person struct method UpdateName (line 11) | func (p Person) UpdateName(name string) { method SetName (line 16) | func (p *Person) SetName(name string) { type Account (line 20) | type Account struct method SetName (line 26) | func (p *Account) SetName(name string) { type MySlice (line 30) | type MySlice method Add (line 32) | func (sl *MySlice) Add(val int) { method Count (line 36) | func (sl *MySlice) Count() int { function main (line 40) | func main() { FILE: 1-basics/4_interfaces/1.2_basic_sort/1_sort.go type Student (line 8) | type Student struct type Students (line 13) | type Students method Len (line 15) | func (sts Students) Len() int { return len(sts) } method Swap (line 16) | func (sts Students) Swap(a, b int) { sts[a], sts[b] = sts[b], sts... method Less (line 17) | func (sts Students) Less(a, b int) bool { return sts[a].Age < sts[b].A... function main (line 19) | func main() { FILE: 1-basics/4_interfaces/1_basic/1_basic.go type Payer (line 7) | type Payer interface type Wallet (line 11) | type Wallet struct method Pay (line 15) | func (w *Wallet) Pay(amount int) error { function Buy (line 23) | func Buy(p Payer) { function main (line 31) | func main() { FILE: 1-basics/4_interfaces/2_many/2_many.go type Wallet (line 9) | type Wallet struct method Pay (line 13) | func (w *Wallet) Pay(amount int) error { type Card (line 23) | type Card struct method Pay (line 31) | func (c *Card) Pay(amount int) error { type ApplePay (line 41) | type ApplePay struct method Pay (line 46) | func (a *ApplePay) Pay(amount int) error { type Payer (line 56) | type Payer interface function Buy (line 60) | func Buy(p Payer) { function main (line 71) | func main() { FILE: 1-basics/4_interfaces/3_embed/3_embed.go type Phone (line 7) | type Phone struct method Pay (line 12) | func (p *Phone) Pay(amount int) error { method Ring (line 20) | func (p *Phone) Ring(number string) error { type Payer (line 29) | type Payer interface type Ringer (line 33) | type Ringer interface type NFCPhone (line 37) | type NFCPhone interface function PayForMetwiWithPhone (line 44) | func PayForMetwiWithPhone(phone NFCPhone) { function main (line 55) | func main() { FILE: 1-basics/4_interfaces/4_cast/4_cast.go type Wallet (line 9) | type Wallet struct method Pay (line 13) | func (w *Wallet) Pay(amount int) error { type Card (line 23) | type Card struct method Pay (line 31) | func (c *Card) Pay(amount int) error { type ApplePay (line 41) | type ApplePay struct method Pay (line 46) | func (a *ApplePay) Pay(amount int) error { type Payer (line 56) | type Payer interface function Buy (line 62) | func Buy(p Payer) { function main (line 86) | func main() { FILE: 1-basics/4_interfaces/5_empty_1/5_empty_1.go type Wallet (line 8) | type Wallet struct method Pay (line 12) | func (w *Wallet) Pay(amount int) error { method String (line 20) | func (w *Wallet) String() string { function main (line 26) | func main() { FILE: 1-basics/4_interfaces/6_empty_2/6_empty_2.go type Wallet (line 10) | type Wallet struct method Pay (line 14) | func (w *Wallet) Pay(amount int) error { method String (line 22) | func (w *Wallet) String() string { type Payer (line 28) | type Payer interface function Buy (line 34) | func Buy(in interface{}) { function main (line 53) | func main() { FILE: 1-basics/5_visibility/main.go function init (line 9) | func init() { function main (line 13) | func main() { FILE: 1-basics/5_visibility/person/func.go function NewPerson (line 7) | func NewPerson(id int, name, secret string) *Person { function GetSecret (line 15) | func GetSecret(p *Person) string { function printSecret (line 19) | func printSecret(p *Person) { FILE: 1-basics/5_visibility/person/person.go function init (line 10) | func init() { function init (line 14) | func init() { type Person (line 18) | type Person struct method UpdateSecret (line 24) | func (p Person) UpdateSecret(secret string) { FILE: 1-basics/6_uniq/basic/main.go function main (line 9) | func main() { FILE: 1-basics/6_uniq/with_tests/main.go function uniq (line 10) | func uniq(input io.Reader, output io.Writer) error { function main (line 27) | func main() { FILE: 1-basics/6_uniq/with_tests/main_test.go function TestOK (line 26) | func TestOK(t *testing.T) { function TestFail (line 39) | func TestFail(t *testing.T) { FILE: 10-performance/1_reflect/1_print/reflect_1.go type UserID (line 8) | type UserID type UserID2 (line 10) | type UserID2 type User (line 12) | type User struct function PrintReflect (line 19) | func PrintReflect(u interface{}) error { function main (line 36) | func main() { FILE: 10-performance/1_reflect/2_unpack/reflect_2.go type User (line 10) | type User struct function UnpackReflect (line 17) | func UnpackReflect(u interface{}, data []byte) error { function main (line 56) | func main() { FILE: 10-performance/2_codegen/gen/codegen.go type tpl (line 17) | type tpl struct function main (line 39) | func main() { FILE: 10-performance/2_codegen/pack/marshaller.go method Unpack (line 6) | func (in *User) Unpack(data []byte) error { FILE: 10-performance/2_codegen/pack/unpack.go type User (line 8) | type User struct type Avatar (line 15) | type Avatar struct function main (line 22) | func main() { FILE: 10-performance/3_perfomance_1/1_unpack/unpack_test.go type User (line 27) | type User struct method UnpackBin (line 50) | func (in *User) UnpackBin(data []byte) error { function BenchmarkCodegen (line 34) | func BenchmarkCodegen(b *testing.B) { function BenchmarkReflect (line 42) | func BenchmarkReflect(b *testing.B) { function UnpackReflect (line 72) | func UnpackReflect(u interface{}, data []byte) error { FILE: 10-performance/3_perfomance_1/2_prealloc/prealloc_test.go constant iterNum (line 8) | iterNum = 1000 function BenchmarkEmptyAppend (line 10) | func BenchmarkEmptyAppend(b *testing.B) { function BenchmarkPreallocAppend (line 19) | func BenchmarkPreallocAppend(b *testing.B) { FILE: 10-performance/3_perfomance_1/3_pool/pool_test.go constant iterNum (line 10) | iterNum = 100 type PublicPage (line 12) | type PublicPage struct function BenchmarkAllocNew (line 40) | func BenchmarkAllocNew(b *testing.B) { function BenchmarkAllocPool (line 55) | func BenchmarkAllocPool(b *testing.B) { FILE: 10-performance/3_perfomance_1/4_string/string_test.go function BenchmarkRegExp (line 15) | func BenchmarkRegExp(b *testing.B) { function BenchmarkRegCompiled (line 22) | func BenchmarkRegCompiled(b *testing.B) { function BenchmarkStrContains (line 29) | func BenchmarkStrContains(b *testing.B) { FILE: 10-performance/3_perfomance_1/5_json/json_test.go function BenchmarkDecodeStandart (line 17) | func BenchmarkDecodeStandart(b *testing.B) { function BenchmarkDecodeEasyjson (line 23) | func BenchmarkDecodeEasyjson(b *testing.B) { function BenchmarkEncodeStandart (line 29) | func BenchmarkEncodeStandart(b *testing.B) { function BenchmarkEncodeEasyjson (line 35) | func BenchmarkEncodeEasyjson(b *testing.B) { FILE: 10-performance/3_perfomance_1/5_json/struct.go type User (line 4) | type User struct type Client (line 12) | type Client struct FILE: 10-performance/3_perfomance_1/5_json/struct_easyjson.go function easyjson9f2eff5fDecodeSt (line 20) | func easyjson9f2eff5fDecodeSt(in *jlexer.Lexer, out *User) { function easyjson9f2eff5fEncodeSt (line 59) | func easyjson9f2eff5fEncodeSt(out *jwriter.Writer, in User) { method MarshalJSON (line 97) | func (v User) MarshalJSON() ([]byte, error) { method MarshalEasyJSON (line 104) | func (v User) MarshalEasyJSON(w *jwriter.Writer) { method UnmarshalJSON (line 109) | func (v *User) UnmarshalJSON(data []byte) error { method UnmarshalEasyJSON (line 116) | func (v *User) UnmarshalEasyJSON(l *jlexer.Lexer) { FILE: 10-performance/4_perfomance_2/1_optimize/pprof_1.go type Post (line 12) | type Post struct function handleSlow (line 20) | func handleSlow(w http.ResponseWriter, req *http.Request) { function main (line 29) | func main() { function handleFast (line 66) | func handleFast(w http.ResponseWriter, req *http.Request) { FILE: 10-performance/4_perfomance_2/2_leak_grtn/pprof_2.go type Post (line 10) | type Post struct function getPost (line 18) | func getPost(out chan []Post) { function longHeavyWork (line 27) | func longHeavyWork(ch chan bool) { function handleLeak (line 32) | func handleLeak(w http.ResponseWriter, req *http.Request) { function main (line 39) | func main() { FILE: 10-performance/4_perfomance_2/3_tracing/tracing.go type Post (line 12) | type Post struct function handle (line 20) | func handle(w http.ResponseWriter, req *http.Request) { function main (line 31) | func main() { FILE: 10-performance/5_testing/coverage_test.go type TestCase (line 8) | type TestCase struct function TestGetUser (line 14) | func TestGetUser(t *testing.T) { FILE: 10-performance/5_testing/main.go type User (line 8) | type User struct function GetUser (line 17) | func GetUser(key string) (*User, error) { FILE: 10-performance/6_xml_stream/main.go type User (line 10) | type User struct type Users (line 17) | type Users struct function CountStruct (line 60) | func CountStruct() { function CountDecoder (line 73) | func CountDecoder() { function main (line 105) | func main() { FILE: 10-performance/6_xml_stream/xml_test.go function BenchmarkCountStruct (line 7) | func BenchmarkCountStruct(b *testing.B) { function BenchmarkCountDecoder (line 13) | func BenchmarkCountDecoder(b *testing.B) { FILE: 10-performance/7_inline_escape/main.go type User (line 12) | type User struct method GetID (line 17) | func (u *User) GetID() int { function newUser (line 21) | func newUser(login string) *User { function setToZero (line 25) | func setToZero(in *int) { function main (line 32) | func main() { FILE: 10-performance/8_cgo/1_example/main.go function main (line 9) | func main() { FILE: 10-performance/8_cgo/2_performance/main.go function factorialCGo (line 20) | func factorialCGo(n int64) int64 { function factorialGo (line 24) | func factorialGo(n int64) *big.Int { function main (line 32) | func main() { FILE: 10-performance/8_cgo/3_usage/main.go function init (line 19) | func init() { function main (line 30) | func main() { function renderPage (line 39) | func renderPage(filePath string, page int, output string) error { FILE: 2-async/0_basic_error_handling/1_ignore_errors/main.go function main (line 13) | func main() { FILE: 2-async/0_basic_error_handling/2_panic/main.go function main (line 13) | func main() { FILE: 2-async/0_basic_error_handling/3_handling/main.go function handling (line 13) | func handling() error { function main (line 30) | func main() { FILE: 2-async/0_basic_error_handling/4_return/main.go type MyError (line 8) | type MyError struct method Error (line 12) | func (e MyError) Error() string { function bad (line 16) | func bad() error { function main (line 22) | func main() { FILE: 2-async/1_async/10_context_cancel/context_cancel.go function student (line 10) | func student(ctx context.Context, workerNum int, out chan<- int) { function main (line 23) | func main() { FILE: 2-async/1_async/10_context_timeout/context_parent/main.go function worker (line 9) | func worker(ctx context.Context, name string) { function main (line 20) | func main() { FILE: 2-async/1_async/10_context_timeout/context_timeout.go function worker (line 10) | func worker(ctx context.Context, workerNum int, out chan<- int) { function main (line 23) | func main() { FILE: 2-async/1_async/11_errgroup_1/errgroup_1.go constant goroutinesNum (line 11) | goroutinesNum = 3 constant badGorutineNum (line 12) | badGorutineNum = 2 function printGorutineNum (line 15) | func printGorutineNum(num int) error { function main (line 27) | func main() { FILE: 2-async/1_async/11_errgroup_2/errgroup_2.go constant goroutinesNum (line 11) | goroutinesNum = 3 constant badGorutineNum (line 12) | badGorutineNum = 2 function printGorutineNum (line 15) | func printGorutineNum(ctx context.Context, num int) error { function main (line 34) | func main() { FILE: 2-async/1_async/12_atomic_1/atomic_1.go function inc (line 12) | func inc() { function main (line 20) | func main() { FILE: 2-async/1_async/12_atomic_2/atomic_2.go function inc (line 11) | func inc() { function main (line 15) | func main() { FILE: 2-async/1_async/12_atomic_2/with_bench/mutex_test.go function BenchmarkMutexParallel (line 15) | func BenchmarkMutexParallel(b *testing.B) { function BenchmarkAtomicParallel (line 25) | func BenchmarkAtomicParallel(b *testing.B) { function BenchmarkLocalCounter (line 33) | func BenchmarkLocalCounter(b *testing.B) { FILE: 2-async/1_async/13_ratelim/ratelim.go constant iterationsNum (line 12) | iterationsNum = 6 constant goroutinesNum (line 13) | goroutinesNum = 5 constant quotaLimit (line 14) | quotaLimit = 2 function startWorker (line 17) | func startWorker(in int, wg *sync.WaitGroup, quotaCh chan struct{}) { function main (line 37) | func main() { function formatWork (line 48) | func formatWork(in, j int) string { FILE: 2-async/1_async/14_once/once.go function Init (line 8) | func Init() { function init (line 12) | func init() { function main (line 16) | func main() { FILE: 2-async/1_async/1_goroutines/goroutines.go constant goroutinesNum (line 8) | goroutinesNum = 7 function main (line 10) | func main() { FILE: 2-async/1_async/1_goroutines/i_ptr/main.go constant goroutinesNum (line 7) | goroutinesNum = 7 function main (line 9) | func main() { FILE: 2-async/1_async/1_goroutines/mem/main.go function main (line 9) | func main() { FILE: 2-async/1_async/1_goroutines_2/goroutines.go constant iterationsNum (line 10) | iterationsNum = 6 constant goroutinesNum (line 11) | goroutinesNum = 6 function doWork (line 14) | func doWork(th int) { function main (line 24) | func main() { function formatWork (line 33) | func formatWork(in, j int) string { FILE: 2-async/1_async/2_chan/chan_1.go function main (line 7) | func main() { FILE: 2-async/1_async/2_chan_2/chan_2.go function main (line 8) | func main() { FILE: 2-async/1_async/3_workerpool/1_workerpool.go constant goroutinesNum (line 10) | goroutinesNum = 3 function startWorker (line 12) | func startWorker(workerNum int, in <-chan string) { function formatWork (line 20) | func formatWork(in int, input string) string { function printFinishWork (line 27) | func printFinishWork(in int) { function main (line 34) | func main() { FILE: 2-async/1_async/3_workerpool/2_workerpool_reusable.go type workerPool (line 3) | type workerPool struct method work (line 18) | func (wp workerPool) work() { method PutTask (line 30) | func (wp workerPool) PutTask(task func()) { function NewWorkerPool (line 8) | func NewWorkerPool(maxWorkers int) workerPool { FILE: 2-async/1_async/4_race_1/race_1.go function main (line 5) | func main() { FILE: 2-async/1_async/4_race_2/race_2.go function main (line 8) | func main() { FILE: 2-async/1_async/4_race_2/race_flag/working_race.go function main (line 9) | func main() { FILE: 2-async/1_async/4_race_3/race_3.go function main (line 11) | func main() { FILE: 2-async/1_async/4_race_3_bench/race_test.go function BenchmarkMapWithRWMutex (line 8) | func BenchmarkMapWithRWMutex(b *testing.B) { function BenchmarkMapWithMutex (line 34) | func BenchmarkMapWithMutex(b *testing.B) { FILE: 2-async/1_async/5_tick/tick.go function main (line 8) | func main() { FILE: 2-async/1_async/5_tick_example/5_ping_pong/main.go function main (line 7) | func main() { FILE: 2-async/1_async/5_tick_example/main.go function main (line 8) | func main() { FILE: 2-async/1_async/6_afterfunc/afterfunc.go function sayHello (line 8) | func sayHello() { function main (line 12) | func main() { FILE: 2-async/1_async/7_select_1/select_1.go function main (line 7) | func main() { FILE: 2-async/1_async/7_select_2/select_2.go function main (line 7) | func main() { FILE: 2-async/1_async/7_select_2_new/close_buff/main.go function main (line 7) | func main() { FILE: 2-async/1_async/7_select_2_new/select_2_new.go function main (line 9) | func main() { FILE: 2-async/1_async/7_select_3/close_all/main.go function worker (line 8) | func worker(id int, cancelCh chan struct{}) { function main (line 22) | func main() { FILE: 2-async/1_async/7_select_3/close_signal/main.go function worker (line 11) | func worker(id int, done <-chan struct{}) { function main (line 24) | func main() { FILE: 2-async/1_async/7_select_3/select_3.go function main (line 7) | func main() { FILE: 2-async/1_async/8_wait_1/wait_1.go function main (line 8) | func main() { FILE: 2-async/1_async/8_wait_2/ping_pong/main.go function main (line 9) | func main() { FILE: 2-async/1_async/8_wait_2/wait_2.go constant iterationsNum (line 11) | iterationsNum = 7 constant goroutinesNum (line 12) | goroutinesNum = 5 function doWork (line 15) | func doWork(in int, wg *sync.WaitGroup) { function main (line 23) | func main() { function formatWork (line 35) | func formatWork(in, j int) string { FILE: 2-async/1_async/8_wait_3/wait_3.go constant iterationsNum (line 12) | iterationsNum = 7 constant goroutinesNum (line 13) | goroutinesNum = 5 function doWork (line 16) | func doWork(in int) { function main (line 23) | func main() { function formatWork (line 34) | func formatWork(in, j int) string { FILE: 2-async/1_async/9_timeout/timeout.go function longSQLQuery (line 8) | func longSQLQuery() chan bool { function main (line 17) | func main() { FILE: 3-web/0_json/0_simple_json/simple_json.go type User (line 8) | type User struct function main (line 16) | func main() { FILE: 3-web/0_json/1_struct_tags/struct_tags.go type User (line 8) | type User struct function main (line 15) | func main() { FILE: 3-web/0_json/2_custom/custom.go type Company (line 10) | type Company method MarshalJSON (line 13) | func (c Company) MarshalJSON() ([]byte, error) { method UnmarshalJSON (line 18) | func (c *Company) UnmarshalJSON(data []byte) error { type User (line 28) | type User struct method MarshalJSON (line 36) | func (u *User) MarshalJSON() ([]byte, error) { method UnmarshalJSON (line 49) | func (u *User) UnmarshalJSON(data []byte) error { function main (line 70) | func main() { FILE: 3-web/0_json/3_dynamic/dynamic.go function main (line 15) | func main() { FILE: 3-web/1_net/net_listen.go function handleConnection (line 9) | func handleConnection(conn net.Conn) { function main (line 31) | func main() { FILE: 3-web/2_http/0_http_server/0_basic/basic.go function handler (line 8) | func handler(w http.ResponseWriter, r *http.Request) { function main (line 14) | func main() { FILE: 3-web/2_http/0_http_server/1_pages/pages.go function handler (line 8) | func handler(w http.ResponseWriter, r *http.Request) { function main (line 12) | func main() { FILE: 3-web/2_http/0_http_server/2_servehttp/servehttp.go type Handler (line 8) | type Handler struct method ServeHTTP (line 12) | func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) { function main (line 16) | func main() { FILE: 3-web/2_http/0_http_server/3_mux/mux.go function handler (line 9) | func handler(w http.ResponseWriter, r *http.Request) { function main (line 13) | func main() { FILE: 3-web/2_http/0_http_server/4_servers/servers.go function runServer (line 8) | func runServer(addr string) { function main (line 24) | func main() { FILE: 3-web/2_http/1_request/0_get/get.go function handler (line 8) | func handler(w http.ResponseWriter, r *http.Request) { function main (line 14) | func main() { FILE: 3-web/2_http/1_request/1_post/post.go function mainPage (line 20) | func mainPage(w http.ResponseWriter, r *http.Request) { function main (line 33) | func main() { FILE: 3-web/2_http/1_request/2_cookies/cookies.go function mainPage (line 9) | func mainPage(w http.ResponseWriter, r *http.Request) { function loginPage (line 22) | func loginPage(w http.ResponseWriter, r *http.Request) { function logoutPage (line 34) | func logoutPage(w http.ResponseWriter, r *http.Request) { function main (line 47) | func main() { FILE: 3-web/2_http/1_request/3_headers/headers.go function handler (line 8) | func handler(w http.ResponseWriter, r *http.Request) { function main (line 15) | func main() { FILE: 3-web/2_http/2_http_client/client.go function startServer (line 14) | func startServer() { function runGet (line 34) | func runGet() { function runGetFullReq (line 48) | func runGetFullReq() { function runTransportAndPost (line 72) | func runTransportAndPost() { function main (line 110) | func main() { FILE: 3-web/2_http/3_files/0_file_upload/file_upload.go function mainPage (line 22) | func mainPage(w http.ResponseWriter, r *http.Request) { function uploadPage (line 26) | func uploadPage(w http.ResponseWriter, r *http.Request) { type Params (line 44) | type Params struct function uploadRawBody (line 53) | func uploadRawBody(w http.ResponseWriter, r *http.Request) { function main (line 70) | func main() { FILE: 3-web/2_http/3_files/1_static/static.go function handler (line 8) | func handler(w http.ResponseWriter, r *http.Request) { function main (line 16) | func main() { FILE: 3-web/2_http/4_httptest/0_client/client_test.go type TestCase (line 10) | type TestCase struct function GetUser (line 16) | func GetUser(w http.ResponseWriter, r *http.Request) { function TestGetUser (line 27) | func TestGetUser(t *testing.T) { FILE: 3-web/2_http/4_httptest/1_server/server_test.go type TestCase (line 12) | type TestCase struct type CheckoutResult (line 18) | type CheckoutResult struct function CheckoutDummy (line 24) | func CheckoutDummy(w http.ResponseWriter, r *http.Request) { type Cart (line 43) | type Cart struct method Checkout (line 47) | func (c *Cart) Checkout(id string) (*CheckoutResult, error) { function TestCartCheckout (line 69) | func TestCartCheckout(t *testing.T) { FILE: 3-web/3_template/0_inline/inline.go type tplParams (line 9) | type tplParams struct constant EXAMPLE (line 14) | EXAMPLE = ` function handle (line 20) | func handle(w http.ResponseWriter, r *http.Request) { function main (line 32) | func main() { FILE: 3-web/3_template/1_file/file.go type User (line 9) | type User struct function main (line 15) | func main() { FILE: 3-web/3_template/2_func/func.go type User (line 9) | type User struct function IsUserOdd (line 15) | func IsUserOdd(u *User) bool { function main (line 19) | func main() { FILE: 3-web/3_template/3_method/method.go type User (line 9) | type User struct method PrintActive (line 15) | func (u *User) PrintActive() string { function main (line 22) | func main() { FILE: 3-web/4_json_http/main.go type UserInput (line 11) | type UserInput struct type User (line 16) | type User struct type Handlers (line 22) | type Handlers struct method HandleCreateUser (line 27) | func (h *Handlers) HandleCreateUser(w http.ResponseWriter, r *http.Req... method HandleListUsers (line 56) | func (h *Handlers) HandleListUsers(w http.ResponseWriter, r *http.Requ... function main (line 68) | func main() { FILE: 3-web/4_json_http/main_test.go function TestCreateUsers (line 14) | func TestCreateUsers(t *testing.T) { function TestGetUsers (line 46) | func TestGetUsers(t *testing.T) { FILE: 4-api/1_rpc/jsonrpc/books.go type Book (line 8) | type Book struct type BookStore (line 14) | type BookStore struct method AddBook (line 26) | func (bs *BookStore) AddBook(in *Book, out *Book) error { method GetBooks (line 36) | func (bs *BookStore) GetBooks(in int, out *[]*Book) error { function NewBookStore (line 19) | func NewBookStore() *BookStore { FILE: 4-api/1_rpc/jsonrpc/server.go type HttpConn (line 12) | type HttpConn struct method Read (line 17) | func (c *HttpConn) Read(p []byte) (n int, err error) { return c.in.Re... method Write (line 18) | func (c *HttpConn) Write(d []byte) (n int, err error) { return c.out.W... method Close (line 19) | func (c *HttpConn) Close() error { return nil } type Handler (line 43) | type Handler struct method ServeHTTP (line 47) | func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) { function main (line 64) | func main() { FILE: 4-api/1_rpc/main.go function login (line 8) | func login(w http.ResponseWriter, r *http.Request) { function signup (line 13) | func signup(w http.ResponseWriter, r *http.Request) { function main (line 18) | func main() { FILE: 4-api/1_rpc/net-rpc/books.go type Book (line 8) | type Book struct type BookStore (line 14) | type BookStore struct method AddBook (line 26) | func (bs *BookStore) AddBook(in *Book, out *Book) error { method GetBooks (line 36) | func (bs *BookStore) GetBooks(in int, out *[]*Book) error { function NewBookStore (line 19) | func NewBookStore() *BookStore { FILE: 4-api/1_rpc/net-rpc/client.go function main (line 8) | func main() { FILE: 4-api/1_rpc/net-rpc/server.go function main (line 11) | func main() { FILE: 4-api/2_rest/books.go type Book (line 8) | type Book struct type BookStore (line 14) | type BookStore struct method AddBook (line 27) | func (bs *BookStore) AddBook(in *Book) (uint, error) { method GetBooks (line 40) | func (bs *BookStore) GetBooks() ([]*Book, error) { function NewBookStore (line 20) | func NewBookStore() *BookStore { FILE: 4-api/2_rest/main.go type Result (line 12) | type Result struct type BooksHandler (line 17) | type BooksHandler struct method List (line 21) | func (api *BooksHandler) List(w http.ResponseWriter, r *http.Request) { method Add (line 37) | func (api *BooksHandler) Add(w http.ResponseWriter, r *http.Request) { method BookByID (line 57) | func (api *BooksHandler) BookByID(w http.ResponseWriter, r *http.Reque... function main (line 89) | func main() { FILE: 4-api/3_graphql/gqlgen/generated.go function NewExecutableSchema (line 22) | func NewExecutableSchema(cfg Config) graphql.ExecutableSchema { type Config (line 30) | type Config struct type ResolverRoot (line 36) | type ResolverRoot interface type DirectiveRoot (line 40) | type DirectiveRoot struct type ComplexityRoot (line 43) | type ComplexityRoot struct type QueryResolver (line 60) | type QueryResolver interface type executableSchema (line 64) | type executableSchema struct method Schema (line 70) | func (e *executableSchema) Schema() *ast.Schema { method Complexity (line 74) | func (e *executableSchema) Complexity(typeName, field string, childCom... method Query (line 125) | func (e *executableSchema) Query(ctx context.Context, op *ast.Operatio... method Mutation (line 142) | func (e *executableSchema) Mutation(ctx context.Context, op *ast.Opera... method Subscription (line 146) | func (e *executableSchema) Subscription(ctx context.Context, op *ast.O... type executionContext (line 150) | type executionContext struct method introspectSchema (line 155) | func (ec *executionContext) introspectSchema() (*introspection.Schema,... method introspectType (line 162) | func (ec *executionContext) introspectType(name string) (*introspectio... method field_Query___type_args (line 191) | func (ec *executionContext) field_Query___type_args(ctx context.Contex... method field___Type_enumValues_args (line 205) | func (ec *executionContext) field___Type_enumValues_args(ctx context.C... method field___Type_fields_args (line 219) | func (ec *executionContext) field___Type_fields_args(ctx context.Conte... method _Author_name (line 241) | func (ec *executionContext) _Author_name(ctx context.Context, field gr... method _Book_id (line 278) | func (ec *executionContext) _Book_id(ctx context.Context, field graphq... method _Book_title (line 315) | func (ec *executionContext) _Book_title(ctx context.Context, field gra... method _Book_price (line 352) | func (ec *executionContext) _Book_price(ctx context.Context, field gra... method _Book_author (line 389) | func (ec *executionContext) _Book_author(ctx context.Context, field gr... method _Query_books (line 423) | func (ec *executionContext) _Query_books(ctx context.Context, field gr... method _Query___type (line 460) | func (ec *executionContext) _Query___type(ctx context.Context, field g... method _Query___schema (line 501) | func (ec *executionContext) _Query___schema(ctx context.Context, field... method ___Directive_name (line 535) | func (ec *executionContext) ___Directive_name(ctx context.Context, fie... method ___Directive_description (line 572) | func (ec *executionContext) ___Directive_description(ctx context.Conte... method ___Directive_locations (line 606) | func (ec *executionContext) ___Directive_locations(ctx context.Context... method ___Directive_args (line 643) | func (ec *executionContext) ___Directive_args(ctx context.Context, fie... method ___EnumValue_name (line 680) | func (ec *executionContext) ___EnumValue_name(ctx context.Context, fie... method ___EnumValue_description (line 717) | func (ec *executionContext) ___EnumValue_description(ctx context.Conte... method ___EnumValue_isDeprecated (line 751) | func (ec *executionContext) ___EnumValue_isDeprecated(ctx context.Cont... method ___EnumValue_deprecationReason (line 788) | func (ec *executionContext) ___EnumValue_deprecationReason(ctx context... method ___Field_name (line 822) | func (ec *executionContext) ___Field_name(ctx context.Context, field g... method ___Field_description (line 859) | func (ec *executionContext) ___Field_description(ctx context.Context, ... method ___Field_args (line 893) | func (ec *executionContext) ___Field_args(ctx context.Context, field g... method ___Field_type (line 930) | func (ec *executionContext) ___Field_type(ctx context.Context, field g... method ___Field_isDeprecated (line 967) | func (ec *executionContext) ___Field_isDeprecated(ctx context.Context,... method ___Field_deprecationReason (line 1004) | func (ec *executionContext) ___Field_deprecationReason(ctx context.Con... method ___InputValue_name (line 1038) | func (ec *executionContext) ___InputValue_name(ctx context.Context, fi... method ___InputValue_description (line 1075) | func (ec *executionContext) ___InputValue_description(ctx context.Cont... method ___InputValue_type (line 1109) | func (ec *executionContext) ___InputValue_type(ctx context.Context, fi... method ___InputValue_defaultValue (line 1146) | func (ec *executionContext) ___InputValue_defaultValue(ctx context.Con... method ___Schema_types (line 1180) | func (ec *executionContext) ___Schema_types(ctx context.Context, field... method ___Schema_queryType (line 1217) | func (ec *executionContext) ___Schema_queryType(ctx context.Context, f... method ___Schema_mutationType (line 1254) | func (ec *executionContext) ___Schema_mutationType(ctx context.Context... method ___Schema_subscriptionType (line 1288) | func (ec *executionContext) ___Schema_subscriptionType(ctx context.Con... method ___Schema_directives (line 1322) | func (ec *executionContext) ___Schema_directives(ctx context.Context, ... method ___Type_kind (line 1359) | func (ec *executionContext) ___Type_kind(ctx context.Context, field gr... method ___Type_name (line 1396) | func (ec *executionContext) ___Type_name(ctx context.Context, field gr... method ___Type_description (line 1430) | func (ec *executionContext) ___Type_description(ctx context.Context, f... method ___Type_fields (line 1464) | func (ec *executionContext) ___Type_fields(ctx context.Context, field ... method ___Type_interfaces (line 1505) | func (ec *executionContext) ___Type_interfaces(ctx context.Context, fi... method ___Type_possibleTypes (line 1539) | func (ec *executionContext) ___Type_possibleTypes(ctx context.Context,... method ___Type_enumValues (line 1573) | func (ec *executionContext) ___Type_enumValues(ctx context.Context, fi... method ___Type_inputFields (line 1614) | func (ec *executionContext) ___Type_inputFields(ctx context.Context, f... method ___Type_ofType (line 1648) | func (ec *executionContext) ___Type_ofType(ctx context.Context, field ... method _Author (line 1696) | func (ec *executionContext) _Author(ctx context.Context, sel ast.Selec... method _Book (line 1723) | func (ec *executionContext) _Book(ctx context.Context, sel ast.Selecti... method _Query (line 1762) | func (ec *executionContext) _Query(ctx context.Context, sel ast.Select... method ___Directive (line 1806) | func (ec *executionContext) ___Directive(ctx context.Context, sel ast.... method ___EnumValue (line 1845) | func (ec *executionContext) ___EnumValue(ctx context.Context, sel ast.... method ___Field (line 1881) | func (ec *executionContext) ___Field(ctx context.Context, sel ast.Sele... method ___InputValue (line 1927) | func (ec *executionContext) ___InputValue(ctx context.Context, sel ast... method ___Schema (line 1963) | func (ec *executionContext) ___Schema(ctx context.Context, sel ast.Sel... method ___Type (line 2004) | func (ec *executionContext) ___Type(ctx context.Context, sel ast.Selec... method marshalNBook2githubᚗcomᚋgoᚑparkᚑmailᚑruᚋlecturesᚋ4ᚋ3_graphqlᚋgqlgenᚐBook (line 2049) | func (ec *executionContext) marshalNBook2githubᚗcomᚋgoᚑparkᚑmailᚑruᚋle... method marshalNBook2ᚕᚖgithubᚗcomᚋgoᚑparkᚑmailᚑruᚋlecturesᚋ4ᚋ3_graphqlᚋgqlgenᚐBook (line 2053) | func (ec *executionContext) marshalNBook2ᚕᚖgithubᚗcomᚋgoᚑparkᚑmailᚑruᚋ... method marshalNBook2ᚖgithubᚗcomᚋgoᚑparkᚑmailᚑruᚋlecturesᚋ4ᚋ3_graphqlᚋgqlgenᚐBook (line 2090) | func (ec *executionContext) marshalNBook2ᚖgithubᚗcomᚋgoᚑparkᚑmailᚑruᚋl... method unmarshalNBoolean2bool (line 2100) | func (ec *executionContext) unmarshalNBoolean2bool(ctx context.Context... method marshalNBoolean2bool (line 2104) | func (ec *executionContext) marshalNBoolean2bool(ctx context.Context, ... method unmarshalNFloat2float64 (line 2114) | func (ec *executionContext) unmarshalNFloat2float64(ctx context.Contex... method marshalNFloat2float64 (line 2118) | func (ec *executionContext) marshalNFloat2float64(ctx context.Context,... method unmarshalNID2string (line 2128) | func (ec *executionContext) unmarshalNID2string(ctx context.Context, v... method marshalNID2string (line 2132) | func (ec *executionContext) marshalNID2string(ctx context.Context, sel... method unmarshalNString2string (line 2142) | func (ec *executionContext) unmarshalNString2string(ctx context.Contex... method marshalNString2string (line 2146) | func (ec *executionContext) marshalNString2string(ctx context.Context,... method marshalN__Directive2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirective (line 2156) | func (ec *executionContext) marshalN__Directive2githubᚗcomᚋ99designsᚋg... method marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirective (line 2160) | func (ec *executionContext) marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋ... method unmarshalN__DirectiveLocation2string (line 2197) | func (ec *executionContext) unmarshalN__DirectiveLocation2string(ctx c... method marshalN__DirectiveLocation2string (line 2201) | func (ec *executionContext) marshalN__DirectiveLocation2string(ctx con... method unmarshalN__DirectiveLocation2ᚕstring (line 2211) | func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstring(ctx ... method marshalN__DirectiveLocation2ᚕstring (line 2231) | func (ec *executionContext) marshalN__DirectiveLocation2ᚕstring(ctx co... method marshalN__EnumValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValue (line 2268) | func (ec *executionContext) marshalN__EnumValue2githubᚗcomᚋ99designsᚋg... method marshalN__Field2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐField (line 2272) | func (ec *executionContext) marshalN__Field2githubᚗcomᚋ99designsᚋgqlge... method marshalN__InputValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue (line 2276) | func (ec *executionContext) marshalN__InputValue2githubᚗcomᚋ99designsᚋ... method marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue (line 2280) | func (ec *executionContext) marshalN__InputValue2ᚕgithubᚗcomᚋ99designs... method marshalN__Type2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType (line 2317) | func (ec *executionContext) marshalN__Type2githubᚗcomᚋ99designsᚋgqlgen... method marshalN__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType (line 2321) | func (ec *executionContext) marshalN__Type2ᚕgithubᚗcomᚋ99designsᚋgqlge... method marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType (line 2358) | func (ec *executionContext) marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlge... method unmarshalN__TypeKind2string (line 2368) | func (ec *executionContext) unmarshalN__TypeKind2string(ctx context.Co... method marshalN__TypeKind2string (line 2372) | func (ec *executionContext) marshalN__TypeKind2string(ctx context.Cont... method marshalOAuthor2githubᚗcomᚋgoᚑparkᚑmailᚑruᚋlecturesᚋ4ᚋ3_graphqlᚋgqlgenᚐAuthor (line 2382) | func (ec *executionContext) marshalOAuthor2githubᚗcomᚋgoᚑparkᚑmailᚑruᚋ... method marshalOAuthor2ᚖgithubᚗcomᚋgoᚑparkᚑmailᚑruᚋlecturesᚋ4ᚋ3_graphqlᚋgqlgenᚐAuthor (line 2386) | func (ec *executionContext) marshalOAuthor2ᚖgithubᚗcomᚋgoᚑparkᚑmailᚑru... method unmarshalOBoolean2bool (line 2393) | func (ec *executionContext) unmarshalOBoolean2bool(ctx context.Context... method marshalOBoolean2bool (line 2397) | func (ec *executionContext) marshalOBoolean2bool(ctx context.Context, ... method unmarshalOBoolean2ᚖbool (line 2401) | func (ec *executionContext) unmarshalOBoolean2ᚖbool(ctx context.Contex... method marshalOBoolean2ᚖbool (line 2409) | func (ec *executionContext) marshalOBoolean2ᚖbool(ctx context.Context,... method unmarshalOString2string (line 2416) | func (ec *executionContext) unmarshalOString2string(ctx context.Contex... method marshalOString2string (line 2420) | func (ec *executionContext) marshalOString2string(ctx context.Context,... method unmarshalOString2ᚖstring (line 2424) | func (ec *executionContext) unmarshalOString2ᚖstring(ctx context.Conte... method marshalOString2ᚖstring (line 2432) | func (ec *executionContext) marshalOString2ᚖstring(ctx context.Context... method marshalO__EnumValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValue (line 2439) | func (ec *executionContext) marshalO__EnumValue2ᚕgithubᚗcomᚋ99designsᚋ... method marshalO__Field2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐField (line 2479) | func (ec *executionContext) marshalO__Field2ᚕgithubᚗcomᚋ99designsᚋgqlg... method marshalO__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue (line 2519) | func (ec *executionContext) marshalO__InputValue2ᚕgithubᚗcomᚋ99designs... method marshalO__Schema2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐSchema (line 2559) | func (ec *executionContext) marshalO__Schema2githubᚗcomᚋ99designsᚋgqlg... method marshalO__Schema2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐSchema (line 2563) | func (ec *executionContext) marshalO__Schema2ᚖgithubᚗcomᚋ99designsᚋgql... method marshalO__Type2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType (line 2570) | func (ec *executionContext) marshalO__Type2githubᚗcomᚋ99designsᚋgqlgen... method marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType (line 2574) | func (ec *executionContext) marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlge... method marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType (line 2614) | func (ec *executionContext) marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlge... FILE: 4-api/3_graphql/gqlgen/models_gen.go type Author (line 5) | type Author struct type Book (line 9) | type Book struct FILE: 4-api/3_graphql/gqlgen/resolver.go type Resolver (line 7) | type Resolver struct method Query (line 9) | func (r *Resolver) Query() QueryResolver { type queryResolver (line 13) | type queryResolver struct method Books (line 15) | func (r *queryResolver) Books(ctx context.Context) ([]*Book, error) { FILE: 4-api/3_graphql/gqlgen/server/server.go constant defaultPort (line 13) | defaultPort = "8080" function main (line 15) | func main() { FILE: 4-api/3_graphql/gqlgen_full/gqlgen1/generated.go function NewExecutableSchema (line 22) | func NewExecutableSchema(cfg Config) graphql.ExecutableSchema { type Config (line 30) | type Config struct type ResolverRoot (line 36) | type ResolverRoot interface type DirectiveRoot (line 41) | type DirectiveRoot struct type ComplexityRoot (line 44) | type ComplexityRoot struct type MutationResolver (line 72) | type MutationResolver interface type QueryResolver (line 75) | type QueryResolver interface type executableSchema (line 81) | type executableSchema struct method Schema (line 87) | func (e *executableSchema) Schema() *ast.Schema { method Complexity (line 91) | func (e *executableSchema) Complexity(typeName, field string, childCom... method Exec (line 213) | func (e *executableSchema) Exec(ctx context.Context) graphql.ResponseH... type executionContext (line 253) | type executionContext struct method introspectSchema (line 258) | func (ec *executionContext) introspectSchema() (*introspection.Schema,... method introspectType (line 265) | func (ec *executionContext) introspectType(name string) (*introspectio... method field_Mutation_ratePhoto_args (line 316) | func (ec *executionContext) field_Mutation_ratePhoto_args(ctx context.... method field_Query___type_args (line 338) | func (ec *executionContext) field_Query___type_args(ctx context.Contex... method field_Query_photos_args (line 352) | func (ec *executionContext) field_Query_photos_args(ctx context.Contex... method field_Query_user_args (line 366) | func (ec *executionContext) field_Query_user_args(ctx context.Context,... method field___Type_enumValues_args (line 380) | func (ec *executionContext) field___Type_enumValues_args(ctx context.C... method field___Type_fields_args (line 394) | func (ec *executionContext) field___Type_fields_args(ctx context.Conte... method _Mutation_ratePhoto (line 416) | func (ec *executionContext) _Mutation_ratePhoto(ctx context.Context, f... method _Photo_id (line 457) | func (ec *executionContext) _Photo_id(ctx context.Context, field graph... method _Photo_user (line 491) | func (ec *executionContext) _Photo_user(ctx context.Context, field gra... method _Photo_url (line 525) | func (ec *executionContext) _Photo_url(ctx context.Context, field grap... method _Photo_comment (line 559) | func (ec *executionContext) _Photo_comment(ctx context.Context, field ... method _Photo_rating (line 593) | func (ec *executionContext) _Photo_rating(ctx context.Context, field g... method _Photo_liked (line 627) | func (ec *executionContext) _Photo_liked(ctx context.Context, field gr... method _Photo_followed (line 661) | func (ec *executionContext) _Photo_followed(ctx context.Context, field... method _Query_timeline (line 695) | func (ec *executionContext) _Query_timeline(ctx context.Context, field... method _Query_user (line 729) | func (ec *executionContext) _Query_user(ctx context.Context, field gra... method _Query_photos (line 770) | func (ec *executionContext) _Query_photos(ctx context.Context, field g... method _Query___type (line 811) | func (ec *executionContext) _Query___type(ctx context.Context, field g... method _Query___schema (line 849) | func (ec *executionContext) _Query___schema(ctx context.Context, field... method _User_id (line 880) | func (ec *executionContext) _User_id(ctx context.Context, field graphq... method _User_name (line 914) | func (ec *executionContext) _User_name(ctx context.Context, field grap... method _User_avatar (line 948) | func (ec *executionContext) _User_avatar(ctx context.Context, field gr... method ___Directive_name (line 982) | func (ec *executionContext) ___Directive_name(ctx context.Context, fie... method ___Directive_description (line 1016) | func (ec *executionContext) ___Directive_description(ctx context.Conte... method ___Directive_locations (line 1047) | func (ec *executionContext) ___Directive_locations(ctx context.Context... method ___Directive_args (line 1081) | func (ec *executionContext) ___Directive_args(ctx context.Context, fie... method ___EnumValue_name (line 1115) | func (ec *executionContext) ___EnumValue_name(ctx context.Context, fie... method ___EnumValue_description (line 1149) | func (ec *executionContext) ___EnumValue_description(ctx context.Conte... method ___EnumValue_isDeprecated (line 1180) | func (ec *executionContext) ___EnumValue_isDeprecated(ctx context.Cont... method ___EnumValue_deprecationReason (line 1214) | func (ec *executionContext) ___EnumValue_deprecationReason(ctx context... method ___Field_name (line 1245) | func (ec *executionContext) ___Field_name(ctx context.Context, field g... method ___Field_description (line 1279) | func (ec *executionContext) ___Field_description(ctx context.Context, ... method ___Field_args (line 1310) | func (ec *executionContext) ___Field_args(ctx context.Context, field g... method ___Field_type (line 1344) | func (ec *executionContext) ___Field_type(ctx context.Context, field g... method ___Field_isDeprecated (line 1378) | func (ec *executionContext) ___Field_isDeprecated(ctx context.Context,... method ___Field_deprecationReason (line 1412) | func (ec *executionContext) ___Field_deprecationReason(ctx context.Con... method ___InputValue_name (line 1443) | func (ec *executionContext) ___InputValue_name(ctx context.Context, fi... method ___InputValue_description (line 1477) | func (ec *executionContext) ___InputValue_description(ctx context.Cont... method ___InputValue_type (line 1508) | func (ec *executionContext) ___InputValue_type(ctx context.Context, fi... method ___InputValue_defaultValue (line 1542) | func (ec *executionContext) ___InputValue_defaultValue(ctx context.Con... method ___Schema_types (line 1573) | func (ec *executionContext) ___Schema_types(ctx context.Context, field... method ___Schema_queryType (line 1607) | func (ec *executionContext) ___Schema_queryType(ctx context.Context, f... method ___Schema_mutationType (line 1641) | func (ec *executionContext) ___Schema_mutationType(ctx context.Context... method ___Schema_subscriptionType (line 1672) | func (ec *executionContext) ___Schema_subscriptionType(ctx context.Con... method ___Schema_directives (line 1703) | func (ec *executionContext) ___Schema_directives(ctx context.Context, ... method ___Type_kind (line 1737) | func (ec *executionContext) ___Type_kind(ctx context.Context, field gr... method ___Type_name (line 1771) | func (ec *executionContext) ___Type_name(ctx context.Context, field gr... method ___Type_description (line 1802) | func (ec *executionContext) ___Type_description(ctx context.Context, f... method ___Type_fields (line 1833) | func (ec *executionContext) ___Type_fields(ctx context.Context, field ... method ___Type_interfaces (line 1871) | func (ec *executionContext) ___Type_interfaces(ctx context.Context, fi... method ___Type_possibleTypes (line 1902) | func (ec *executionContext) ___Type_possibleTypes(ctx context.Context,... method ___Type_enumValues (line 1933) | func (ec *executionContext) ___Type_enumValues(ctx context.Context, fi... method ___Type_inputFields (line 1971) | func (ec *executionContext) ___Type_inputFields(ctx context.Context, f... method ___Type_ofType (line 2002) | func (ec *executionContext) ___Type_ofType(ctx context.Context, field ... method _Mutation (line 2047) | func (ec *executionContext) _Mutation(ctx context.Context, sel ast.Sel... method _Photo (line 2078) | func (ec *executionContext) _Photo(ctx context.Context, sel ast.Select... method _Query (line 2135) | func (ec *executionContext) _Query(ctx context.Context, sel ast.Select... method _User (line 2207) | func (ec *executionContext) _User(ctx context.Context, sel ast.Selecti... method ___Directive (line 2244) | func (ec *executionContext) ___Directive(ctx context.Context, sel ast.... method ___EnumValue (line 2283) | func (ec *executionContext) ___EnumValue(ctx context.Context, sel ast.... method ___Field (line 2319) | func (ec *executionContext) ___Field(ctx context.Context, sel ast.Sele... method ___InputValue (line 2365) | func (ec *executionContext) ___InputValue(ctx context.Context, sel ast... method ___Schema (line 2401) | func (ec *executionContext) ___Schema(ctx context.Context, sel ast.Sel... method ___Type (line 2442) | func (ec *executionContext) ___Type(ctx context.Context, sel ast.Selec... method unmarshalNBoolean2bool (line 2487) | func (ec *executionContext) unmarshalNBoolean2bool(ctx context.Context... method marshalNBoolean2bool (line 2491) | func (ec *executionContext) marshalNBoolean2bool(ctx context.Context, ... method unmarshalNID2string (line 2501) | func (ec *executionContext) unmarshalNID2string(ctx context.Context, v... method marshalNID2string (line 2505) | func (ec *executionContext) marshalNID2string(ctx context.Context, sel... method unmarshalNInt2int (line 2515) | func (ec *executionContext) unmarshalNInt2int(ctx context.Context, v i... method marshalNInt2int (line 2519) | func (ec *executionContext) marshalNInt2int(ctx context.Context, sel a... method marshalNPhoto2gqlgen1ᚐPhoto (line 2529) | func (ec *executionContext) marshalNPhoto2gqlgen1ᚐPhoto(ctx context.Co... method marshalNPhoto2ᚕᚖgqlgen1ᚐPhotoᚄ (line 2533) | func (ec *executionContext) marshalNPhoto2ᚕᚖgqlgen1ᚐPhotoᚄ(ctx context... method marshalNPhoto2ᚖgqlgen1ᚐPhoto (line 2570) | func (ec *executionContext) marshalNPhoto2ᚖgqlgen1ᚐPhoto(ctx context.C... method unmarshalNString2string (line 2580) | func (ec *executionContext) unmarshalNString2string(ctx context.Contex... method marshalNString2string (line 2584) | func (ec *executionContext) marshalNString2string(ctx context.Context,... method marshalNUser2gqlgen1ᚐUser (line 2594) | func (ec *executionContext) marshalNUser2gqlgen1ᚐUser(ctx context.Cont... method marshalNUser2ᚖgqlgen1ᚐUser (line 2598) | func (ec *executionContext) marshalNUser2ᚖgqlgen1ᚐUser(ctx context.Con... method marshalN__Directive2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirective (line 2608) | func (ec *executionContext) marshalN__Directive2githubᚗcomᚋ99designsᚋg... method marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirectiveᚄ (line 2612) | func (ec *executionContext) marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋ... method unmarshalN__DirectiveLocation2string (line 2649) | func (ec *executionContext) unmarshalN__DirectiveLocation2string(ctx c... method marshalN__DirectiveLocation2string (line 2653) | func (ec *executionContext) marshalN__DirectiveLocation2string(ctx con... method unmarshalN__DirectiveLocation2ᚕstringᚄ (line 2663) | func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx... method marshalN__DirectiveLocation2ᚕstringᚄ (line 2683) | func (ec *executionContext) marshalN__DirectiveLocation2ᚕstringᚄ(ctx c... method marshalN__EnumValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValue (line 2720) | func (ec *executionContext) marshalN__EnumValue2githubᚗcomᚋ99designsᚋg... method marshalN__Field2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐField (line 2724) | func (ec *executionContext) marshalN__Field2githubᚗcomᚋ99designsᚋgqlge... method marshalN__InputValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue (line 2728) | func (ec *executionContext) marshalN__InputValue2githubᚗcomᚋ99designsᚋ... method marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ (line 2732) | func (ec *executionContext) marshalN__InputValue2ᚕgithubᚗcomᚋ99designs... method marshalN__Type2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType (line 2769) | func (ec *executionContext) marshalN__Type2githubᚗcomᚋ99designsᚋgqlgen... method marshalN__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ (line 2773) | func (ec *executionContext) marshalN__Type2ᚕgithubᚗcomᚋ99designsᚋgqlge... method marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType (line 2810) | func (ec *executionContext) marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlge... method unmarshalN__TypeKind2string (line 2820) | func (ec *executionContext) unmarshalN__TypeKind2string(ctx context.Co... method marshalN__TypeKind2string (line 2824) | func (ec *executionContext) marshalN__TypeKind2string(ctx context.Cont... method unmarshalOBoolean2bool (line 2834) | func (ec *executionContext) unmarshalOBoolean2bool(ctx context.Context... method marshalOBoolean2bool (line 2838) | func (ec *executionContext) marshalOBoolean2bool(ctx context.Context, ... method unmarshalOBoolean2ᚖbool (line 2842) | func (ec *executionContext) unmarshalOBoolean2ᚖbool(ctx context.Contex... method marshalOBoolean2ᚖbool (line 2850) | func (ec *executionContext) marshalOBoolean2ᚖbool(ctx context.Context,... method unmarshalOString2string (line 2857) | func (ec *executionContext) unmarshalOString2string(ctx context.Contex... method marshalOString2string (line 2861) | func (ec *executionContext) marshalOString2string(ctx context.Context,... method unmarshalOString2ᚖstring (line 2865) | func (ec *executionContext) unmarshalOString2ᚖstring(ctx context.Conte... method marshalOString2ᚖstring (line 2873) | func (ec *executionContext) marshalOString2ᚖstring(ctx context.Context... method marshalO__EnumValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValueᚄ (line 2880) | func (ec *executionContext) marshalO__EnumValue2ᚕgithubᚗcomᚋ99designsᚋ... method marshalO__Field2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐFieldᚄ (line 2920) | func (ec *executionContext) marshalO__Field2ᚕgithubᚗcomᚋ99designsᚋgqlg... method marshalO__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ (line 2960) | func (ec *executionContext) marshalO__InputValue2ᚕgithubᚗcomᚋ99designs... method marshalO__Schema2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐSchema (line 3000) | func (ec *executionContext) marshalO__Schema2githubᚗcomᚋ99designsᚋgqlg... method marshalO__Schema2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐSchema (line 3004) | func (ec *executionContext) marshalO__Schema2ᚖgithubᚗcomᚋ99designsᚋgql... method marshalO__Type2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType (line 3011) | func (ec *executionContext) marshalO__Type2githubᚗcomᚋ99designsᚋgqlgen... method marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ (line 3015) | func (ec *executionContext) marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlge... method marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType (line 3055) | func (ec *executionContext) marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlge... FILE: 4-api/3_graphql/gqlgen_full/gqlgen1/models_gen.go type Photo (line 5) | type Photo struct type User (line 15) | type User struct FILE: 4-api/3_graphql/gqlgen_full/gqlgen1/resolver.go type Resolver (line 7) | type Resolver struct method Mutation (line 9) | func (r *Resolver) Mutation() MutationResolver { method Query (line 12) | func (r *Resolver) Query() QueryResolver { type mutationResolver (line 16) | type mutationResolver struct method RatePhoto (line 18) | func (r *mutationResolver) RatePhoto(ctx context.Context, photoID stri... type queryResolver (line 22) | type queryResolver struct method Timeline (line 24) | func (r *queryResolver) Timeline(ctx context.Context) ([]*Photo, error) { method User (line 27) | func (r *queryResolver) User(ctx context.Context, userID string) (*Use... method Photos (line 30) | func (r *queryResolver) Photos(ctx context.Context, userID string) ([]... FILE: 4-api/3_graphql/gqlgen_full/gqlgen1/server/server.go constant defaultPort (line 12) | defaultPort = "8080" function main (line 14) | func main() { FILE: 4-api/3_graphql/gqlgen_full/gqlgen2/generated.go function NewExecutableSchema (line 22) | func NewExecutableSchema(cfg Config) graphql.ExecutableSchema { type Config (line 30) | type Config struct type ResolverRoot (line 36) | type ResolverRoot interface type DirectiveRoot (line 42) | type DirectiveRoot struct type ComplexityRoot (line 45) | type ComplexityRoot struct type MutationResolver (line 73) | type MutationResolver interface type PhotoResolver (line 76) | type PhotoResolver interface type QueryResolver (line 80) | type QueryResolver interface type executableSchema (line 86) | type executableSchema struct method Schema (line 92) | func (e *executableSchema) Schema() *ast.Schema { method Complexity (line 96) | func (e *executableSchema) Complexity(typeName, field string, childCom... method Exec (line 218) | func (e *executableSchema) Exec(ctx context.Context) graphql.ResponseH... type executionContext (line 258) | type executionContext struct method introspectSchema (line 263) | func (ec *executionContext) introspectSchema() (*introspection.Schema,... method introspectType (line 270) | func (ec *executionContext) introspectType(name string) (*introspectio... method field_Mutation_ratePhoto_args (line 320) | func (ec *executionContext) field_Mutation_ratePhoto_args(ctx context.... method field_Query___type_args (line 342) | func (ec *executionContext) field_Query___type_args(ctx context.Contex... method field_Query_photos_args (line 356) | func (ec *executionContext) field_Query_photos_args(ctx context.Contex... method field_Query_user_args (line 370) | func (ec *executionContext) field_Query_user_args(ctx context.Context,... method field___Type_enumValues_args (line 384) | func (ec *executionContext) field___Type_enumValues_args(ctx context.C... method field___Type_fields_args (line 398) | func (ec *executionContext) field___Type_fields_args(ctx context.Conte... method _Mutation_ratePhoto (line 420) | func (ec *executionContext) _Mutation_ratePhoto(ctx context.Context, f... method _Photo_id (line 461) | func (ec *executionContext) _Photo_id(ctx context.Context, field graph... method _Photo_user (line 495) | func (ec *executionContext) _Photo_user(ctx context.Context, field gra... method _Photo_url (line 529) | func (ec *executionContext) _Photo_url(ctx context.Context, field grap... method _Photo_comment (line 563) | func (ec *executionContext) _Photo_comment(ctx context.Context, field ... method _Photo_rating (line 597) | func (ec *executionContext) _Photo_rating(ctx context.Context, field g... method _Photo_liked (line 631) | func (ec *executionContext) _Photo_liked(ctx context.Context, field gr... method _Photo_followed (line 665) | func (ec *executionContext) _Photo_followed(ctx context.Context, field... method _Query_timeline (line 699) | func (ec *executionContext) _Query_timeline(ctx context.Context, field... method _Query_user (line 733) | func (ec *executionContext) _Query_user(ctx context.Context, field gra... method _Query_photos (line 774) | func (ec *executionContext) _Query_photos(ctx context.Context, field g... method _Query___type (line 815) | func (ec *executionContext) _Query___type(ctx context.Context, field g... method _Query___schema (line 853) | func (ec *executionContext) _Query___schema(ctx context.Context, field... method _User_id (line 884) | func (ec *executionContext) _User_id(ctx context.Context, field graphq... method _User_name (line 918) | func (ec *executionContext) _User_name(ctx context.Context, field grap... method _User_avatar (line 952) | func (ec *executionContext) _User_avatar(ctx context.Context, field gr... method ___Directive_name (line 986) | func (ec *executionContext) ___Directive_name(ctx context.Context, fie... method ___Directive_description (line 1020) | func (ec *executionContext) ___Directive_description(ctx context.Conte... method ___Directive_locations (line 1051) | func (ec *executionContext) ___Directive_locations(ctx context.Context... method ___Directive_args (line 1085) | func (ec *executionContext) ___Directive_args(ctx context.Context, fie... method ___EnumValue_name (line 1119) | func (ec *executionContext) ___EnumValue_name(ctx context.Context, fie... method ___EnumValue_description (line 1153) | func (ec *executionContext) ___EnumValue_description(ctx context.Conte... method ___EnumValue_isDeprecated (line 1184) | func (ec *executionContext) ___EnumValue_isDeprecated(ctx context.Cont... method ___EnumValue_deprecationReason (line 1218) | func (ec *executionContext) ___EnumValue_deprecationReason(ctx context... method ___Field_name (line 1249) | func (ec *executionContext) ___Field_name(ctx context.Context, field g... method ___Field_description (line 1283) | func (ec *executionContext) ___Field_description(ctx context.Context, ... method ___Field_args (line 1314) | func (ec *executionContext) ___Field_args(ctx context.Context, field g... method ___Field_type (line 1348) | func (ec *executionContext) ___Field_type(ctx context.Context, field g... method ___Field_isDeprecated (line 1382) | func (ec *executionContext) ___Field_isDeprecated(ctx context.Context,... method ___Field_deprecationReason (line 1416) | func (ec *executionContext) ___Field_deprecationReason(ctx context.Con... method ___InputValue_name (line 1447) | func (ec *executionContext) ___InputValue_name(ctx context.Context, fi... method ___InputValue_description (line 1481) | func (ec *executionContext) ___InputValue_description(ctx context.Cont... method ___InputValue_type (line 1512) | func (ec *executionContext) ___InputValue_type(ctx context.Context, fi... method ___InputValue_defaultValue (line 1546) | func (ec *executionContext) ___InputValue_defaultValue(ctx context.Con... method ___Schema_types (line 1577) | func (ec *executionContext) ___Schema_types(ctx context.Context, field... method ___Schema_queryType (line 1611) | func (ec *executionContext) ___Schema_queryType(ctx context.Context, f... method ___Schema_mutationType (line 1645) | func (ec *executionContext) ___Schema_mutationType(ctx context.Context... method ___Schema_subscriptionType (line 1676) | func (ec *executionContext) ___Schema_subscriptionType(ctx context.Con... method ___Schema_directives (line 1707) | func (ec *executionContext) ___Schema_directives(ctx context.Context, ... method ___Type_kind (line 1741) | func (ec *executionContext) ___Type_kind(ctx context.Context, field gr... method ___Type_name (line 1775) | func (ec *executionContext) ___Type_name(ctx context.Context, field gr... method ___Type_description (line 1806) | func (ec *executionContext) ___Type_description(ctx context.Context, f... method ___Type_fields (line 1837) | func (ec *executionContext) ___Type_fields(ctx context.Context, field ... method ___Type_interfaces (line 1875) | func (ec *executionContext) ___Type_interfaces(ctx context.Context, fi... method ___Type_possibleTypes (line 1906) | func (ec *executionContext) ___Type_possibleTypes(ctx context.Context,... method ___Type_enumValues (line 1937) | func (ec *executionContext) ___Type_enumValues(ctx context.Context, fi... method ___Type_inputFields (line 1975) | func (ec *executionContext) ___Type_inputFields(ctx context.Context, f... method ___Type_ofType (line 2006) | func (ec *executionContext) ___Type_ofType(ctx context.Context, field ... method _Mutation (line 2051) | func (ec *executionContext) _Mutation(ctx context.Context, sel ast.Sel... method _Photo (line 2082) | func (ec *executionContext) _Photo(ctx context.Context, sel ast.Select... method _Query (line 2157) | func (ec *executionContext) _Query(ctx context.Context, sel ast.Select... method _User (line 2229) | func (ec *executionContext) _User(ctx context.Context, sel ast.Selecti... method ___Directive (line 2266) | func (ec *executionContext) ___Directive(ctx context.Context, sel ast.... method ___EnumValue (line 2305) | func (ec *executionContext) ___EnumValue(ctx context.Context, sel ast.... method ___Field (line 2341) | func (ec *executionContext) ___Field(ctx context.Context, sel ast.Sele... method ___InputValue (line 2387) | func (ec *executionContext) ___InputValue(ctx context.Context, sel ast... method ___Schema (line 2423) | func (ec *executionContext) ___Schema(ctx context.Context, sel ast.Sel... method ___Type (line 2464) | func (ec *executionContext) ___Type(ctx context.Context, sel ast.Selec... method unmarshalNBoolean2bool (line 2509) | func (ec *executionContext) unmarshalNBoolean2bool(ctx context.Context... method marshalNBoolean2bool (line 2513) | func (ec *executionContext) marshalNBoolean2bool(ctx context.Context, ... method unmarshalNID2string (line 2523) | func (ec *executionContext) unmarshalNID2string(ctx context.Context, v... method marshalNID2string (line 2527) | func (ec *executionContext) marshalNID2string(ctx context.Context, sel... method unmarshalNInt2int (line 2537) | func (ec *executionContext) unmarshalNInt2int(ctx context.Context, v i... method marshalNInt2int (line 2541) | func (ec *executionContext) marshalNInt2int(ctx context.Context, sel a... method marshalNPhoto2gqlgen2ᚐPhoto (line 2551) | func (ec *executionContext) marshalNPhoto2gqlgen2ᚐPhoto(ctx context.Co... method marshalNPhoto2ᚕᚖgqlgen2ᚐPhotoᚄ (line 2555) | func (ec *executionContext) marshalNPhoto2ᚕᚖgqlgen2ᚐPhotoᚄ(ctx context... method marshalNPhoto2ᚖgqlgen2ᚐPhoto (line 2592) | func (ec *executionContext) marshalNPhoto2ᚖgqlgen2ᚐPhoto(ctx context.C... method unmarshalNString2string (line 2602) | func (ec *executionContext) unmarshalNString2string(ctx context.Contex... method marshalNString2string (line 2606) | func (ec *executionContext) marshalNString2string(ctx context.Context,... method marshalNUser2gqlgen2ᚐUser (line 2616) | func (ec *executionContext) marshalNUser2gqlgen2ᚐUser(ctx context.Cont... method marshalNUser2ᚖgqlgen2ᚐUser (line 2620) | func (ec *executionContext) marshalNUser2ᚖgqlgen2ᚐUser(ctx context.Con... method marshalN__Directive2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirective (line 2630) | func (ec *executionContext) marshalN__Directive2githubᚗcomᚋ99designsᚋg... method marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirectiveᚄ (line 2634) | func (ec *executionContext) marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋ... method unmarshalN__DirectiveLocation2string (line 2671) | func (ec *executionContext) unmarshalN__DirectiveLocation2string(ctx c... method marshalN__DirectiveLocation2string (line 2675) | func (ec *executionContext) marshalN__DirectiveLocation2string(ctx con... method unmarshalN__DirectiveLocation2ᚕstringᚄ (line 2685) | func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx... method marshalN__DirectiveLocation2ᚕstringᚄ (line 2705) | func (ec *executionContext) marshalN__DirectiveLocation2ᚕstringᚄ(ctx c... method marshalN__EnumValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValue (line 2742) | func (ec *executionContext) marshalN__EnumValue2githubᚗcomᚋ99designsᚋg... method marshalN__Field2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐField (line 2746) | func (ec *executionContext) marshalN__Field2githubᚗcomᚋ99designsᚋgqlge... method marshalN__InputValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue (line 2750) | func (ec *executionContext) marshalN__InputValue2githubᚗcomᚋ99designsᚋ... method marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ (line 2754) | func (ec *executionContext) marshalN__InputValue2ᚕgithubᚗcomᚋ99designs... method marshalN__Type2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType (line 2791) | func (ec *executionContext) marshalN__Type2githubᚗcomᚋ99designsᚋgqlgen... method marshalN__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ (line 2795) | func (ec *executionContext) marshalN__Type2ᚕgithubᚗcomᚋ99designsᚋgqlge... method marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType (line 2832) | func (ec *executionContext) marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlge... method unmarshalN__TypeKind2string (line 2842) | func (ec *executionContext) unmarshalN__TypeKind2string(ctx context.Co... method marshalN__TypeKind2string (line 2846) | func (ec *executionContext) marshalN__TypeKind2string(ctx context.Cont... method unmarshalOBoolean2bool (line 2856) | func (ec *executionContext) unmarshalOBoolean2bool(ctx context.Context... method marshalOBoolean2bool (line 2860) | func (ec *executionContext) marshalOBoolean2bool(ctx context.Context, ... method unmarshalOBoolean2ᚖbool (line 2864) | func (ec *executionContext) unmarshalOBoolean2ᚖbool(ctx context.Contex... method marshalOBoolean2ᚖbool (line 2872) | func (ec *executionContext) marshalOBoolean2ᚖbool(ctx context.Context,... method unmarshalOString2string (line 2879) | func (ec *executionContext) unmarshalOString2string(ctx context.Contex... method marshalOString2string (line 2883) | func (ec *executionContext) marshalOString2string(ctx context.Context,... method unmarshalOString2ᚖstring (line 2887) | func (ec *executionContext) unmarshalOString2ᚖstring(ctx context.Conte... method marshalOString2ᚖstring (line 2895) | func (ec *executionContext) marshalOString2ᚖstring(ctx context.Context... method marshalO__EnumValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValueᚄ (line 2902) | func (ec *executionContext) marshalO__EnumValue2ᚕgithubᚗcomᚋ99designsᚋ... method marshalO__Field2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐFieldᚄ (line 2942) | func (ec *executionContext) marshalO__Field2ᚕgithubᚗcomᚋ99designsᚋgqlg... method marshalO__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ (line 2982) | func (ec *executionContext) marshalO__InputValue2ᚕgithubᚗcomᚋ99designs... method marshalO__Schema2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐSchema (line 3022) | func (ec *executionContext) marshalO__Schema2githubᚗcomᚋ99designsᚋgqlg... method marshalO__Schema2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐSchema (line 3026) | func (ec *executionContext) marshalO__Schema2ᚖgithubᚗcomᚋ99designsᚋgql... method marshalO__Type2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType (line 3033) | func (ec *executionContext) marshalO__Type2githubᚗcomᚋ99designsᚋgqlgen... method marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ (line 3037) | func (ec *executionContext) marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlge... method marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType (line 3077) | func (ec *executionContext) marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlge... FILE: 4-api/3_graphql/gqlgen_full/gqlgen2/models_gen.go type User (line 5) | type User struct FILE: 4-api/3_graphql/gqlgen_full/gqlgen2/photo.go type Photo (line 8) | type Photo struct method Id (line 19) | func (ph *Photo) Id() string { FILE: 4-api/3_graphql/gqlgen_full/gqlgen2/resolver.go type Resolver (line 12) | type Resolver struct method Mutation (line 17) | func (r *Resolver) Mutation() MutationResolver { method Photo (line 20) | func (r *Resolver) Photo() PhotoResolver { method Query (line 23) | func (r *Resolver) Query() QueryResolver { type mutationResolver (line 27) | type mutationResolver struct method RatePhoto (line 29) | func (r *mutationResolver) RatePhoto(ctx context.Context, id string, d... type photoResolver (line 43) | type photoResolver struct method ID (line 45) | func (r *photoResolver) ID(ctx context.Context, obj *Photo) (string, e... method User (line 49) | func (r *photoResolver) User(ctx context.Context, obj *Photo) (*User, ... type queryResolver (line 55) | type queryResolver struct method Timeline (line 57) | func (r *queryResolver) Timeline(ctx context.Context) ([]*Photo, error) { method User (line 66) | func (r *queryResolver) User(ctx context.Context, userID string) (*Use... method Photos (line 72) | func (r *queryResolver) Photos(ctx context.Context, userID string) ([]... FILE: 4-api/3_graphql/gqlgen_full/gqlgen2/server/server.go function AuthMiddleware (line 61) | func AuthMiddleware(next http.Handler) http.Handler { function main (line 70) | func main() { FILE: 4-api/3_graphql/gqlgen_full/gqlgen3/generated.go function NewExecutableSchema (line 22) | func NewExecutableSchema(cfg Config) graphql.ExecutableSchema { type Config (line 30) | type Config struct type ResolverRoot (line 36) | type ResolverRoot interface type DirectiveRoot (line 42) | type DirectiveRoot struct type ComplexityRoot (line 45) | type ComplexityRoot struct type MutationResolver (line 73) | type MutationResolver interface type PhotoResolver (line 76) | type PhotoResolver interface type QueryResolver (line 80) | type QueryResolver interface type executableSchema (line 86) | type executableSchema struct method Schema (line 92) | func (e *executableSchema) Schema() *ast.Schema { method Complexity (line 96) | func (e *executableSchema) Complexity(typeName, field string, childCom... method Exec (line 218) | func (e *executableSchema) Exec(ctx context.Context) graphql.ResponseH... type executionContext (line 258) | type executionContext struct method introspectSchema (line 263) | func (ec *executionContext) introspectSchema() (*introspection.Schema,... method introspectType (line 270) | func (ec *executionContext) introspectType(name string) (*introspectio... method field_Mutation_ratePhoto_args (line 320) | func (ec *executionContext) field_Mutation_ratePhoto_args(ctx context.... method field_Query___type_args (line 342) | func (ec *executionContext) field_Query___type_args(ctx context.Contex... method field_Query_photos_args (line 356) | func (ec *executionContext) field_Query_photos_args(ctx context.Contex... method field_Query_user_args (line 370) | func (ec *executionContext) field_Query_user_args(ctx context.Context,... method field___Type_enumValues_args (line 384) | func (ec *executionContext) field___Type_enumValues_args(ctx context.C... method field___Type_fields_args (line 398) | func (ec *executionContext) field___Type_fields_args(ctx context.Conte... method _Mutation_ratePhoto (line 420) | func (ec *executionContext) _Mutation_ratePhoto(ctx context.Context, f... method _Photo_id (line 461) | func (ec *executionContext) _Photo_id(ctx context.Context, field graph... method _Photo_user (line 495) | func (ec *executionContext) _Photo_user(ctx context.Context, field gra... method _Photo_url (line 529) | func (ec *executionContext) _Photo_url(ctx context.Context, field grap... method _Photo_comment (line 563) | func (ec *executionContext) _Photo_comment(ctx context.Context, field ... method _Photo_rating (line 597) | func (ec *executionContext) _Photo_rating(ctx context.Context, field g... method _Photo_liked (line 631) | func (ec *executionContext) _Photo_liked(ctx context.Context, field gr... method _Query_timeline (line 665) | func (ec *executionContext) _Query_timeline(ctx context.Context, field... method _Query_user (line 699) | func (ec *executionContext) _Query_user(ctx context.Context, field gra... method _Query_photos (line 740) | func (ec *executionContext) _Query_photos(ctx context.Context, field g... method _Query___type (line 781) | func (ec *executionContext) _Query___type(ctx context.Context, field g... method _Query___schema (line 819) | func (ec *executionContext) _Query___schema(ctx context.Context, field... method _User_id (line 850) | func (ec *executionContext) _User_id(ctx context.Context, field graphq... method _User_name (line 884) | func (ec *executionContext) _User_name(ctx context.Context, field grap... method _User_avatar (line 918) | func (ec *executionContext) _User_avatar(ctx context.Context, field gr... method _User_followed (line 952) | func (ec *executionContext) _User_followed(ctx context.Context, field ... method ___Directive_name (line 986) | func (ec *executionContext) ___Directive_name(ctx context.Context, fie... method ___Directive_description (line 1020) | func (ec *executionContext) ___Directive_description(ctx context.Conte... method ___Directive_locations (line 1051) | func (ec *executionContext) ___Directive_locations(ctx context.Context... method ___Directive_args (line 1085) | func (ec *executionContext) ___Directive_args(ctx context.Context, fie... method ___EnumValue_name (line 1119) | func (ec *executionContext) ___EnumValue_name(ctx context.Context, fie... method ___EnumValue_description (line 1153) | func (ec *executionContext) ___EnumValue_description(ctx context.Conte... method ___EnumValue_isDeprecated (line 1184) | func (ec *executionContext) ___EnumValue_isDeprecated(ctx context.Cont... method ___EnumValue_deprecationReason (line 1218) | func (ec *executionContext) ___EnumValue_deprecationReason(ctx context... method ___Field_name (line 1249) | func (ec *executionContext) ___Field_name(ctx context.Context, field g... method ___Field_description (line 1283) | func (ec *executionContext) ___Field_description(ctx context.Context, ... method ___Field_args (line 1314) | func (ec *executionContext) ___Field_args(ctx context.Context, field g... method ___Field_type (line 1348) | func (ec *executionContext) ___Field_type(ctx context.Context, field g... method ___Field_isDeprecated (line 1382) | func (ec *executionContext) ___Field_isDeprecated(ctx context.Context,... method ___Field_deprecationReason (line 1416) | func (ec *executionContext) ___Field_deprecationReason(ctx context.Con... method ___InputValue_name (line 1447) | func (ec *executionContext) ___InputValue_name(ctx context.Context, fi... method ___InputValue_description (line 1481) | func (ec *executionContext) ___InputValue_description(ctx context.Cont... method ___InputValue_type (line 1512) | func (ec *executionContext) ___InputValue_type(ctx context.Context, fi... method ___InputValue_defaultValue (line 1546) | func (ec *executionContext) ___InputValue_defaultValue(ctx context.Con... method ___Schema_types (line 1577) | func (ec *executionContext) ___Schema_types(ctx context.Context, field... method ___Schema_queryType (line 1611) | func (ec *executionContext) ___Schema_queryType(ctx context.Context, f... method ___Schema_mutationType (line 1645) | func (ec *executionContext) ___Schema_mutationType(ctx context.Context... method ___Schema_subscriptionType (line 1676) | func (ec *executionContext) ___Schema_subscriptionType(ctx context.Con... method ___Schema_directives (line 1707) | func (ec *executionContext) ___Schema_directives(ctx context.Context, ... method ___Type_kind (line 1741) | func (ec *executionContext) ___Type_kind(ctx context.Context, field gr... method ___Type_name (line 1775) | func (ec *executionContext) ___Type_name(ctx context.Context, field gr... method ___Type_description (line 1806) | func (ec *executionContext) ___Type_description(ctx context.Context, f... method ___Type_fields (line 1837) | func (ec *executionContext) ___Type_fields(ctx context.Context, field ... method ___Type_interfaces (line 1875) | func (ec *executionContext) ___Type_interfaces(ctx context.Context, fi... method ___Type_possibleTypes (line 1906) | func (ec *executionContext) ___Type_possibleTypes(ctx context.Context,... method ___Type_enumValues (line 1937) | func (ec *executionContext) ___Type_enumValues(ctx context.Context, fi... method ___Type_inputFields (line 1975) | func (ec *executionContext) ___Type_inputFields(ctx context.Context, f... method ___Type_ofType (line 2006) | func (ec *executionContext) ___Type_ofType(ctx context.Context, field ... method _Mutation (line 2051) | func (ec *executionContext) _Mutation(ctx context.Context, sel ast.Sel... method _Photo (line 2082) | func (ec *executionContext) _Photo(ctx context.Context, sel ast.Select... method _Query (line 2152) | func (ec *executionContext) _Query(ctx context.Context, sel ast.Select... method _User (line 2224) | func (ec *executionContext) _User(ctx context.Context, sel ast.Selecti... method ___Directive (line 2266) | func (ec *executionContext) ___Directive(ctx context.Context, sel ast.... method ___EnumValue (line 2305) | func (ec *executionContext) ___EnumValue(ctx context.Context, sel ast.... method ___Field (line 2341) | func (ec *executionContext) ___Field(ctx context.Context, sel ast.Sele... method ___InputValue (line 2387) | func (ec *executionContext) ___InputValue(ctx context.Context, sel ast... method ___Schema (line 2423) | func (ec *executionContext) ___Schema(ctx context.Context, sel ast.Sel... method ___Type (line 2464) | func (ec *executionContext) ___Type(ctx context.Context, sel ast.Selec... method unmarshalNBoolean2bool (line 2509) | func (ec *executionContext) unmarshalNBoolean2bool(ctx context.Context... method marshalNBoolean2bool (line 2513) | func (ec *executionContext) marshalNBoolean2bool(ctx context.Context, ... method unmarshalNID2string (line 2523) | func (ec *executionContext) unmarshalNID2string(ctx context.Context, v... method marshalNID2string (line 2527) | func (ec *executionContext) marshalNID2string(ctx context.Context, sel... method unmarshalNInt2int (line 2537) | func (ec *executionContext) unmarshalNInt2int(ctx context.Context, v i... method marshalNInt2int (line 2541) | func (ec *executionContext) marshalNInt2int(ctx context.Context, sel a... method marshalNPhoto2gqlgen3ᚐPhoto (line 2551) | func (ec *executionContext) marshalNPhoto2gqlgen3ᚐPhoto(ctx context.Co... method marshalNPhoto2ᚕᚖgqlgen3ᚐPhotoᚄ (line 2555) | func (ec *executionContext) marshalNPhoto2ᚕᚖgqlgen3ᚐPhotoᚄ(ctx context... method marshalNPhoto2ᚖgqlgen3ᚐPhoto (line 2592) | func (ec *executionContext) marshalNPhoto2ᚖgqlgen3ᚐPhoto(ctx context.C... method unmarshalNString2string (line 2602) | func (ec *executionContext) unmarshalNString2string(ctx context.Contex... method marshalNString2string (line 2606) | func (ec *executionContext) marshalNString2string(ctx context.Context,... method marshalNUser2gqlgen3ᚐUser (line 2616) | func (ec *executionContext) marshalNUser2gqlgen3ᚐUser(ctx context.Cont... method marshalNUser2ᚖgqlgen3ᚐUser (line 2620) | func (ec *executionContext) marshalNUser2ᚖgqlgen3ᚐUser(ctx context.Con... method marshalN__Directive2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirective (line 2630) | func (ec *executionContext) marshalN__Directive2githubᚗcomᚋ99designsᚋg... method marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirectiveᚄ (line 2634) | func (ec *executionContext) marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋ... method unmarshalN__DirectiveLocation2string (line 2671) | func (ec *executionContext) unmarshalN__DirectiveLocation2string(ctx c... method marshalN__DirectiveLocation2string (line 2675) | func (ec *executionContext) marshalN__DirectiveLocation2string(ctx con... method unmarshalN__DirectiveLocation2ᚕstringᚄ (line 2685) | func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx... method marshalN__DirectiveLocation2ᚕstringᚄ (line 2705) | func (ec *executionContext) marshalN__DirectiveLocation2ᚕstringᚄ(ctx c... method marshalN__EnumValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValue (line 2742) | func (ec *executionContext) marshalN__EnumValue2githubᚗcomᚋ99designsᚋg... method marshalN__Field2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐField (line 2746) | func (ec *executionContext) marshalN__Field2githubᚗcomᚋ99designsᚋgqlge... method marshalN__InputValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue (line 2750) | func (ec *executionContext) marshalN__InputValue2githubᚗcomᚋ99designsᚋ... method marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ (line 2754) | func (ec *executionContext) marshalN__InputValue2ᚕgithubᚗcomᚋ99designs... method marshalN__Type2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType (line 2791) | func (ec *executionContext) marshalN__Type2githubᚗcomᚋ99designsᚋgqlgen... method marshalN__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ (line 2795) | func (ec *executionContext) marshalN__Type2ᚕgithubᚗcomᚋ99designsᚋgqlge... method marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType (line 2832) | func (ec *executionContext) marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlge... method unmarshalN__TypeKind2string (line 2842) | func (ec *executionContext) unmarshalN__TypeKind2string(ctx context.Co... method marshalN__TypeKind2string (line 2846) | func (ec *executionContext) marshalN__TypeKind2string(ctx context.Cont... method unmarshalOBoolean2bool (line 2856) | func (ec *executionContext) unmarshalOBoolean2bool(ctx context.Context... method marshalOBoolean2bool (line 2860) | func (ec *executionContext) marshalOBoolean2bool(ctx context.Context, ... method unmarshalOBoolean2ᚖbool (line 2864) | func (ec *executionContext) unmarshalOBoolean2ᚖbool(ctx context.Contex... method marshalOBoolean2ᚖbool (line 2872) | func (ec *executionContext) marshalOBoolean2ᚖbool(ctx context.Context,... method unmarshalOString2string (line 2879) | func (ec *executionContext) unmarshalOString2string(ctx context.Contex... method marshalOString2string (line 2883) | func (ec *executionContext) marshalOString2string(ctx context.Context,... method unmarshalOString2ᚖstring (line 2887) | func (ec *executionContext) unmarshalOString2ᚖstring(ctx context.Conte... method marshalOString2ᚖstring (line 2895) | func (ec *executionContext) marshalOString2ᚖstring(ctx context.Context... method marshalO__EnumValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValueᚄ (line 2902) | func (ec *executionContext) marshalO__EnumValue2ᚕgithubᚗcomᚋ99designsᚋ... method marshalO__Field2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐFieldᚄ (line 2942) | func (ec *executionContext) marshalO__Field2ᚕgithubᚗcomᚋ99designsᚋgqlg... method marshalO__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ (line 2982) | func (ec *executionContext) marshalO__InputValue2ᚕgithubᚗcomᚋ99designs... method marshalO__Schema2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐSchema (line 3022) | func (ec *executionContext) marshalO__Schema2githubᚗcomᚋ99designsᚋgqlg... method marshalO__Schema2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐSchema (line 3026) | func (ec *executionContext) marshalO__Schema2ᚖgithubᚗcomᚋ99designsᚋgql... method marshalO__Type2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType (line 3033) | func (ec *executionContext) marshalO__Type2githubᚗcomᚋ99designsᚋgqlgen... method marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ (line 3037) | func (ec *executionContext) marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlge... method marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType (line 3077) | func (ec *executionContext) marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlge... FILE: 4-api/3_graphql/gqlgen_full/gqlgen3/models_gen.go type User (line 5) | type User struct FILE: 4-api/3_graphql/gqlgen_full/gqlgen3/photo.go type Photo (line 8) | type Photo struct method Id (line 18) | func (ph *Photo) Id() string { FILE: 4-api/3_graphql/gqlgen_full/gqlgen3/resolver.go type Resolver (line 13) | type Resolver struct method Mutation (line 18) | func (r *Resolver) Mutation() MutationResolver { method Photo (line 21) | func (r *Resolver) Photo() PhotoResolver { method Query (line 24) | func (r *Resolver) Query() QueryResolver { type mutationResolver (line 28) | type mutationResolver struct method RatePhoto (line 30) | func (r *mutationResolver) RatePhoto(ctx context.Context, id string, d... type photoResolver (line 44) | type photoResolver struct method ID (line 46) | func (r *photoResolver) ID(ctx context.Context, obj *Photo) (string, e... method User (line 50) | func (r *photoResolver) User(ctx context.Context, obj *Photo) (*User, ... type queryResolver (line 59) | type queryResolver struct method Timeline (line 61) | func (r *queryResolver) Timeline(ctx context.Context) ([]*Photo, error) { method User (line 70) | func (r *queryResolver) User(ctx context.Context, userID string) (*Use... method Photos (line 76) | func (r *queryResolver) Photos(ctx context.Context, userID string) ([]... FILE: 4-api/3_graphql/gqlgen_full/gqlgen3/server/server.go function UserLoaderMiddleware (line 61) | func UserLoaderMiddleware(resolver *gqlgen.Resolver, next http.Handler) ... function AuthMiddleware (line 92) | func AuthMiddleware(next http.Handler) http.Handler { function main (line 101) | func main() { FILE: 4-api/3_graphql/gqlgen_full/gqlgen3/userloader_gen.go type UserLoaderConfig (line 11) | type UserLoaderConfig struct function NewUserLoader (line 23) | func NewUserLoader(config UserLoaderConfig) *UserLoader { type UserLoader (line 32) | type UserLoader struct method Load (line 64) | func (l *UserLoader) Load(key uint) (*User, error) { method LoadThunk (line 71) | func (l *UserLoader) LoadThunk(key uint) func() (*User, error) { method LoadAll (line 114) | func (l *UserLoader) LoadAll(keys []uint) ([]*User, []error) { method LoadAllThunk (line 132) | func (l *UserLoader) LoadAllThunk(keys []uint) func() ([]*User, []erro... method Prime (line 150) | func (l *UserLoader) Prime(key uint, value *User) bool { method Clear (line 164) | func (l *UserLoader) Clear(key uint) { method unsafeSet (line 170) | func (l *UserLoader) unsafeSet(key uint, value *User) { type userLoaderBatch (line 55) | type userLoaderBatch struct method keyIndex (line 179) | func (b *userLoaderBatch) keyIndex(l *UserLoader, key uint) int { method startTimer (line 203) | func (b *userLoaderBatch) startTimer(l *UserLoader) { method end (line 219) | func (b *userLoaderBatch) end(l *UserLoader) { FILE: 4-api/3_graphql/gqlgen_full/gqlgen4/generated.go function NewExecutableSchema (line 22) | func NewExecutableSchema(cfg Config) graphql.ExecutableSchema { type Config (line 30) | type Config struct type ResolverRoot (line 36) | type ResolverRoot interface type DirectiveRoot (line 43) | type DirectiveRoot struct type ComplexityRoot (line 46) | type ComplexityRoot struct type MutationResolver (line 75) | type MutationResolver interface type PhotoResolver (line 78) | type PhotoResolver interface type QueryResolver (line 82) | type QueryResolver interface type UserResolver (line 87) | type UserResolver interface type executableSchema (line 91) | type executableSchema struct method Schema (line 97) | func (e *executableSchema) Schema() *ast.Schema { method Complexity (line 101) | func (e *executableSchema) Complexity(typeName, field string, childCom... method Exec (line 235) | func (e *executableSchema) Exec(ctx context.Context) graphql.ResponseH... type executionContext (line 275) | type executionContext struct method introspectSchema (line 280) | func (ec *executionContext) introspectSchema() (*introspection.Schema,... method introspectType (line 287) | func (ec *executionContext) introspectType(name string) (*introspectio... method field_Mutation_ratePhoto_args (line 345) | func (ec *executionContext) field_Mutation_ratePhoto_args(ctx context.... method field_Query___type_args (line 367) | func (ec *executionContext) field_Query___type_args(ctx context.Contex... method field_Query_photos_args (line 381) | func (ec *executionContext) field_Query_photos_args(ctx context.Contex... method field_Query_user_args (line 395) | func (ec *executionContext) field_Query_user_args(ctx context.Context,... method field_User_photos_args (line 409) | func (ec *executionContext) field_User_photos_args(ctx context.Context... method field___Type_enumValues_args (line 423) | func (ec *executionContext) field___Type_enumValues_args(ctx context.C... method field___Type_fields_args (line 437) | func (ec *executionContext) field___Type_fields_args(ctx context.Conte... method _Mutation_ratePhoto (line 459) | func (ec *executionContext) _Mutation_ratePhoto(ctx context.Context, f... method _Photo_id (line 500) | func (ec *executionContext) _Photo_id(ctx context.Context, field graph... method _Photo_user (line 534) | func (ec *executionContext) _Photo_user(ctx context.Context, field gra... method _Photo_url (line 568) | func (ec *executionContext) _Photo_url(ctx context.Context, field grap... method _Photo_comment (line 602) | func (ec *executionContext) _Photo_comment(ctx context.Context, field ... method _Photo_rating (line 636) | func (ec *executionContext) _Photo_rating(ctx context.Context, field g... method _Photo_liked (line 670) | func (ec *executionContext) _Photo_liked(ctx context.Context, field gr... method _Query_timeline (line 704) | func (ec *executionContext) _Query_timeline(ctx context.Context, field... method _Query_user (line 738) | func (ec *executionContext) _Query_user(ctx context.Context, field gra... method _Query_photos (line 779) | func (ec *executionContext) _Query_photos(ctx context.Context, field g... method _Query___type (line 820) | func (ec *executionContext) _Query___type(ctx context.Context, field g... method _Query___schema (line 858) | func (ec *executionContext) _Query___schema(ctx context.Context, field... method _User_id (line 889) | func (ec *executionContext) _User_id(ctx context.Context, field graphq... method _User_name (line 923) | func (ec *executionContext) _User_name(ctx context.Context, field grap... method _User_avatar (line 957) | func (ec *executionContext) _User_avatar(ctx context.Context, field gr... method _User_followed (line 991) | func (ec *executionContext) _User_followed(ctx context.Context, field ... method _User_photos (line 1025) | func (ec *executionContext) _User_photos(ctx context.Context, field gr... method ___Directive_name (line 1066) | func (ec *executionContext) ___Directive_name(ctx context.Context, fie... method ___Directive_description (line 1100) | func (ec *executionContext) ___Directive_description(ctx context.Conte... method ___Directive_locations (line 1131) | func (ec *executionContext) ___Directive_locations(ctx context.Context... method ___Directive_args (line 1165) | func (ec *executionContext) ___Directive_args(ctx context.Context, fie... method ___EnumValue_name (line 1199) | func (ec *executionContext) ___EnumValue_name(ctx context.Context, fie... method ___EnumValue_description (line 1233) | func (ec *executionContext) ___EnumValue_description(ctx context.Conte... method ___EnumValue_isDeprecated (line 1264) | func (ec *executionContext) ___EnumValue_isDeprecated(ctx context.Cont... method ___EnumValue_deprecationReason (line 1298) | func (ec *executionContext) ___EnumValue_deprecationReason(ctx context... method ___Field_name (line 1329) | func (ec *executionContext) ___Field_name(ctx context.Context, field g... method ___Field_description (line 1363) | func (ec *executionContext) ___Field_description(ctx context.Context, ... method ___Field_args (line 1394) | func (ec *executionContext) ___Field_args(ctx context.Context, field g... method ___Field_type (line 1428) | func (ec *executionContext) ___Field_type(ctx context.Context, field g... method ___Field_isDeprecated (line 1462) | func (ec *executionContext) ___Field_isDeprecated(ctx context.Context,... method ___Field_deprecationReason (line 1496) | func (ec *executionContext) ___Field_deprecationReason(ctx context.Con... method ___InputValue_name (line 1527) | func (ec *executionContext) ___InputValue_name(ctx context.Context, fi... method ___InputValue_description (line 1561) | func (ec *executionContext) ___InputValue_description(ctx context.Cont... method ___InputValue_type (line 1592) | func (ec *executionContext) ___InputValue_type(ctx context.Context, fi... method ___InputValue_defaultValue (line 1626) | func (ec *executionContext) ___InputValue_defaultValue(ctx context.Con... method ___Schema_types (line 1657) | func (ec *executionContext) ___Schema_types(ctx context.Context, field... method ___Schema_queryType (line 1691) | func (ec *executionContext) ___Schema_queryType(ctx context.Context, f... method ___Schema_mutationType (line 1725) | func (ec *executionContext) ___Schema_mutationType(ctx context.Context... method ___Schema_subscriptionType (line 1756) | func (ec *executionContext) ___Schema_subscriptionType(ctx context.Con... method ___Schema_directives (line 1787) | func (ec *executionContext) ___Schema_directives(ctx context.Context, ... method ___Type_kind (line 1821) | func (ec *executionContext) ___Type_kind(ctx context.Context, field gr... method ___Type_name (line 1855) | func (ec *executionContext) ___Type_name(ctx context.Context, field gr... method ___Type_description (line 1886) | func (ec *executionContext) ___Type_description(ctx context.Context, f... method ___Type_fields (line 1917) | func (ec *executionContext) ___Type_fields(ctx context.Context, field ... method ___Type_interfaces (line 1955) | func (ec *executionContext) ___Type_interfaces(ctx context.Context, fi... method ___Type_possibleTypes (line 1986) | func (ec *executionContext) ___Type_possibleTypes(ctx context.Context,... method ___Type_enumValues (line 2017) | func (ec *executionContext) ___Type_enumValues(ctx context.Context, fi... method ___Type_inputFields (line 2055) | func (ec *executionContext) ___Type_inputFields(ctx context.Context, f... method ___Type_ofType (line 2086) | func (ec *executionContext) ___Type_ofType(ctx context.Context, field ... method _Mutation (line 2131) | func (ec *executionContext) _Mutation(ctx context.Context, sel ast.Sel... method _Photo (line 2162) | func (ec *executionContext) _Photo(ctx context.Context, sel ast.Select... method _Query (line 2232) | func (ec *executionContext) _Query(ctx context.Context, sel ast.Select... method _User (line 2304) | func (ec *executionContext) _User(ctx context.Context, sel ast.Selecti... method ___Directive (line 2360) | func (ec *executionContext) ___Directive(ctx context.Context, sel ast.... method ___EnumValue (line 2399) | func (ec *executionContext) ___EnumValue(ctx context.Context, sel ast.... method ___Field (line 2435) | func (ec *executionContext) ___Field(ctx context.Context, sel ast.Sele... method ___InputValue (line 2481) | func (ec *executionContext) ___InputValue(ctx context.Context, sel ast... method ___Schema (line 2517) | func (ec *executionContext) ___Schema(ctx context.Context, sel ast.Sel... method ___Type (line 2558) | func (ec *executionContext) ___Type(ctx context.Context, sel ast.Selec... method unmarshalNBoolean2bool (line 2603) | func (ec *executionContext) unmarshalNBoolean2bool(ctx context.Context... method marshalNBoolean2bool (line 2607) | func (ec *executionContext) marshalNBoolean2bool(ctx context.Context, ... method unmarshalNID2string (line 2617) | func (ec *executionContext) unmarshalNID2string(ctx context.Context, v... method marshalNID2string (line 2621) | func (ec *executionContext) marshalNID2string(ctx context.Context, sel... method unmarshalNInt2int (line 2631) | func (ec *executionContext) unmarshalNInt2int(ctx context.Context, v i... method marshalNInt2int (line 2635) | func (ec *executionContext) marshalNInt2int(ctx context.Context, sel a... method marshalNPhoto2gqlgen4ᚐPhoto (line 2645) | func (ec *executionContext) marshalNPhoto2gqlgen4ᚐPhoto(ctx context.Co... method marshalNPhoto2ᚕᚖgqlgen4ᚐPhotoᚄ (line 2649) | func (ec *executionContext) marshalNPhoto2ᚕᚖgqlgen4ᚐPhotoᚄ(ctx context... method marshalNPhoto2ᚖgqlgen4ᚐPhoto (line 2686) | func (ec *executionContext) marshalNPhoto2ᚖgqlgen4ᚐPhoto(ctx context.C... method unmarshalNString2string (line 2696) | func (ec *executionContext) unmarshalNString2string(ctx context.Contex... method marshalNString2string (line 2700) | func (ec *executionContext) marshalNString2string(ctx context.Context,... method marshalNUser2gqlgen4ᚐUser (line 2710) | func (ec *executionContext) marshalNUser2gqlgen4ᚐUser(ctx context.Cont... method marshalNUser2ᚖgqlgen4ᚐUser (line 2714) | func (ec *executionContext) marshalNUser2ᚖgqlgen4ᚐUser(ctx context.Con... method marshalN__Directive2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirective (line 2724) | func (ec *executionContext) marshalN__Directive2githubᚗcomᚋ99designsᚋg... method marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirectiveᚄ (line 2728) | func (ec *executionContext) marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋ... method unmarshalN__DirectiveLocation2string (line 2765) | func (ec *executionContext) unmarshalN__DirectiveLocation2string(ctx c... method marshalN__DirectiveLocation2string (line 2769) | func (ec *executionContext) marshalN__DirectiveLocation2string(ctx con... method unmarshalN__DirectiveLocation2ᚕstringᚄ (line 2779) | func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx... method marshalN__DirectiveLocation2ᚕstringᚄ (line 2799) | func (ec *executionContext) marshalN__DirectiveLocation2ᚕstringᚄ(ctx c... method marshalN__EnumValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValue (line 2836) | func (ec *executionContext) marshalN__EnumValue2githubᚗcomᚋ99designsᚋg... method marshalN__Field2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐField (line 2840) | func (ec *executionContext) marshalN__Field2githubᚗcomᚋ99designsᚋgqlge... method marshalN__InputValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue (line 2844) | func (ec *executionContext) marshalN__InputValue2githubᚗcomᚋ99designsᚋ... method marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ (line 2848) | func (ec *executionContext) marshalN__InputValue2ᚕgithubᚗcomᚋ99designs... method marshalN__Type2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType (line 2885) | func (ec *executionContext) marshalN__Type2githubᚗcomᚋ99designsᚋgqlgen... method marshalN__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ (line 2889) | func (ec *executionContext) marshalN__Type2ᚕgithubᚗcomᚋ99designsᚋgqlge... method marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType (line 2926) | func (ec *executionContext) marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlge... method unmarshalN__TypeKind2string (line 2936) | func (ec *executionContext) unmarshalN__TypeKind2string(ctx context.Co... method marshalN__TypeKind2string (line 2940) | func (ec *executionContext) marshalN__TypeKind2string(ctx context.Cont... method unmarshalOBoolean2bool (line 2950) | func (ec *executionContext) unmarshalOBoolean2bool(ctx context.Context... method marshalOBoolean2bool (line 2954) | func (ec *executionContext) marshalOBoolean2bool(ctx context.Context, ... method unmarshalOBoolean2ᚖbool (line 2958) | func (ec *executionContext) unmarshalOBoolean2ᚖbool(ctx context.Contex... method marshalOBoolean2ᚖbool (line 2966) | func (ec *executionContext) marshalOBoolean2ᚖbool(ctx context.Context,... method unmarshalOString2string (line 2973) | func (ec *executionContext) unmarshalOString2string(ctx context.Contex... method marshalOString2string (line 2977) | func (ec *executionContext) marshalOString2string(ctx context.Context,... method unmarshalOString2ᚖstring (line 2981) | func (ec *executionContext) unmarshalOString2ᚖstring(ctx context.Conte... method marshalOString2ᚖstring (line 2989) | func (ec *executionContext) marshalOString2ᚖstring(ctx context.Context... method marshalO__EnumValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValueᚄ (line 2996) | func (ec *executionContext) marshalO__EnumValue2ᚕgithubᚗcomᚋ99designsᚋ... method marshalO__Field2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐFieldᚄ (line 3036) | func (ec *executionContext) marshalO__Field2ᚕgithubᚗcomᚋ99designsᚋgqlg... method marshalO__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ (line 3076) | func (ec *executionContext) marshalO__InputValue2ᚕgithubᚗcomᚋ99designs... method marshalO__Schema2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐSchema (line 3116) | func (ec *executionContext) marshalO__Schema2githubᚗcomᚋ99designsᚋgqlg... method marshalO__Schema2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐSchema (line 3120) | func (ec *executionContext) marshalO__Schema2ᚖgithubᚗcomᚋ99designsᚋgql... method marshalO__Type2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType (line 3127) | func (ec *executionContext) marshalO__Type2githubᚗcomᚋ99designsᚋgqlgen... method marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ (line 3131) | func (ec *executionContext) marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlge... method marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType (line 3171) | func (ec *executionContext) marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlge... FILE: 4-api/3_graphql/gqlgen_full/gqlgen4/models_gen.go type User (line 5) | type User struct FILE: 4-api/3_graphql/gqlgen_full/gqlgen4/photo.go type Photo (line 8) | type Photo struct method Id (line 18) | func (ph *Photo) Id() string { FILE: 4-api/3_graphql/gqlgen_full/gqlgen4/resolver.go type Resolver (line 13) | type Resolver struct method Mutation (line 18) | func (r *Resolver) Mutation() MutationResolver { method Photo (line 21) | func (r *Resolver) Photo() PhotoResolver { method User (line 24) | func (r *Resolver) User() UserResolver { method Query (line 27) | func (r *Resolver) Query() QueryResolver { type mutationResolver (line 31) | type mutationResolver struct method RatePhoto (line 33) | func (r *mutationResolver) RatePhoto(ctx context.Context, id string, d... type userResolver (line 47) | type userResolver struct method Photos (line 49) | func (r *userResolver) Photos(ctx context.Context, obj *User, count in... type photoResolver (line 62) | type photoResolver struct method ID (line 64) | func (r *photoResolver) ID(ctx context.Context, obj *Photo) (string, e... method User (line 68) | func (r *photoResolver) User(ctx context.Context, obj *Photo) (*User, ... type queryResolver (line 77) | type queryResolver struct method Timeline (line 79) | func (r *queryResolver) Timeline(ctx context.Context) ([]*Photo, error) { method User (line 88) | func (r *queryResolver) User(ctx context.Context, userID string) (*Use... method Photos (line 94) | func (r *queryResolver) Photos(ctx context.Context, userID string) ([]... FILE: 4-api/3_graphql/gqlgen_full/gqlgen4/server/server.go function UserLoaderMiddleware (line 61) | func UserLoaderMiddleware(resolver *gqlgen.Resolver, next http.Handler) ... function AuthMiddleware (line 86) | func AuthMiddleware(next http.Handler) http.Handler { function main (line 95) | func main() { FILE: 4-api/3_graphql/gqlgen_full/gqlgen4/userloader_gen.go type UserLoaderConfig (line 11) | type UserLoaderConfig struct function NewUserLoader (line 23) | func NewUserLoader(config UserLoaderConfig) *UserLoader { type UserLoader (line 32) | type UserLoader struct method Load (line 64) | func (l *UserLoader) Load(key uint) (*User, error) { method LoadThunk (line 71) | func (l *UserLoader) LoadThunk(key uint) func() (*User, error) { method LoadAll (line 114) | func (l *UserLoader) LoadAll(keys []uint) ([]*User, []error) { method LoadAllThunk (line 132) | func (l *UserLoader) LoadAllThunk(keys []uint) func() ([]*User, []erro... method Prime (line 150) | func (l *UserLoader) Prime(key uint, value *User) bool { method Clear (line 164) | func (l *UserLoader) Clear(key uint) { method unsafeSet (line 170) | func (l *UserLoader) unsafeSet(key uint, value *User) { type userLoaderBatch (line 55) | type userLoaderBatch struct method keyIndex (line 179) | func (b *userLoaderBatch) keyIndex(l *UserLoader, key uint) int { method startTimer (line 203) | func (b *userLoaderBatch) startTimer(l *UserLoader) { method end (line 219) | func (b *userLoaderBatch) end(l *UserLoader) { FILE: 4-api/3_graphql/gqlgen_full/gqlgen5/generated.go function NewExecutableSchema (line 22) | func NewExecutableSchema(cfg Config) graphql.ExecutableSchema { type Config (line 30) | type Config struct type ResolverRoot (line 36) | type ResolverRoot interface type DirectiveRoot (line 43) | type DirectiveRoot struct type ComplexityRoot (line 46) | type ComplexityRoot struct type MutationResolver (line 76) | type MutationResolver interface type PhotoResolver (line 80) | type PhotoResolver interface type QueryResolver (line 84) | type QueryResolver interface type UserResolver (line 89) | type UserResolver interface type executableSchema (line 93) | type executableSchema struct method Schema (line 99) | func (e *executableSchema) Schema() *ast.Schema { method Complexity (line 103) | func (e *executableSchema) Complexity(typeName, field string, childCom... method Exec (line 249) | func (e *executableSchema) Exec(ctx context.Context) graphql.ResponseH... type executionContext (line 289) | type executionContext struct method introspectSchema (line 294) | func (ec *executionContext) introspectSchema() (*introspection.Schema,... method introspectType (line 301) | func (ec *executionContext) introspectType(name string) (*introspectio... method field_Mutation_ratePhoto_args (line 364) | func (ec *executionContext) field_Mutation_ratePhoto_args(ctx context.... method field_Mutation_uploadPhoto_args (line 386) | func (ec *executionContext) field_Mutation_uploadPhoto_args(ctx contex... method field_Query___type_args (line 408) | func (ec *executionContext) field_Query___type_args(ctx context.Contex... method field_Query_photos_args (line 422) | func (ec *executionContext) field_Query_photos_args(ctx context.Contex... method field_Query_user_args (line 436) | func (ec *executionContext) field_Query_user_args(ctx context.Context,... method field_User_photos_args (line 450) | func (ec *executionContext) field_User_photos_args(ctx context.Context... method field___Type_enumValues_args (line 464) | func (ec *executionContext) field___Type_enumValues_args(ctx context.C... method field___Type_fields_args (line 478) | func (ec *executionContext) field___Type_fields_args(ctx context.Conte... method _Mutation_ratePhoto (line 500) | func (ec *executionContext) _Mutation_ratePhoto(ctx context.Context, f... method _Mutation_uploadPhoto (line 541) | func (ec *executionContext) _Mutation_uploadPhoto(ctx context.Context,... method _Photo_id (line 582) | func (ec *executionContext) _Photo_id(ctx context.Context, field graph... method _Photo_user (line 616) | func (ec *executionContext) _Photo_user(ctx context.Context, field gra... method _Photo_url (line 650) | func (ec *executionContext) _Photo_url(ctx context.Context, field grap... method _Photo_comment (line 684) | func (ec *executionContext) _Photo_comment(ctx context.Context, field ... method _Photo_rating (line 718) | func (ec *executionContext) _Photo_rating(ctx context.Context, field g... method _Photo_liked (line 752) | func (ec *executionContext) _Photo_liked(ctx context.Context, field gr... method _Query_timeline (line 786) | func (ec *executionContext) _Query_timeline(ctx context.Context, field... method _Query_user (line 820) | func (ec *executionContext) _Query_user(ctx context.Context, field gra... method _Query_photos (line 861) | func (ec *executionContext) _Query_photos(ctx context.Context, field g... method _Query___type (line 902) | func (ec *executionContext) _Query___type(ctx context.Context, field g... method _Query___schema (line 940) | func (ec *executionContext) _Query___schema(ctx context.Context, field... method _User_id (line 971) | func (ec *executionContext) _User_id(ctx context.Context, field graphq... method _User_name (line 1005) | func (ec *executionContext) _User_name(ctx context.Context, field grap... method _User_avatar (line 1039) | func (ec *executionContext) _User_avatar(ctx context.Context, field gr... method _User_followed (line 1073) | func (ec *executionContext) _User_followed(ctx context.Context, field ... method _User_photos (line 1107) | func (ec *executionContext) _User_photos(ctx context.Context, field gr... method ___Directive_name (line 1148) | func (ec *executionContext) ___Directive_name(ctx context.Context, fie... method ___Directive_description (line 1182) | func (ec *executionContext) ___Directive_description(ctx context.Conte... method ___Directive_locations (line 1213) | func (ec *executionContext) ___Directive_locations(ctx context.Context... method ___Directive_args (line 1247) | func (ec *executionContext) ___Directive_args(ctx context.Context, fie... method ___EnumValue_name (line 1281) | func (ec *executionContext) ___EnumValue_name(ctx context.Context, fie... method ___EnumValue_description (line 1315) | func (ec *executionContext) ___EnumValue_description(ctx context.Conte... method ___EnumValue_isDeprecated (line 1346) | func (ec *executionContext) ___EnumValue_isDeprecated(ctx context.Cont... method ___EnumValue_deprecationReason (line 1380) | func (ec *executionContext) ___EnumValue_deprecationReason(ctx context... method ___Field_name (line 1411) | func (ec *executionContext) ___Field_name(ctx context.Context, field g... method ___Field_description (line 1445) | func (ec *executionContext) ___Field_description(ctx context.Context, ... method ___Field_args (line 1476) | func (ec *executionContext) ___Field_args(ctx context.Context, field g... method ___Field_type (line 1510) | func (ec *executionContext) ___Field_type(ctx context.Context, field g... method ___Field_isDeprecated (line 1544) | func (ec *executionContext) ___Field_isDeprecated(ctx context.Context,... method ___Field_deprecationReason (line 1578) | func (ec *executionContext) ___Field_deprecationReason(ctx context.Con... method ___InputValue_name (line 1609) | func (ec *executionContext) ___InputValue_name(ctx context.Context, fi... method ___InputValue_description (line 1643) | func (ec *executionContext) ___InputValue_description(ctx context.Cont... method ___InputValue_type (line 1674) | func (ec *executionContext) ___InputValue_type(ctx context.Context, fi... method ___InputValue_defaultValue (line 1708) | func (ec *executionContext) ___InputValue_defaultValue(ctx context.Con... method ___Schema_types (line 1739) | func (ec *executionContext) ___Schema_types(ctx context.Context, field... method ___Schema_queryType (line 1773) | func (ec *executionContext) ___Schema_queryType(ctx context.Context, f... method ___Schema_mutationType (line 1807) | func (ec *executionContext) ___Schema_mutationType(ctx context.Context... method ___Schema_subscriptionType (line 1838) | func (ec *executionContext) ___Schema_subscriptionType(ctx context.Con... method ___Schema_directives (line 1869) | func (ec *executionContext) ___Schema_directives(ctx context.Context, ... method ___Type_kind (line 1903) | func (ec *executionContext) ___Type_kind(ctx context.Context, field gr... method ___Type_name (line 1937) | func (ec *executionContext) ___Type_name(ctx context.Context, field gr... method ___Type_description (line 1968) | func (ec *executionContext) ___Type_description(ctx context.Context, f... method ___Type_fields (line 1999) | func (ec *executionContext) ___Type_fields(ctx context.Context, field ... method ___Type_interfaces (line 2037) | func (ec *executionContext) ___Type_interfaces(ctx context.Context, fi... method ___Type_possibleTypes (line 2068) | func (ec *executionContext) ___Type_possibleTypes(ctx context.Context,... method ___Type_enumValues (line 2099) | func (ec *executionContext) ___Type_enumValues(ctx context.Context, fi... method ___Type_inputFields (line 2137) | func (ec *executionContext) ___Type_inputFields(ctx context.Context, f... method ___Type_ofType (line 2168) | func (ec *executionContext) ___Type_ofType(ctx context.Context, field ... method _Mutation (line 2213) | func (ec *executionContext) _Mutation(ctx context.Context, sel ast.Sel... method _Photo (line 2249) | func (ec *executionContext) _Photo(ctx context.Context, sel ast.Select... method _Query (line 2319) | func (ec *executionContext) _Query(ctx context.Context, sel ast.Select... method _User (line 2391) | func (ec *executionContext) _User(ctx context.Context, sel ast.Selecti... method ___Directive (line 2447) | func (ec *executionContext) ___Directive(ctx context.Context, sel ast.... method ___EnumValue (line 2486) | func (ec *executionContext) ___EnumValue(ctx context.Context, sel ast.... method ___Field (line 2522) | func (ec *executionContext) ___Field(ctx context.Context, sel ast.Sele... method ___InputValue (line 2568) | func (ec *executionContext) ___InputValue(ctx context.Context, sel ast... method ___Schema (line 2604) | func (ec *executionContext) ___Schema(ctx context.Context, sel ast.Sel... method ___Type (line 2645) | func (ec *executionContext) ___Type(ctx context.Context, sel ast.Selec... method unmarshalNBoolean2bool (line 2690) | func (ec *executionContext) unmarshalNBoolean2bool(ctx context.Context... method marshalNBoolean2bool (line 2694) | func (ec *executionContext) marshalNBoolean2bool(ctx context.Context, ... method unmarshalNID2string (line 2704) | func (ec *executionContext) unmarshalNID2string(ctx context.Context, v... method marshalNID2string (line 2708) | func (ec *executionContext) marshalNID2string(ctx context.Context, sel... method unmarshalNInt2int (line 2718) | func (ec *executionContext) unmarshalNInt2int(ctx context.Context, v i... method marshalNInt2int (line 2722) | func (ec *executionContext) marshalNInt2int(ctx context.Context, sel a... method marshalNPhoto2gqlgen5ᚐPhoto (line 2732) | func (ec *executionContext) marshalNPhoto2gqlgen5ᚐPhoto(ctx context.Co... method marshalNPhoto2ᚕᚖgqlgen5ᚐPhotoᚄ (line 2736) | func (ec *executionContext) marshalNPhoto2ᚕᚖgqlgen5ᚐPhotoᚄ(ctx context... method marshalNPhoto2ᚖgqlgen5ᚐPhoto (line 2773) | func (ec *executionContext) marshalNPhoto2ᚖgqlgen5ᚐPhoto(ctx context.C... method unmarshalNString2string (line 2783) | func (ec *executionContext) unmarshalNString2string(ctx context.Contex... method marshalNString2string (line 2787) | func (ec *executionContext) marshalNString2string(ctx context.Context,... method unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload (line 2797) | func (ec *executionContext) unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlg... method marshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload (line 2801) | func (ec *executionContext) marshalNUpload2githubᚗcomᚋ99designsᚋgqlgen... method marshalNUser2gqlgen5ᚐUser (line 2811) | func (ec *executionContext) marshalNUser2gqlgen5ᚐUser(ctx context.Cont... method marshalNUser2ᚖgqlgen5ᚐUser (line 2815) | func (ec *executionContext) marshalNUser2ᚖgqlgen5ᚐUser(ctx context.Con... method marshalN__Directive2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirective (line 2825) | func (ec *executionContext) marshalN__Directive2githubᚗcomᚋ99designsᚋg... method marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirectiveᚄ (line 2829) | func (ec *executionContext) marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋ... method unmarshalN__DirectiveLocation2string (line 2866) | func (ec *executionContext) unmarshalN__DirectiveLocation2string(ctx c... method marshalN__DirectiveLocation2string (line 2870) | func (ec *executionContext) marshalN__DirectiveLocation2string(ctx con... method unmarshalN__DirectiveLocation2ᚕstringᚄ (line 2880) | func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx... method marshalN__DirectiveLocation2ᚕstringᚄ (line 2900) | func (ec *executionContext) marshalN__DirectiveLocation2ᚕstringᚄ(ctx c... method marshalN__EnumValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValue (line 2937) | func (ec *executionContext) marshalN__EnumValue2githubᚗcomᚋ99designsᚋg... method marshalN__Field2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐField (line 2941) | func (ec *executionContext) marshalN__Field2githubᚗcomᚋ99designsᚋgqlge... method marshalN__InputValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue (line 2945) | func (ec *executionContext) marshalN__InputValue2githubᚗcomᚋ99designsᚋ... method marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ (line 2949) | func (ec *executionContext) marshalN__InputValue2ᚕgithubᚗcomᚋ99designs... method marshalN__Type2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType (line 2986) | func (ec *executionContext) marshalN__Type2githubᚗcomᚋ99designsᚋgqlgen... method marshalN__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ (line 2990) | func (ec *executionContext) marshalN__Type2ᚕgithubᚗcomᚋ99designsᚋgqlge... method marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType (line 3027) | func (ec *executionContext) marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlge... method unmarshalN__TypeKind2string (line 3037) | func (ec *executionContext) unmarshalN__TypeKind2string(ctx context.Co... method marshalN__TypeKind2string (line 3041) | func (ec *executionContext) marshalN__TypeKind2string(ctx context.Cont... method unmarshalOBoolean2bool (line 3051) | func (ec *executionContext) unmarshalOBoolean2bool(ctx context.Context... method marshalOBoolean2bool (line 3055) | func (ec *executionContext) marshalOBoolean2bool(ctx context.Context, ... method unmarshalOBoolean2ᚖbool (line 3059) | func (ec *executionContext) unmarshalOBoolean2ᚖbool(ctx context.Contex... method marshalOBoolean2ᚖbool (line 3067) | func (ec *executionContext) marshalOBoolean2ᚖbool(ctx context.Context,... method unmarshalOString2string (line 3074) | func (ec *executionContext) unmarshalOString2string(ctx context.Contex... method marshalOString2string (line 3078) | func (ec *executionContext) marshalOString2string(ctx context.Context,... method unmarshalOString2ᚖstring (line 3082) | func (ec *executionContext) unmarshalOString2ᚖstring(ctx context.Conte... method marshalOString2ᚖstring (line 3090) | func (ec *executionContext) marshalOString2ᚖstring(ctx context.Context... method marshalO__EnumValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValueᚄ (line 3097) | func (ec *executionContext) marshalO__EnumValue2ᚕgithubᚗcomᚋ99designsᚋ... method marshalO__Field2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐFieldᚄ (line 3137) | func (ec *executionContext) marshalO__Field2ᚕgithubᚗcomᚋ99designsᚋgqlg... method marshalO__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ (line 3177) | func (ec *executionContext) marshalO__InputValue2ᚕgithubᚗcomᚋ99designs... method marshalO__Schema2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐSchema (line 3217) | func (ec *executionContext) marshalO__Schema2githubᚗcomᚋ99designsᚋgqlg... method marshalO__Schema2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐSchema (line 3221) | func (ec *executionContext) marshalO__Schema2ᚖgithubᚗcomᚋ99designsᚋgql... method marshalO__Type2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType (line 3228) | func (ec *executionContext) marshalO__Type2githubᚗcomᚋ99designsᚋgqlgen... method marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ (line 3232) | func (ec *executionContext) marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlge... method marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType (line 3272) | func (ec *executionContext) marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlge... FILE: 4-api/3_graphql/gqlgen_full/gqlgen5/models_gen.go type User (line 5) | type User struct FILE: 4-api/3_graphql/gqlgen_full/gqlgen5/photo.go type Photo (line 8) | type Photo struct method Id (line 18) | func (ph *Photo) Id() string { FILE: 4-api/3_graphql/gqlgen_full/gqlgen5/resolver.go type Resolver (line 17) | type Resolver struct method Mutation (line 22) | func (r *Resolver) Mutation() MutationResolver { method Photo (line 25) | func (r *Resolver) Photo() PhotoResolver { method User (line 28) | func (r *Resolver) User() UserResolver { method Query (line 31) | func (r *Resolver) Query() QueryResolver { type mutationResolver (line 35) | type mutationResolver struct method RatePhoto (line 37) | func (r *mutationResolver) RatePhoto(ctx context.Context, id string, d... method UploadPhoto (line 51) | func (r *mutationResolver) UploadPhoto(ctx context.Context, comment st... type userResolver (line 72) | type userResolver struct method Photos (line 74) | func (r *userResolver) Photos(ctx context.Context, obj *User, count in... type photoResolver (line 87) | type photoResolver struct method ID (line 89) | func (r *photoResolver) ID(ctx context.Context, obj *Photo) (string, e... method User (line 93) | func (r *photoResolver) User(ctx context.Context, obj *Photo) (*User, ... type queryResolver (line 102) | type queryResolver struct method Timeline (line 104) | func (r *queryResolver) Timeline(ctx context.Context) ([]*Photo, error) { method User (line 113) | func (r *queryResolver) User(ctx context.Context, userID string) (*Use... method Photos (line 119) | func (r *queryResolver) Photos(ctx context.Context, userID string) ([]... FILE: 4-api/3_graphql/gqlgen_full/gqlgen5/server/server.go function UserLoaderMiddleware (line 81) | func UserLoaderMiddleware(resolver *gqlgen.Resolver, next http.Handler) ... function AuthMiddleware (line 109) | func AuthMiddleware(next http.Handler) http.Handler { function main (line 118) | func main() { FILE: 4-api/3_graphql/gqlgen_full/gqlgen5/userloader_gen.go type UserLoaderConfig (line 11) | type UserLoaderConfig struct function NewUserLoader (line 23) | func NewUserLoader(config UserLoaderConfig) *UserLoader { type UserLoader (line 32) | type UserLoader struct method Load (line 64) | func (l *UserLoader) Load(key uint) (*User, error) { method LoadThunk (line 71) | func (l *UserLoader) LoadThunk(key uint) func() (*User, error) { method LoadAll (line 114) | func (l *UserLoader) LoadAll(keys []uint) ([]*User, []error) { method LoadAllThunk (line 132) | func (l *UserLoader) LoadAllThunk(keys []uint) func() ([]*User, []erro... method Prime (line 150) | func (l *UserLoader) Prime(key uint, value *User) bool { method Clear (line 164) | func (l *UserLoader) Clear(key uint) { method unsafeSet (line 170) | func (l *UserLoader) unsafeSet(key uint, value *User) { type userLoaderBatch (line 55) | type userLoaderBatch struct method keyIndex (line 179) | func (b *userLoaderBatch) keyIndex(l *UserLoader, key uint) int { method startTimer (line 203) | func (b *userLoaderBatch) startTimer(l *UserLoader) { method end (line 219) | func (b *userLoaderBatch) end(l *UserLoader) { FILE: 4-api/3_graphql/gqlgen_full/gqlgen6/generated.go function NewExecutableSchema (line 23) | func NewExecutableSchema(cfg Config) graphql.ExecutableSchema { type Config (line 31) | type Config struct type ResolverRoot (line 37) | type ResolverRoot interface type DirectiveRoot (line 44) | type DirectiveRoot struct type ComplexityRoot (line 50) | type ComplexityRoot struct type MutationResolver (line 80) | type MutationResolver interface type PhotoResolver (line 84) | type PhotoResolver interface type QueryResolver (line 88) | type QueryResolver interface type UserResolver (line 93) | type UserResolver interface type executableSchema (line 97) | type executableSchema struct method Schema (line 103) | func (e *executableSchema) Schema() *ast.Schema { method Complexity (line 107) | func (e *executableSchema) Complexity(typeName, field string, childCom... method Query (line 253) | func (e *executableSchema) Query(ctx context.Context, op *ast.Operatio... method Mutation (line 270) | func (e *executableSchema) Mutation(ctx context.Context, op *ast.Opera... method Subscription (line 287) | func (e *executableSchema) Subscription(ctx context.Context, op *ast.O... type executionContext (line 291) | type executionContext struct method introspectSchema (line 296) | func (ec *executionContext) introspectSchema() (*introspection.Schema,... method introspectType (line 303) | func (ec *executionContext) introspectType(name string) (*introspectio... method dir_validation_args (line 371) | func (ec *executionContext) dir_validation_args(ctx context.Context, r... method field_Mutation_ratePhoto_args (line 385) | func (ec *executionContext) field_Mutation_ratePhoto_args(ctx context.... method field_Mutation_uploadPhoto_args (line 407) | func (ec *executionContext) field_Mutation_uploadPhoto_args(ctx contex... method field_Query___type_args (line 446) | func (ec *executionContext) field_Query___type_args(ctx context.Contex... method field_Query_photos_args (line 460) | func (ec *executionContext) field_Query_photos_args(ctx context.Contex... method field_Query_user_args (line 474) | func (ec *executionContext) field_Query_user_args(ctx context.Context,... method field_User_photos_args (line 488) | func (ec *executionContext) field_User_photos_args(ctx context.Context... method field___Type_enumValues_args (line 502) | func (ec *executionContext) field___Type_enumValues_args(ctx context.C... method field___Type_fields_args (line 516) | func (ec *executionContext) field___Type_fields_args(ctx context.Conte... method _Mutation_ratePhoto (line 538) | func (ec *executionContext) _Mutation_ratePhoto(ctx context.Context, f... method _Mutation_uploadPhoto (line 582) | func (ec *executionContext) _Mutation_uploadPhoto(ctx context.Context,... method _Photo_id (line 626) | func (ec *executionContext) _Photo_id(ctx context.Context, field graph... method _Photo_user (line 663) | func (ec *executionContext) _Photo_user(ctx context.Context, field gra... method _Photo_url (line 700) | func (ec *executionContext) _Photo_url(ctx context.Context, field grap... method _Photo_comment (line 737) | func (ec *executionContext) _Photo_comment(ctx context.Context, field ... method _Photo_rating (line 774) | func (ec *executionContext) _Photo_rating(ctx context.Context, field g... method _Photo_liked (line 811) | func (ec *executionContext) _Photo_liked(ctx context.Context, field gr... method _Query_timeline (line 848) | func (ec *executionContext) _Query_timeline(ctx context.Context, field... method _Query_user (line 885) | func (ec *executionContext) _Query_user(ctx context.Context, field gra... method _Query_photos (line 929) | func (ec *executionContext) _Query_photos(ctx context.Context, field g... method _Query___type (line 973) | func (ec *executionContext) _Query___type(ctx context.Context, field g... method _Query___schema (line 1014) | func (ec *executionContext) _Query___schema(ctx context.Context, field... method _User_id (line 1048) | func (ec *executionContext) _User_id(ctx context.Context, field graphq... method _User_name (line 1085) | func (ec *executionContext) _User_name(ctx context.Context, field grap... method _User_avatar (line 1122) | func (ec *executionContext) _User_avatar(ctx context.Context, field gr... method _User_followed (line 1159) | func (ec *executionContext) _User_followed(ctx context.Context, field ... method _User_photos (line 1196) | func (ec *executionContext) _User_photos(ctx context.Context, field gr... method ___Directive_name (line 1260) | func (ec *executionContext) ___Directive_name(ctx context.Context, fie... method ___Directive_description (line 1297) | func (ec *executionContext) ___Directive_description(ctx context.Conte... method ___Directive_locations (line 1331) | func (ec *executionContext) ___Directive_locations(ctx context.Context... method ___Directive_args (line 1368) | func (ec *executionContext) ___Directive_args(ctx context.Context, fie... method ___EnumValue_name (line 1405) | func (ec *executionContext) ___EnumValue_name(ctx context.Context, fie... method ___EnumValue_description (line 1442) | func (ec *executionContext) ___EnumValue_description(ctx context.Conte... method ___EnumValue_isDeprecated (line 1476) | func (ec *executionContext) ___EnumValue_isDeprecated(ctx context.Cont... method ___EnumValue_deprecationReason (line 1513) | func (ec *executionContext) ___EnumValue_deprecationReason(ctx context... method ___Field_name (line 1547) | func (ec *executionContext) ___Field_name(ctx context.Context, field g... method ___Field_description (line 1584) | func (ec *executionContext) ___Field_description(ctx context.Context, ... method ___Field_args (line 1618) | func (ec *executionContext) ___Field_args(ctx context.Context, field g... method ___Field_type (line 1655) | func (ec *executionContext) ___Field_type(ctx context.Context, field g... method ___Field_isDeprecated (line 1692) | func (ec *executionContext) ___Field_isDeprecated(ctx context.Context,... method ___Field_deprecationReason (line 1729) | func (ec *executionContext) ___Field_deprecationReason(ctx context.Con... method ___InputValue_name (line 1763) | func (ec *executionContext) ___InputValue_name(ctx context.Context, fi... method ___InputValue_description (line 1800) | func (ec *executionContext) ___InputValue_description(ctx context.Cont... method ___InputValue_type (line 1834) | func (ec *executionContext) ___InputValue_type(ctx context.Context, fi... method ___InputValue_defaultValue (line 1871) | func (ec *executionContext) ___InputValue_defaultValue(ctx context.Con... method ___Schema_types (line 1905) | func (ec *executionContext) ___Schema_types(ctx context.Context, field... method ___Schema_queryType (line 1942) | func (ec *executionContext) ___Schema_queryType(ctx context.Context, f... method ___Schema_mutationType (line 1979) | func (ec *executionContext) ___Schema_mutationType(ctx context.Context... method ___Schema_subscriptionType (line 2013) | func (ec *executionContext) ___Schema_subscriptionType(ctx context.Con... method ___Schema_directives (line 2047) | func (ec *executionContext) ___Schema_directives(ctx context.Context, ... method ___Type_kind (line 2084) | func (ec *executionContext) ___Type_kind(ctx context.Context, field gr... method ___Type_name (line 2121) | func (ec *executionContext) ___Type_name(ctx context.Context, field gr... method ___Type_description (line 2155) | func (ec *executionContext) ___Type_description(ctx context.Context, f... method ___Type_fields (line 2189) | func (ec *executionContext) ___Type_fields(ctx context.Context, field ... method ___Type_interfaces (line 2230) | func (ec *executionContext) ___Type_interfaces(ctx context.Context, fi... method ___Type_possibleTypes (line 2264) | func (ec *executionContext) ___Type_possibleTypes(ctx context.Context,... method ___Type_enumValues (line 2298) | func (ec *executionContext) ___Type_enumValues(ctx context.Context, fi... method ___Type_inputFields (line 2339) | func (ec *executionContext) ___Type_inputFields(ctx context.Context, f... method ___Type_ofType (line 2373) | func (ec *executionContext) ___Type_ofType(ctx context.Context, field ... method _Mutation (line 2421) | func (ec *executionContext) _Mutation(ctx context.Context, sel ast.Sel... method _Photo (line 2457) | func (ec *executionContext) _Photo(ctx context.Context, sel ast.Select... method _Query (line 2527) | func (ec *executionContext) _Query(ctx context.Context, sel ast.Select... method _User (line 2599) | func (ec *executionContext) _User(ctx context.Context, sel ast.Selecti... method ___Directive (line 2655) | func (ec *executionContext) ___Directive(ctx context.Context, sel ast.... method ___EnumValue (line 2694) | func (ec *executionContext) ___EnumValue(ctx context.Context, sel ast.... method ___Field (line 2730) | func (ec *executionContext) ___Field(ctx context.Context, sel ast.Sele... method ___InputValue (line 2776) | func (ec *executionContext) ___InputValue(ctx context.Context, sel ast... method ___Schema (line 2812) | func (ec *executionContext) ___Schema(ctx context.Context, sel ast.Sel... method ___Type (line 2853) | func (ec *executionContext) ___Type(ctx context.Context, sel ast.Selec... method unmarshalNBoolean2bool (line 2898) | func (ec *executionContext) unmarshalNBoolean2bool(ctx context.Context... method marshalNBoolean2bool (line 2902) | func (ec *executionContext) marshalNBoolean2bool(ctx context.Context, ... method unmarshalNID2string (line 2912) | func (ec *executionContext) unmarshalNID2string(ctx context.Context, v... method marshalNID2string (line 2916) | func (ec *executionContext) marshalNID2string(ctx context.Context, sel... method unmarshalNInt2int (line 2926) | func (ec *executionContext) unmarshalNInt2int(ctx context.Context, v i... method marshalNInt2int (line 2930) | func (ec *executionContext) marshalNInt2int(ctx context.Context, sel a... method marshalNPhoto2gqlgen6ᚐPhoto (line 2940) | func (ec *executionContext) marshalNPhoto2gqlgen6ᚐPhoto(ctx context.Co... method marshalNPhoto2ᚕᚖgqlgen6ᚐPhotoᚄ (line 2944) | func (ec *executionContext) marshalNPhoto2ᚕᚖgqlgen6ᚐPhotoᚄ(ctx context... method marshalNPhoto2ᚖgqlgen6ᚐPhoto (line 2981) | func (ec *executionContext) marshalNPhoto2ᚖgqlgen6ᚐPhoto(ctx context.C... method unmarshalNString2string (line 2991) | func (ec *executionContext) unmarshalNString2string(ctx context.Contex... method marshalNString2string (line 2995) | func (ec *executionContext) marshalNString2string(ctx context.Context,... method unmarshalNString2ᚕstringᚄ (line 3005) | func (ec *executionContext) unmarshalNString2ᚕstringᚄ(ctx context.Cont... method marshalNString2ᚕstringᚄ (line 3025) | func (ec *executionContext) marshalNString2ᚕstringᚄ(ctx context.Contex... method unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload (line 3034) | func (ec *executionContext) unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlg... method marshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload (line 3038) | func (ec *executionContext) marshalNUpload2githubᚗcomᚋ99designsᚋgqlgen... method marshalNUser2gqlgen6ᚐUser (line 3048) | func (ec *executionContext) marshalNUser2gqlgen6ᚐUser(ctx context.Cont... method marshalNUser2ᚖgqlgen6ᚐUser (line 3052) | func (ec *executionContext) marshalNUser2ᚖgqlgen6ᚐUser(ctx context.Con... method marshalN__Directive2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirective (line 3062) | func (ec *executionContext) marshalN__Directive2githubᚗcomᚋ99designsᚋg... method marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirectiveᚄ (line 3066) | func (ec *executionContext) marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋ... method unmarshalN__DirectiveLocation2string (line 3103) | func (ec *executionContext) unmarshalN__DirectiveLocation2string(ctx c... method marshalN__DirectiveLocation2string (line 3107) | func (ec *executionContext) marshalN__DirectiveLocation2string(ctx con... method unmarshalN__DirectiveLocation2ᚕstringᚄ (line 3117) | func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx... method marshalN__DirectiveLocation2ᚕstringᚄ (line 3137) | func (ec *executionContext) marshalN__DirectiveLocation2ᚕstringᚄ(ctx c... method marshalN__EnumValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValue (line 3174) | func (ec *executionContext) marshalN__EnumValue2githubᚗcomᚋ99designsᚋg... method marshalN__Field2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐField (line 3178) | func (ec *executionContext) marshalN__Field2githubᚗcomᚋ99designsᚋgqlge... method marshalN__InputValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue (line 3182) | func (ec *executionContext) marshalN__InputValue2githubᚗcomᚋ99designsᚋ... method marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ (line 3186) | func (ec *executionContext) marshalN__InputValue2ᚕgithubᚗcomᚋ99designs... method marshalN__Type2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType (line 3223) | func (ec *executionContext) marshalN__Type2githubᚗcomᚋ99designsᚋgqlgen... method marshalN__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ (line 3227) | func (ec *executionContext) marshalN__Type2ᚕgithubᚗcomᚋ99designsᚋgqlge... method marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType (line 3264) | func (ec *executionContext) marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlge... method unmarshalN__TypeKind2string (line 3274) | func (ec *executionContext) unmarshalN__TypeKind2string(ctx context.Co... method marshalN__TypeKind2string (line 3278) | func (ec *executionContext) marshalN__TypeKind2string(ctx context.Cont... method unmarshalOBoolean2bool (line 3288) | func (ec *executionContext) unmarshalOBoolean2bool(ctx context.Context... method marshalOBoolean2bool (line 3292) | func (ec *executionContext) marshalOBoolean2bool(ctx context.Context, ... method unmarshalOBoolean2ᚖbool (line 3296) | func (ec *executionContext) unmarshalOBoolean2ᚖbool(ctx context.Contex... method marshalOBoolean2ᚖbool (line 3304) | func (ec *executionContext) marshalOBoolean2ᚖbool(ctx context.Context,... method unmarshalOString2string (line 3311) | func (ec *executionContext) unmarshalOString2string(ctx context.Contex... method marshalOString2string (line 3315) | func (ec *executionContext) marshalOString2string(ctx context.Context,... method unmarshalOString2ᚖstring (line 3319) | func (ec *executionContext) unmarshalOString2ᚖstring(ctx context.Conte... method marshalOString2ᚖstring (line 3327) | func (ec *executionContext) marshalOString2ᚖstring(ctx context.Context... method marshalO__EnumValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValueᚄ (line 3334) | func (ec *executionContext) marshalO__EnumValue2ᚕgithubᚗcomᚋ99designsᚋ... method marshalO__Field2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐFieldᚄ (line 3374) | func (ec *executionContext) marshalO__Field2ᚕgithubᚗcomᚋ99designsᚋgqlg... method marshalO__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ (line 3414) | func (ec *executionContext) marshalO__InputValue2ᚕgithubᚗcomᚋ99designs... method marshalO__Schema2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐSchema (line 3454) | func (ec *executionContext) marshalO__Schema2githubᚗcomᚋ99designsᚋgqlg... method marshalO__Schema2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐSchema (line 3458) | func (ec *executionContext) marshalO__Schema2ᚖgithubᚗcomᚋ99designsᚋgql... method marshalO__Type2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType (line 3465) | func (ec *executionContext) marshalO__Type2githubᚗcomᚋ99designsᚋgqlgen... method marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ (line 3469) | func (ec *executionContext) marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlge... method marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType (line 3509) | func (ec *executionContext) marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlge... FILE: 4-api/3_graphql/gqlgen_full/gqlgen6/models_gen.go type User (line 5) | type User struct FILE: 4-api/3_graphql/gqlgen_full/gqlgen6/photo.go type Photo (line 8) | type Photo struct method Id (line 18) | func (ph *Photo) Id() string { FILE: 4-api/3_graphql/gqlgen_full/gqlgen6/resolver.go type Resolver (line 17) | type Resolver struct method Mutation (line 22) | func (r *Resolver) Mutation() MutationResolver { method Photo (line 25) | func (r *Resolver) Photo() PhotoResolver { method User (line 28) | func (r *Resolver) User() UserResolver { method Query (line 31) | func (r *Resolver) Query() QueryResolver { type mutationResolver (line 35) | type mutationResolver struct method RatePhoto (line 37) | func (r *mutationResolver) RatePhoto(ctx context.Context, id string, d... method UploadPhoto (line 51) | func (r *mutationResolver) UploadPhoto(ctx context.Context, comment st... type userResolver (line 72) | type userResolver struct method Photos (line 74) | func (r *userResolver) Photos(ctx context.Context, obj *User, count in... type photoResolver (line 87) | type photoResolver struct method ID (line 89) | func (r *photoResolver) ID(ctx context.Context, obj *Photo) (string, e... method User (line 93) | func (r *photoResolver) User(ctx context.Context, obj *Photo) (*User, ... type queryResolver (line 102) | type queryResolver struct method Timeline (line 104) | func (r *queryResolver) Timeline(ctx context.Context) ([]*Photo, error) { method User (line 113) | func (r *queryResolver) User(ctx context.Context, userID string) (*Use... method Photos (line 119) | func (r *queryResolver) Photos(ctx context.Context, userID string) ([]... FILE: 4-api/3_graphql/gqlgen_full/gqlgen6/server/server.go function UserLoaderMiddleware (line 109) | func UserLoaderMiddleware(resolver *gqlgen.Resolver, next http.Handler) ... function AuthMiddleware (line 137) | func AuthMiddleware(next http.Handler) http.Handler { function IsFollowed (line 153) | func IsFollowed(userID, currUserID uint) bool { function CheckIsSubscribed (line 162) | func CheckIsSubscribed(ctx context.Context, obj interface{}, next graphq... function noBadUrls (line 179) | func noBadUrls(vars map[string]interface{}) bool { function noMatureLanguage (line 187) | func noMatureLanguage(vars map[string]interface{}) bool { function CheckValidation (line 200) | func CheckValidation(ctx context.Context, obj interface{}, next graphql.... function main (line 220) | func main() { FILE: 4-api/3_graphql/gqlgen_full/gqlgen6/userloader_gen.go type UserLoaderConfig (line 11) | type UserLoaderConfig struct function NewUserLoader (line 23) | func NewUserLoader(config UserLoaderConfig) *UserLoader { type UserLoader (line 32) | type UserLoader struct method Load (line 64) | func (l *UserLoader) Load(key uint) (*User, error) { method LoadThunk (line 71) | func (l *UserLoader) LoadThunk(key uint) func() (*User, error) { method LoadAll (line 114) | func (l *UserLoader) LoadAll(keys []uint) ([]*User, []error) { method LoadAllThunk (line 132) | func (l *UserLoader) LoadAllThunk(keys []uint) func() ([]*User, []erro... method Prime (line 150) | func (l *UserLoader) Prime(key uint, value *User) bool { method Clear (line 164) | func (l *UserLoader) Clear(key uint) { method unsafeSet (line 170) | func (l *UserLoader) unsafeSet(key uint, value *User) { type userLoaderBatch (line 55) | type userLoaderBatch struct method keyIndex (line 179) | func (b *userLoaderBatch) keyIndex(l *UserLoader, key uint) int { method startTimer (line 203) | func (b *userLoaderBatch) startTimer(l *UserLoader) { method end (line 219) | func (b *userLoaderBatch) end(l *UserLoader) { FILE: 4-api/3_graphql/graphql-go/main.go type Author (line 29) | type Author struct type Book (line 33) | type Book struct function executeQuery (line 234) | func executeQuery(query string, schema graphql.Schema) *graphql.Result { function main (line 245) | func main() { FILE: 4-api/4_swagger/docs/docs.go type swaggerInfo (line 123) | type swaggerInfo struct type s (line 142) | type s struct method ReadDoc (line 144) | func (s *s) ReadDoc() string { function init (line 166) | func init() { FILE: 4-api/4_swagger/main.go type myError (line 13) | type myError struct function handleUsers (line 30) | func handleUsers(w http.ResponseWriter, r *http.Request) { function main (line 48) | func main() { FILE: 4-api/4_swagger/model/user.go type User (line 3) | type User struct type Error (line 9) | type Error struct FILE: 4-api/5_sessions/main.go type User (line 11) | type User struct function RandStringRunes (line 21) | func RandStringRunes(n int) string { type MyHandler (line 29) | type MyHandler struct method Login (line 45) | func (api *MyHandler) Login(w http.ResponseWriter, r *http.Request) { method Logout (line 72) | func (api *MyHandler) Logout(w http.ResponseWriter, r *http.Request) { method Root (line 91) | func (api *MyHandler) Root(w http.ResponseWriter, r *http.Request) { function NewMyHandler (line 34) | func NewMyHandler() *MyHandler { function main (line 105) | func main() { FILE: 4-api/6_jwt/main.go function main (line 14) | func main() { FILE: 4-api/7_oauth/main.go constant APP_ID (line 15) | APP_ID = "7065390" constant APP_KEY (line 16) | APP_KEY = "cQZe3Vvo4mHotmetUdXK" constant APP_SECRET (line 17) | APP_SECRET = "1bbf49951bbf49951bbf49953b1bd486bb11bbf1bbf4995468b3d76e2c... constant API_URL (line 18) | API_URL = "https://api.vk.com/method/users.get?fields=email,photo_50&... type Response (line 21) | type Response struct function main (line 30) | func main() { FILE: 5-architecture/0_bad_example/api.go type User (line 12) | type User struct type TODO (line 17) | type TODO struct function genRequestID (line 36) | func genRequestID() string { function createUserHandler (line 40) | func createUserHandler(w http.ResponseWriter, r *http.Request) { function allUsersHandler (line 106) | func allUsersHandler(w http.ResponseWriter, r *http.Request) { function todoHandler (line 133) | func todoHandler(w http.ResponseWriter, r *http.Request) { function main (line 179) | func main() { FILE: 5-architecture/10_crudapp/cmd/crudapp/main.go function main (line 18) | func main() { FILE: 5-architecture/10_crudapp/internal/crudapp/middleware/accesslog.go function AccessLog (line 11) | func AccessLog(logger *zap.SugaredLogger, next http.Handler) http.Handler { FILE: 5-architecture/10_crudapp/internal/crudapp/middleware/auth.go function Auth (line 21) | func Auth(sm *session.SessionsManager, next http.Handler) http.Handler { FILE: 5-architecture/10_crudapp/internal/crudapp/middleware/panic.go function Panic (line 8) | func Panic(next http.Handler) http.Handler { FILE: 5-architecture/10_crudapp/internal/pkg/items/delivery/items.go type ItemsHandler (line 17) | type ItemsHandler struct method List (line 23) | func (h *ItemsHandler) List(w http.ResponseWriter, r *http.Request) { method AddForm (line 41) | func (h *ItemsHandler) AddForm(w http.ResponseWriter, r *http.Request) { method Add (line 49) | func (h *ItemsHandler) Add(w http.ResponseWriter, r *http.Request) { method Edit (line 72) | func (h *ItemsHandler) Edit(w http.ResponseWriter, r *http.Request) { method Update (line 97) | func (h *ItemsHandler) Update(w http.ResponseWriter, r *http.Request) { method Delete (line 127) | func (h *ItemsHandler) Delete(w http.ResponseWriter, r *http.Request) { FILE: 5-architecture/10_crudapp/internal/pkg/items/items.go type Repository (line 5) | type Repository interface FILE: 5-architecture/10_crudapp/internal/pkg/items/repository/repo.go type itemsRepo (line 7) | type itemsRepo struct method GetAll (line 18) | func (repo *itemsRepo) GetAll() ([]*models.Item, error) { method GetByID (line 22) | func (repo *itemsRepo) GetByID(id uint32) (*models.Item, error) { method Add (line 31) | func (repo *itemsRepo) Add(item *models.Item) (uint32, error) { method Update (line 38) | func (repo *itemsRepo) Update(newItem *models.Item) (bool, error) { method Delete (line 50) | func (repo *itemsRepo) Delete(id uint32) (bool, error) { function NewRepo (line 12) | func NewRepo() *itemsRepo { FILE: 5-architecture/10_crudapp/internal/pkg/models/item.go type Item (line 3) | type Item struct FILE: 5-architecture/10_crudapp/internal/pkg/models/session.go type Session (line 10) | type Session struct function NewSession (line 15) | func NewSession(userID uint32) *Session { type sessKey (line 30) | type sessKey function SessionFromContext (line 34) | func SessionFromContext(ctx context.Context) (*Session, error) { FILE: 5-architecture/10_crudapp/internal/pkg/models/user.go type User (line 5) | type User struct FILE: 5-architecture/10_crudapp/internal/pkg/session/manager.go type SessionsManager (line 10) | type SessionsManager struct method Check (line 22) | func (sm *SessionsManager) Check(r *http.Request) (*models.Session, er... method Create (line 39) | func (sm *SessionsManager) Create(w http.ResponseWriter, userID uint32... method DestroyCurrent (line 56) | func (sm *SessionsManager) DestroyCurrent(w http.ResponseWriter, r *ht... function NewSessionsMem (line 15) | func NewSessionsMem() *SessionsManager { FILE: 5-architecture/10_crudapp/internal/pkg/user/delivery/user.go type UserHandler (line 15) | type UserHandler struct method Index (line 22) | func (h *UserHandler) Index(w http.ResponseWriter, r *http.Request) { method Login (line 36) | func (h *UserHandler) Login(w http.ResponseWriter, r *http.Request) { method Logout (line 52) | func (h *UserHandler) Logout(w http.ResponseWriter, r *http.Request) { method GetUserByID (line 57) | func (h *UserHandler) GetUserByID(login string) (*models.User, error) { FILE: 5-architecture/10_crudapp/internal/pkg/user/delivery/user_test.go function TestGetByID (line 13) | func TestGetByID(t *testing.T) { FILE: 5-architecture/10_crudapp/internal/pkg/user/mock/mock_repo.go type MockRepository (line 14) | type MockRepository struct method EXPECT (line 32) | func (m *MockRepository) EXPECT() *MockRepositoryMockRecorder { method Authorize (line 37) | func (m *MockRepository) Authorize(arg0, arg1 string) (*models.User, e... method GetByLogin (line 52) | func (m *MockRepository) GetByLogin(arg0 string) (*models.User, error) { type MockRepositoryMockRecorder (line 20) | type MockRepositoryMockRecorder struct method Authorize (line 46) | func (mr *MockRepositoryMockRecorder) Authorize(arg0, arg1 interface{}... method GetByLogin (line 61) | func (mr *MockRepositoryMockRecorder) GetByLogin(arg0 interface{}) *go... function NewMockRepository (line 25) | func NewMockRepository(ctrl *gomock.Controller) *MockRepository { FILE: 5-architecture/10_crudapp/internal/pkg/user/repository/user.go type UserRepo (line 7) | type UserRepo struct method Authorize (line 23) | func (repo *UserRepo) Authorize(login, pass string) (*models.User, err... function NewUserRepo (line 11) | func NewUserRepo() *UserRepo { FILE: 5-architecture/10_crudapp/internal/pkg/user/user.go type Repository (line 7) | type Repository interface FILE: 5-architecture/1_routers/0_httprouter/0_httprouter.go function List (line 11) | func List(w http.ResponseWriter, r *http.Request, _ httprouter.Params) { function Get (line 15) | func Get(w http.ResponseWriter, r *http.Request, ps httprouter.Params) { function Create (line 23) | func Create(w http.ResponseWriter, r *http.Request, ps httprouter.Params) { function Update (line 31) | func Update(w http.ResponseWriter, r *http.Request, ps httprouter.Params) { function main (line 35) | func main() { FILE: 5-architecture/1_routers/1_fasthttp/1_fasthttp.go function Index (line 12) | func Index(ctx *fasthttp.RequestCtx) { function GetUser (line 23) | func GetUser(ctx *fasthttp.RequestCtx) { function main (line 27) | func main() { FILE: 5-architecture/1_routers/2_gorilla/2_gorilla.go function List (line 11) | func List(w http.ResponseWriter, r *http.Request) { function Get (line 15) | func Get(w http.ResponseWriter, r *http.Request) { function Create (line 24) | func Create(w http.ResponseWriter, r *http.Request) { function Update (line 32) | func Update(w http.ResponseWriter, r *http.Request) { function main (line 37) | func main() { FILE: 5-architecture/1_routers/3_multiple/3_multiple.go function RegularRequest (line 12) | func RegularRequest(w http.ResponseWriter, r *http.Request) { function FastRequest (line 16) | func FastRequest(w http.ResponseWriter, r *http.Request, params httprout... function ComplexRequest (line 20) | func ComplexRequest(w http.ResponseWriter, r *http.Request) { function main (line 24) | func main() { FILE: 5-architecture/2_middleware/1_middleware/1_middleware.go function mainPage (line 9) | func mainPage(w http.ResponseWriter, r *http.Request) { function loginPage (line 23) | func loginPage(w http.ResponseWriter, r *http.Request) { function logoutPage (line 34) | func logoutPage(w http.ResponseWriter, r *http.Request) { function adminIndex (line 47) | func adminIndex(w http.ResponseWriter, r *http.Request) { function panicPage (line 52) | func panicPage(w http.ResponseWriter, r *http.Request) { function pageWithAllChecks (line 58) | func pageWithAllChecks(w http.ResponseWriter, r *http.Request) { function adminAuthMiddleware (line 83) | func adminAuthMiddleware(next http.Handler) http.Handler { function accessLogMiddleware (line 97) | func accessLogMiddleware(next http.Handler) http.Handler { function panicMiddleware (line 107) | func panicMiddleware(next http.Handler) http.Handler { function main (line 122) | func main() { FILE: 5-architecture/2_middleware/2_context_value/2_context_value.go constant AvgSleep (line 14) | AvgSleep = 50 function trackContextTimings (line 16) | func trackContextTimings(ctx context.Context, metricName string, start t... type Timing (line 39) | type Timing struct type ctxTimings (line 44) | type ctxTimings struct type key (line 51) | type key constant timingsKey (line 53) | timingsKey key = 1 function logContextTimings (line 55) | func logContextTimings(ctx context.Context, path string, start time.Time) { function timingMiddleware (line 76) | func timingMiddleware(next http.Handler) http.Handler { function emulateWork (line 89) | func emulateWork(ctx context.Context, workName string) { function loadPostsHandle (line 96) | func loadPostsHandle(w http.ResponseWriter, req *http.Request) { function main (line 110) | func main() { FILE: 5-architecture/3_errors/1_basic_err/1_basic_err.go function getRemoteResource (line 13) | func getRemoteResource() error { function handler (line 28) | func handler(w http.ResponseWriter, r *http.Request) { function main (line 40) | func main() { FILE: 5-architecture/3_errors/2_named_err/2_named_err.go function getRemoteResource (line 16) | func getRemoteResource() error { function handler (line 25) | func handler(w http.ResponseWriter, r *http.Request) { function main (line 40) | func main() { FILE: 5-architecture/3_errors/3_pkg_err/3_pkg_err.go function getRemoteResource (line 16) | func getRemoteResource() error { function handler (line 26) | func handler(w http.ResponseWriter, r *http.Request) { function main (line 43) | func main() { FILE: 5-architecture/3_errors/4_own_err/4_own_err.go type HTTPError (line 13) | type HTTPError struct type ResourceError (line 19) | type ResourceError struct method Error (line 25) | func (re *ResourceError) Error() string { function getRemoteResource (line 33) | func getRemoteResource() error { function handler (line 42) | func handler(w http.ResponseWriter, r *http.Request) { function main (line 59) | func main() { FILE: 5-architecture/3_errors/5_new_errors/5_new_errors.go type MyOwnError (line 12) | type MyOwnError struct method Error (line 17) | func (e MyOwnError) Error() string { function someJob (line 28) | func someJob() error { function jobWrapper (line 43) | func jobWrapper() error { function main (line 48) | func main() { FILE: 5-architecture/4_validation/validation.go type SendMessage (line 16) | type SendMessage struct function handler (line 25) | func handler(w http.ResponseWriter, r *http.Request) { function main (line 55) | func main() { function init (line 61) | func init() { FILE: 5-architecture/5_logging/main.go function mainPage (line 14) | func mainPage(w http.ResponseWriter, r *http.Request) { type AccessLogger (line 18) | type AccessLogger struct method accessLogMiddleware (line 24) | func (ac *AccessLogger) accessLogMiddleware(next http.Handler) http.Ha... function main (line 55) | func main() { FILE: 5-architecture/6_websockets/main.go function sendNewMsgNotifications (line 23) | func sendNewMsgNotifications(client *websocket.Conn) { function main (line 40) | func main() { function newMessage (line 60) | func newMessage() []byte { FILE: 5-architecture/7_frameworks/echo/main.go constant listenAddr (line 13) | listenAddr = "127.0.0.1:8080" function main (line 15) | func main() { FILE: 5-architecture/7_frameworks/echo/middleware/error.go function ErrorHandler (line 11) | func ErrorHandler(err error, ctx echo.Context) { FILE: 5-architecture/7_frameworks/echo/middleware/panic.go function PanicMiddleware (line 9) | func PanicMiddleware(next echo.HandlerFunc) echo.HandlerFunc { FILE: 5-architecture/7_frameworks/echo/middleware/request_id.go function RequestIDMiddleware (line 10) | func RequestIDMiddleware(next echo.HandlerFunc) echo.HandlerFunc { FILE: 5-architecture/7_frameworks/echo/model/user.go type User (line 3) | type User struct FILE: 5-architecture/7_frameworks/echo/user/delivery/http/hander_test.go function TestGetUser (line 16) | func TestGetUser(t *testing.T) { FILE: 5-architecture/7_frameworks/echo/user/delivery/http/handler.go type userHandler (line 11) | type userHandler struct method GetUser (line 24) | func (h *userHandler) GetUser(ctx echo.Context) error { method GetAllUsers (line 28) | func (h *userHandler) GetAllUsers(ctx echo.Context) error { method CreateUser (line 32) | func (h *userHandler) CreateUser(ctx echo.Context) error { function NewUserHandler (line 15) | func NewUserHandler(e *echo.Echo, us user.Usecase) { FILE: 5-architecture/7_frameworks/echo/user/repository.go type Repository (line 11) | type Repository interface FILE: 5-architecture/7_frameworks/echo/user/repository/memory.go function NewUserMemoryRepository (line 10) | func NewUserMemoryRepository() user.Repository { type UserMemoryRepository (line 16) | type UserMemoryRepository struct method GetUser (line 21) | func (db *UserMemoryRepository) GetUser(username string) (model.User, ... method GetAllUsers (line 25) | func (db *UserMemoryRepository) GetAllUsers() ([]model.User, error) { method InsertUser (line 38) | func (db *UserMemoryRepository) InsertUser(u model.User) error { FILE: 5-architecture/7_frameworks/echo/user/usecase.go type Usecase (line 5) | type Usecase interface FILE: 5-architecture/7_frameworks/echo/user/usecase/usecase.go function NewUserUsecase (line 8) | func NewUserUsecase(userRepo user.Repository) user.Usecase { type userUsecase (line 12) | type userUsecase struct method GetUser (line 16) | func (u userUsecase) GetUser(username string) (model.User, error) { method GetAllUsers (line 20) | func (u userUsecase) GetAllUsers() ([]model.User, error) { method CreateUser (line 24) | func (u userUsecase) CreateUser(user model.User) error { FILE: 5-architecture/7_frameworks/echo/user/usecase_mock.go type MockUsecase (line 14) | type MockUsecase struct method EXPECT (line 32) | func (m *MockUsecase) EXPECT() *MockUsecaseMockRecorder { method GetUser (line 37) | func (m *MockUsecase) GetUser(username string) (model.User, error) { method GetAllUsers (line 52) | func (m *MockUsecase) GetAllUsers() ([]model.User, error) { method CreateUser (line 67) | func (m *MockUsecase) CreateUser(user model.User) error { type MockUsecaseMockRecorder (line 20) | type MockUsecaseMockRecorder struct method GetUser (line 46) | func (mr *MockUsecaseMockRecorder) GetUser(username interface{}) *gomo... method GetAllUsers (line 61) | func (mr *MockUsecaseMockRecorder) GetAllUsers() *gomock.Call { method CreateUser (line 75) | func (mr *MockUsecaseMockRecorder) CreateUser(user interface{}) *gomoc... function NewMockUsecase (line 25) | func NewMockUsecase(ctrl *gomock.Controller) *MockUsecase { FILE: 6-databases/00_databases/_mysql/injection_db.sql type `users` (line 2) | CREATE TABLE `users` ( FILE: 6-databases/00_databases/_mysql/items.sql type `items` (line 7) | CREATE TABLE `items` ( FILE: 6-databases/00_databases/_postgres/items.sql type items (line 5) | CREATE TABLE items ( FILE: 6-databases/01_mysql/main.go type Item (line 15) | type Item struct type Handler (line 22) | type Handler struct method List (line 27) | func (h *Handler) List(w http.ResponseWriter, r *http.Request) { method AddForm (line 54) | func (h *Handler) AddForm(w http.ResponseWriter, r *http.Request) { method Add (line 62) | func (h *Handler) Add(w http.ResponseWriter, r *http.Request) { method Edit (line 81) | func (h *Handler) Edit(w http.ResponseWriter, r *http.Request) { method Update (line 101) | func (h *Handler) Update(w http.ResponseWriter, r *http.Request) { method Delete (line 121) | func (h *Handler) Delete(w http.ResponseWriter, r *http.Request) { function main (line 142) | func main() { function panicOnErr (line 181) | func panicOnErr(err error) { FILE: 6-databases/02_postgresql/main.go type Item (line 15) | type Item struct type Handler (line 22) | type Handler struct method List (line 27) | func (h *Handler) List(w http.ResponseWriter, r *http.Request) { method AddForm (line 55) | func (h *Handler) AddForm(w http.ResponseWriter, r *http.Request) { method Add (line 63) | func (h *Handler) Add(w http.ResponseWriter, r *http.Request) { method Edit (line 78) | func (h *Handler) Edit(w http.ResponseWriter, r *http.Request) { method Update (line 97) | func (h *Handler) Update(w http.ResponseWriter, r *http.Request) { method Delete (line 117) | func (h *Handler) Delete(w http.ResponseWriter, r *http.Request) { function main (line 138) | func main() { function panicOnErr (line 176) | func panicOnErr(err error) { FILE: 6-databases/03_mysql_sql_injection/main.go function main (line 24) | func main() { function PanicOnErr (line 93) | func PanicOnErr(err error) { FILE: 6-databases/04_mysql_sqlmock/item_repo.go type Item (line 7) | type Item struct type ItemRepository (line 14) | type ItemRepository struct method ListAll (line 18) | func (repo *ItemRepository) ListAll() ([]*Item, error) { method SelectByID (line 36) | func (repo *ItemRepository) SelectByID(id int64) (*Item, error) { method Create (line 48) | func (repo *ItemRepository) Create(elem *Item) (int64, error) { method Update (line 60) | func (repo *ItemRepository) Update(elem *Item) (int64, error) { method Delete (line 78) | func (repo *ItemRepository) Delete(id int64) (int64, error) { FILE: 6-databases/04_mysql_sqlmock/item_repo_test.go function TestSelectByID (line 14) | func TestSelectByID(t *testing.T) { function TestCreate (line 90) | func TestCreate(t *testing.T) { FILE: 6-databases/04_mysql_sqlmock/main.go type ItemCRUD (line 16) | type ItemCRUD interface type Handler (line 24) | type Handler struct method List (line 29) | func (h *Handler) List(w http.ResponseWriter, r *http.Request) { method AddForm (line 48) | func (h *Handler) AddForm(w http.ResponseWriter, r *http.Request) { method Add (line 56) | func (h *Handler) Add(w http.ResponseWriter, r *http.Request) { method Edit (line 73) | func (h *Handler) Edit(w http.ResponseWriter, r *http.Request) { method Update (line 96) | func (h *Handler) Update(w http.ResponseWriter, r *http.Request) { method Delete (line 118) | func (h *Handler) Delete(w http.ResponseWriter, r *http.Request) { function main (line 131) | func main() { function panicOnErr (line 175) | func panicOnErr(err error) { FILE: 6-databases/05_gorm/main.go type Item (line 16) | type Item struct method TableName (line 23) | func (Item) TableName() string { method BeforeSave (line 27) | func (Item) BeforeSave() (err error) { type Handler (line 33) | type Handler struct method List (line 38) | func (h *Handler) List(w http.ResponseWriter, r *http.Request) { method AddForm (line 57) | func (h *Handler) AddForm(w http.ResponseWriter, r *http.Request) { method Add (line 65) | func (h *Handler) Add(w http.ResponseWriter, r *http.Request) { method Edit (line 81) | func (h *Handler) Edit(w http.ResponseWriter, r *http.Request) { method Update (line 105) | func (h *Handler) Update(w http.ResponseWriter, r *http.Request) { method Delete (line 127) | func (h *Handler) Delete(w http.ResponseWriter, r *http.Request) { function main (line 144) | func main() { function __err_panic (line 180) | func __err_panic(err error) { FILE: 6-databases/06_crudapp_db_tests/cmd/crudapp/main.go function getMysql (line 25) | func getMysql() *sql.DB { function getPostgres (line 36) | func getPostgres() *sql.DB { function getSqlx (line 51) | func getSqlx() *sqlx.DB { function getGorm (line 56) | func getGorm() *gorm.DB { function main (line 66) | func main() { FILE: 6-databases/06_crudapp_db_tests/pkg/handlers/items.go type ItemRepositoryInterface (line 18) | type ItemRepositoryInterface interface type ItemsHandler (line 26) | type ItemsHandler struct method List (line 32) | func (h *ItemsHandler) List(w http.ResponseWriter, r *http.Request) { method AddForm (line 52) | func (h *ItemsHandler) AddForm(w http.ResponseWriter, r *http.Request) { method Add (line 65) | func (h *ItemsHandler) Add(w http.ResponseWriter, r *http.Request) { method Edit (line 90) | func (h *ItemsHandler) Edit(w http.ResponseWriter, r *http.Request) { method Update (line 117) | func (h *ItemsHandler) Update(w http.ResponseWriter, r *http.Request) { method Delete (line 152) | func (h *ItemsHandler) Delete(w http.ResponseWriter, r *http.Request) { FILE: 6-databases/06_crudapp_db_tests/pkg/handlers/items_mock.go type MockItemRepositoryInterface (line 20) | type MockItemRepositoryInterface struct method EXPECT (line 39) | func (m *MockItemRepositoryInterface) EXPECT() *MockItemRepositoryInte... method Add (line 44) | func (m *MockItemRepositoryInterface) Add(arg0 *items.Item) (int64, er... method Delete (line 59) | func (m *MockItemRepositoryInterface) Delete(arg0 int64) (int64, error) { method GetAll (line 74) | func (m *MockItemRepositoryInterface) GetAll() ([]*items.Item, error) { method GetByID (line 89) | func (m *MockItemRepositoryInterface) GetByID(arg0 int64) (*items.Item... method Update (line 104) | func (m *MockItemRepositoryInterface) Update(arg0 *items.Item) (int64,... type MockItemRepositoryInterfaceMockRecorder (line 27) | type MockItemRepositoryInterfaceMockRecorder struct method Add (line 53) | func (mr *MockItemRepositoryInterfaceMockRecorder) Add(arg0 any) *gomo... method Delete (line 68) | func (mr *MockItemRepositoryInterfaceMockRecorder) Delete(arg0 any) *g... method GetAll (line 83) | func (mr *MockItemRepositoryInterfaceMockRecorder) GetAll() *gomock.Ca... method GetByID (line 98) | func (mr *MockItemRepositoryInterfaceMockRecorder) GetByID(arg0 any) *... method Update (line 113) | func (mr *MockItemRepositoryInterfaceMockRecorder) Update(arg0 any) *g... function NewMockItemRepositoryInterface (line 32) | func NewMockItemRepositoryInterface(ctrl *gomock.Controller) *MockItemRe... FILE: 6-databases/06_crudapp_db_tests/pkg/handlers/items_test.go function TestItemsHandlerList (line 28) | func TestItemsHandlerList(t *testing.T) { FILE: 6-databases/06_crudapp_db_tests/pkg/handlers/user.go type UserHandler (line 13) | type UserHandler struct method Index (line 20) | func (h *UserHandler) Index(w http.ResponseWriter, r *http.Request) { method Login (line 34) | func (h *UserHandler) Login(w http.ResponseWriter, r *http.Request) { method Logout (line 50) | func (h *UserHandler) Logout(w http.ResponseWriter, r *http.Request) { FILE: 6-databases/06_crudapp_db_tests/pkg/items/item.go type ItemZero (line 11) | type ItemZero struct type Item (line 18) | type Item struct method SetUpdated (line 26) | func (it *Item) SetUpdated(val uint32) { method TableName (line 34) | func (i *Item) TableName() string { method BeforeSave (line 38) | func (i *Item) BeforeSave(*gorm.DB) (err error) { type Item0 (line 43) | type Item0 struct FILE: 6-databases/06_crudapp_db_tests/pkg/items/item_repo_test.go function TestGetByID (line 23) | func TestGetByID(t *testing.T) { function TestCreate (line 102) | func TestCreate(t *testing.T) { FILE: 6-databases/06_crudapp_db_tests/pkg/items/repo_gorm.go type RepoGorm (line 9) | type RepoGorm struct method GetAll (line 17) | func (repo *RepoGorm) GetAll() ([]*Item, error) { method GetByID (line 27) | func (repo *RepoGorm) GetByID(id int64) (*Item, error) { method Add (line 36) | func (repo *RepoGorm) Add(elem *Item) (int64, error) { method Update (line 45) | func (repo *RepoGorm) Update(elem *Item) (int64, error) { method Delete (line 57) | func (repo *RepoGorm) Delete(id int64) (int64, error) { function NewGormRepository (line 13) | func NewGormRepository(db *gorm.DB) *RepoGorm { FILE: 6-databases/06_crudapp_db_tests/pkg/items/repo_mysql.go type RepoMysql (line 7) | type RepoMysql struct method GetAll (line 15) | func (repo *RepoMysql) GetAll(limit int) ([]*Item, error) { method GetByID (line 60) | func (repo *RepoMysql) GetByID(id int64) (*Item, error) { method Add (line 73) | func (repo *RepoMysql) Add(elem *Item) (int64, error) { method Update (line 85) | func (repo *RepoMysql) Update(elem *Item) (int64, error) { method Delete (line 103) | func (repo *RepoMysql) Delete(id int64) (int64, error) { function NewMysqlRepository (line 11) | func NewMysqlRepository(db *sql.DB) *RepoMysql { FILE: 6-databases/06_crudapp_db_tests/pkg/items/repo_pgx.go type RepoPgx (line 7) | type RepoPgx struct method GetAll (line 15) | func (repo *RepoPgx) GetAll() ([]*Item, error) { method GetByID (line 58) | func (repo *RepoPgx) GetByID(id int64) (*Item, error) { method Add (line 70) | func (repo *RepoPgx) Add(elem *Item) (int64, error) { method Update (line 83) | func (repo *RepoPgx) Update(elem *Item) (int64, error) { method Delete (line 100) | func (repo *RepoPgx) Delete(id int64) (int64, error) { function NewPgxRepository (line 11) | func NewPgxRepository(db *sql.DB) *RepoPgx { FILE: 6-databases/06_crudapp_db_tests/pkg/items/repo_sqlx.go type RepoSqlx (line 8) | type RepoSqlx struct method GetAll (line 16) | func (repo *RepoSqlx) GetAll() ([]*Item, error) { method GetAll_0 (line 25) | func (repo *RepoSqlx) GetAll_0() ([]*Item, error) { method GetByID (line 43) | func (repo *RepoSqlx) GetByID(id int64) (*Item, error) { method Add (line 52) | func (repo *RepoSqlx) Add(elem *Item) (int64, error) { method Update (line 65) | func (repo *RepoSqlx) Update(elem *Item) (int64, error) { method Delete (line 83) | func (repo *RepoSqlx) Delete(id int64) (int64, error) { function NewSqlxRepository (line 12) | func NewSqlxRepository(db *sqlx.DB) *RepoSqlx { FILE: 6-databases/06_crudapp_db_tests/pkg/middleware/accesslog.go function AccessLog (line 11) | func AccessLog(logger *zap.SugaredLogger, next http.Handler) http.Handler { FILE: 6-databases/06_crudapp_db_tests/pkg/middleware/auth.go function Auth (line 20) | func Auth(sm *session.SessionsManager, next http.Handler) http.Handler { FILE: 6-databases/06_crudapp_db_tests/pkg/middleware/panic.go function Panic (line 7) | func Panic(next http.Handler) http.Handler { FILE: 6-databases/06_crudapp_db_tests/pkg/session/manager.go type SessionsManager (line 9) | type SessionsManager struct method Check (line 21) | func (sm *SessionsManager) Check(r *http.Request) (*Session, error) { method Create (line 38) | func (sm *SessionsManager) Create(w http.ResponseWriter, userID uint32... method DestroyCurrent (line 55) | func (sm *SessionsManager) DestroyCurrent(w http.ResponseWriter, r *ht... function NewSessionsMem (line 14) | func NewSessionsMem() *SessionsManager { FILE: 6-databases/06_crudapp_db_tests/pkg/session/session.go type Session (line 10) | type Session struct function NewSession (line 15) | func NewSession(userID uint32) *Session { type sessKey (line 30) | type sessKey function SessionFromContext (line 34) | func SessionFromContext(ctx context.Context) (*Session, error) { FILE: 6-databases/06_crudapp_db_tests/pkg/user/user.go type User (line 5) | type User struct type UserRepo (line 11) | type UserRepo struct method Authorize (line 32) | func (repo *UserRepo) Authorize(login, pass string) (*User, error) { function NewUserRepo (line 15) | func NewUserRepo() *UserRepo { FILE: 6-databases/07_mongodb/main.go type Item (line 18) | type Item struct type Handler (line 25) | type Handler struct method List (line 31) | func (h *Handler) List(w http.ResponseWriter, r *http.Request) { method AddForm (line 52) | func (h *Handler) AddForm(w http.ResponseWriter, r *http.Request) { method Add (line 60) | func (h *Handler) Add(w http.ResponseWriter, r *http.Request) { method Edit (line 76) | func (h *Handler) Edit(w http.ResponseWriter, r *http.Request) { method Update (line 99) | func (h *Handler) Update(w http.ResponseWriter, r *http.Request) { method Delete (line 143) | func (h *Handler) Delete(w http.ResponseWriter, r *http.Request) { function main (line 168) | func main() { function panicOnError (line 214) | func panicOnError(err error) { FILE: 6-databases/08_memcache/memcache.go function main (line 10) | func main() { FILE: 6-databases/09_redis_simple/cmds.go function getRecord (line 15) | func getRecord(mkey string) (string, error) { function main (line 30) | func main() { function PanicOnErr (line 83) | func PanicOnErr(err error) { FILE: 6-databases/10_redis/main.go function checkSession (line 25) | func checkSession(r *http.Request) (*Session, error) { function innerPage (line 39) | func innerPage(w http.ResponseWriter, r *http.Request) { function loginPage (line 56) | func loginPage(w http.ResponseWriter, r *http.Request) { function main (line 86) | func main() { function logoutPage (line 105) | func logoutPage(w http.ResponseWriter, r *http.Request) { FILE: 6-databases/10_redis/session.go type Session (line 12) | type Session struct type SessionID (line 17) | type SessionID struct constant sessKeyLen (line 21) | sessKeyLen = 10 type SessionManager (line 23) | type SessionManager struct method Create (line 33) | func (sm *SessionManager) Create(in *Session) (*SessionID, error) { method Check (line 47) | func (sm *SessionManager) Check(in *SessionID) *Session { method Delete (line 63) | func (sm *SessionManager) Delete(in *SessionID) { function NewSessionManager (line 27) | func NewSessionManager(conn redis.Conn) *SessionManager { function RandStringRunes (line 73) | func RandStringRunes(n int) string { FILE: 6-databases/11_rabbit/form/form.go type ImgResizeTask (line 28) | type ImgResizeTask struct function mainPage (line 33) | func mainPage(w http.ResponseWriter, r *http.Request) { function uploadPage (line 37) | func uploadPage(w http.ResponseWriter, r *http.Request) { constant ImageResizeQueueName (line 96) | ImageResizeQueueName = "image_resize" function main (line 107) | func main() { function panicOnError (line 144) | func panicOnError(msg string, err error) { function RandStringRunes (line 152) | func RandStringRunes(n int) string { FILE: 6-databases/11_rabbit/resizer/resize_worker.go type ImgResizeTask (line 16) | type ImgResizeTask struct constant ImageResizeQueueName (line 22) | ImageResizeQueueName = "image_resize" function main (line 33) | func main() { function ResizeWorker (line 84) | func ResizeWorker(tasks <-chan amqp.Delivery) { function ResizeImage (line 112) | func ResizeImage(originalPath string, resizedPath string, size uint) err... function panicOnError (line 138) | func panicOnError(msg string, err error) { FILE: 6-databases/12_kafka/form/form.go type ImgResizeTask (line 28) | type ImgResizeTask struct function mainPage (line 33) | func mainPage(w http.ResponseWriter, r *http.Request) { function uploadPage (line 37) | func uploadPage(w http.ResponseWriter, r *http.Request) { constant ImageResizeTopicName (line 91) | ImageResizeTopicName = "cool_topic" function main (line 99) | func main() { function panicOnError (line 131) | func panicOnError(msg string, err error) { function RandStringRunes (line 139) | func RandStringRunes(n int) string { FILE: 6-databases/12_kafka/resizer/resize_worker.go type ImgResizeTask (line 19) | type ImgResizeTask struct constant ImageResizeTopicName (line 25) | ImageResizeTopicName = "cool_topic" type Consumer (line 37) | type Consumer struct method Setup (line 41) | func (c *Consumer) Setup(sarama.ConsumerGroupSession) error { method Cleanup (line 45) | func (c *Consumer) Cleanup(sarama.ConsumerGroupSession) error { return... method ConsumeClaim (line 47) | func (c *Consumer) ConsumeClaim(sess sarama.ConsumerGroupSession, clai... function main (line 75) | func main() { function ResizeImage (line 131) | func ResizeImage(originalPath string, resizedPath string, size uint) err... function panicOnError (line 157) | func panicOnError(msg string, err error) { FILE: 6-databases/13_tarantool_simple/main.go function main (line 17) | func main() { FILE: 6-databases/14_tarantool/main.go function checkSession (line 28) | func checkSession(r *http.Request) (*Session, error) { function innerPage (line 46) | func innerPage(w http.ResponseWriter, r *http.Request) { function loginPage (line 64) | func loginPage(w http.ResponseWriter, r *http.Request) { function main (line 95) | func main() { function logoutPage (line 118) | func logoutPage(w http.ResponseWriter, r *http.Request) { FILE: 6-databases/14_tarantool/session.go type Session (line 11) | type Session struct type SessionID (line 16) | type SessionID struct type SessionManager (line 20) | type SessionManager struct method Create (line 30) | func (sm *SessionManager) Create(in *Session) (*SessionID, error) { method Check (line 54) | func (sm *SessionManager) Check(in *SessionID) (*Session, error) { method Delete (line 90) | func (sm *SessionManager) Delete(in *SessionID) { function NewSessionManager (line 24) | func NewSessionManager(conn *tarantool.Connection) *SessionManager { FILE: 6-databases/crudapp_mongo/cmd/crudapp/main.go function getMongo (line 23) | func getMongo(cfg string) *mongo.Client { function main (line 37) | func main() { FILE: 6-databases/crudapp_mongo/pkg/handlers/items.go type ItemRepositoryInterface (line 18) | type ItemRepositoryInterface interface type ItemsHandler (line 26) | type ItemsHandler struct method List (line 32) | func (h *ItemsHandler) List(w http.ResponseWriter, r *http.Request) { method AddForm (line 52) | func (h *ItemsHandler) AddForm(w http.ResponseWriter, r *http.Request) { method Add (line 65) | func (h *ItemsHandler) Add(w http.ResponseWriter, r *http.Request) { method Edit (line 91) | func (h *ItemsHandler) Edit(w http.ResponseWriter, r *http.Request) { method Update (line 118) | func (h *ItemsHandler) Update(w http.ResponseWriter, r *http.Request) { method Delete (line 153) | func (h *ItemsHandler) Delete(w http.ResponseWriter, r *http.Request) { FILE: 6-databases/crudapp_mongo/pkg/handlers/items_mock.go type MockItemRepositoryInterface (line 16) | type MockItemRepositoryInterface struct method EXPECT (line 34) | func (m *MockItemRepositoryInterface) EXPECT() *MockItemRepositoryInte... method Add (line 39) | func (m *MockItemRepositoryInterface) Add(arg0 context.Context, arg1 *... method Delete (line 54) | func (m *MockItemRepositoryInterface) Delete(arg0 string) (int64, erro... method GetAll (line 69) | func (m *MockItemRepositoryInterface) GetAll() ([]*items.Item, error) { method GetByID (line 84) | func (m *MockItemRepositoryInterface) GetByID(arg0 string) (*items.Ite... method Update (line 99) | func (m *MockItemRepositoryInterface) Update(arg0 *items.Item) (int64,... type MockItemRepositoryInterfaceMockRecorder (line 22) | type MockItemRepositoryInterfaceMockRecorder struct method Add (line 48) | func (mr *MockItemRepositoryInterfaceMockRecorder) Add(arg0, arg1 inte... method Delete (line 63) | func (mr *MockItemRepositoryInterfaceMockRecorder) Delete(arg0 interfa... method GetAll (line 78) | func (mr *MockItemRepositoryInterfaceMockRecorder) GetAll() *gomock.Ca... method GetByID (line 93) | func (mr *MockItemRepositoryInterfaceMockRecorder) GetByID(arg0 interf... method Update (line 108) | func (mr *MockItemRepositoryInterfaceMockRecorder) Update(arg0 interfa... function NewMockItemRepositoryInterface (line 27) | func NewMockItemRepositoryInterface(ctrl *gomock.Controller) *MockItemRe... FILE: 6-databases/crudapp_mongo/pkg/handlers/items_test.go function TestItemsHandlerList (line 29) | func TestItemsHandlerList(t *testing.T) { FILE: 6-databases/crudapp_mongo/pkg/handlers/user.go type UserHandler (line 13) | type UserHandler struct method Index (line 20) | func (h *UserHandler) Index(w http.ResponseWriter, r *http.Request) { method Login (line 34) | func (h *UserHandler) Login(w http.ResponseWriter, r *http.Request) { method Logout (line 50) | func (h *UserHandler) Logout(w http.ResponseWriter, r *http.Request) { FILE: 6-databases/crudapp_mongo/pkg/items/item.go type Item (line 9) | type Item struct method SetUpdated (line 17) | func (it *Item) SetUpdated(val uint32) { FILE: 6-databases/crudapp_mongo/pkg/items/repo_mongo.go type RepoMongo (line 11) | type RepoMongo struct method GetAll (line 19) | func (repo *RepoMongo) GetAll() ([]*Item, error) { method GetByID (line 29) | func (repo *RepoMongo) GetByID(id string) (*Item, error) { method Add (line 39) | func (repo *RepoMongo) Add(ctx context.Context, elem *Item) (string, e... method Update (line 49) | func (repo *RepoMongo) Update(elem *Item) (int64, error) { method Delete (line 67) | func (repo *RepoMongo) Delete(id string) (int64, error) { function NewMongoRepository (line 15) | func NewMongoRepository(coll *mongo.Collection) *RepoMongo { FILE: 6-databases/crudapp_mongo/pkg/middleware/accesslog.go function AccessLog (line 11) | func AccessLog(logger *zap.SugaredLogger, next http.Handler) http.Handler { FILE: 6-databases/crudapp_mongo/pkg/middleware/auth.go function Auth (line 20) | func Auth(sm *session.SessionsManager, next http.Handler) http.Handler { FILE: 6-databases/crudapp_mongo/pkg/middleware/panic.go function Panic (line 7) | func Panic(next http.Handler) http.Handler { FILE: 6-databases/crudapp_mongo/pkg/session/manager.go type SessionsManager (line 9) | type SessionsManager struct method Check (line 21) | func (sm *SessionsManager) Check(r *http.Request) (*Session, error) { method Create (line 38) | func (sm *SessionsManager) Create(w http.ResponseWriter, userID uint32... method DestroyCurrent (line 55) | func (sm *SessionsManager) DestroyCurrent(w http.ResponseWriter, r *ht... function NewSessionsMem (line 14) | func NewSessionsMem() *SessionsManager { FILE: 6-databases/crudapp_mongo/pkg/session/session.go type Session (line 10) | type Session struct function NewSession (line 15) | func NewSession(userID uint32) *Session { type sessKey (line 30) | type sessKey function SessionFromContext (line 34) | func SessionFromContext(ctx context.Context) (*Session, error) { FILE: 6-databases/crudapp_mongo/pkg/user/user.go type User (line 5) | type User struct type UserRepo (line 11) | type UserRepo struct method Authorize (line 32) | func (repo *UserRepo) Authorize(login, pass string) (*User, error) { function NewUserRepo (line 15) | func NewUserRepo() *UserRepo { FILE: 6-databases/tcache/cache.go type CacheItem (line 13) | type CacheItem struct type CacheItemStore (line 18) | type CacheItemStore struct type RebuildFunc (line 23) | type RebuildFunc type TCache (line 25) | type TCache struct method TGet (line 29) | func (tc *TCache) TGet( method isTagsValid (line 69) | func (tc *TCache) isTagsValid(itemTags map[string]int) (bool, error) { method rebuild (line 90) | func (tc *TCache) rebuild( method checkLock (line 135) | func (tc *TCache) checkLock(mkey string) error { method lockRebuild (line 149) | func (tc *TCache) lockRebuild(mkey string) (bool, error) { method unlockRebuild (line 179) | func (tc *TCache) unlockRebuild(mkey string) { method getCurrentItemTags (line 183) | func (tc *TCache) getCurrentItemTags(tags []string, ttl int32) (map[st... FILE: 6-databases/tcache/main.go function main (line 15) | func main() { FILE: 6-databases/tcache/posts.go type RSS (line 10) | type RSS struct type Item (line 14) | type Item struct function GetHabrPosts (line 19) | func GetHabrPosts() (*RSS, error) { FILE: 7-security/1_passwords/1_salt.go function hashPass (line 11) | func hashPass(salt []byte, plainPassword string) []byte { function checkPass (line 17) | func checkPass(passHash []byte, plainPassword string) bool { function passExample (line 24) | func passExample() { FILE: 7-security/1_passwords/2_pass.go function PasswordMD5 (line 22) | func PasswordMD5(plainPassword []byte) []byte { function PasswordBcrypt (line 27) | func PasswordBcrypt(plainPassword []byte) []byte { function PasswordPBKDF2 (line 33) | func PasswordPBKDF2(plainPassword []byte) []byte { function PasswordScrypt (line 38) | func PasswordScrypt(plainPassword []byte) []byte { function PasswordArgon2 (line 44) | func PasswordArgon2(plainPassword []byte) []byte { function main (line 50) | func main() { FILE: 7-security/1_passwords/2_pass_bench_test.go function BenchmarkMD5 (line 9) | func BenchmarkMD5(b *testing.B) { function BenchmarkBcrypt (line 15) | func BenchmarkBcrypt(b *testing.B) { function BenchmarkPBKDF2 (line 21) | func BenchmarkPBKDF2(b *testing.B) { function BenchmarkScrypt (line 27) | func BenchmarkScrypt(b *testing.B) { function BenchmarkArgon2 (line 33) | func BenchmarkArgon2(b *testing.B) { FILE: 7-security/2_csrf/csrf.go type Msg (line 23) | type Msg struct function main (line 83) | func main() { function loginHandler (line 165) | func loginHandler(w http.ResponseWriter, r *http.Request) { function checkSession (line 178) | func checkSession(r *http.Request) bool { function PanicOnErr (line 195) | func PanicOnErr(err error) { function RandStringRunes (line 203) | func RandStringRunes(n int) string { FILE: 7-security/3_csrf_token/csrf.go type Msg (line 24) | type Msg struct type Session (line 30) | type Session struct function main (line 89) | func main() { function loginHandler (line 209) | func loginHandler(w http.ResponseWriter, r *http.Request) { function checkSession (line 222) | func checkSession(r *http.Request) (*Session, error) { function PanicOnErr (line 239) | func PanicOnErr(err error) { function RandStringRunes (line 247) | func RandStringRunes(n int) string { FILE: 7-security/3_csrf_token/token_crypt.go type CryptToken (line 16) | type CryptToken struct method Create (line 35) | func (tk *CryptToken) Create(s *Session, tokenExpTime int64) (string, ... method Check (line 62) | func (tk *CryptToken) Check(s *Session, inputToken string) (bool, erro... type TokenData (line 20) | type TokenData struct function NewAesCryptHashToken (line 26) | func NewAesCryptHashToken(secret string) (*CryptToken, error) { FILE: 7-security/3_csrf_token/token_jwt.go type JwtToken (line 10) | type JwtToken struct method Create (line 24) | func (tk *JwtToken) Create(s *Session, tokenExpTime int64) (string, er... method parseSecretGetter (line 37) | func (tk *JwtToken) parseSecretGetter(token *jwt.Token) (interface{}, ... method Check (line 45) | func (tk *JwtToken) Check(s *Session, inputToken string) (bool, error) { function NewJwtToken (line 14) | func NewJwtToken(secret string) (*JwtToken, error) { type JwtCsrfClaims (line 18) | type JwtCsrfClaims struct FILE: 7-security/3_csrf_token/tokjen_hash.go type HashToken (line 18) | type HashToken struct method Create (line 26) | func (tk *HashToken) Create(s *Session, tokenExpTime int64) (string, e... method Check (line 34) | func (tk *HashToken) Check(s *Session, inputToken string) (bool, error) { function NewHMACHashToken (line 22) | func NewHMACHashToken(secret string) (*HashToken, error) { FILE: 7-security/4_xss/xss.go function checkSession (line 58) | func checkSession(r *http.Request) bool { function main (line 74) | func main() { function PanicOnErr (line 147) | func PanicOnErr(err error) { function RandStringRunes (line 155) | func RandStringRunes(n int) string { FILE: 7-security/5_xss_clean/xss_clean.go function main (line 12) | func main() { FILE: 7-security/6_acl/casbin/rbac.go function main (line 12) | func main() { function PermissionsMiddleware (line 40) | func PermissionsMiddleware(e *casbin.Enforcer, ur *UsersRepo, next http.... type User (line 64) | type User struct type UsersRepo (line 69) | type UsersRepo struct method GetUser (line 73) | func (ur *UsersRepo) GetUser(email string) *User { FILE: 7-security/7_docker/code/main.go function checkACL (line 27) | func checkACL(albumName string, uid int) bool { function getSession (line 39) | func getSession(r string) int { function main (line 44) | func main() { FILE: 8-microservices/0_service/1_step/main.go function checkSession (line 21) | func checkSession(r *http.Request) (*Session, error) { function innerPage (line 35) | func innerPage(w http.ResponseWriter, r *http.Request) { function loginPage (line 52) | func loginPage(w http.ResponseWriter, r *http.Request) { function logoutPage (line 74) | func logoutPage(w http.ResponseWriter, r *http.Request) { function main (line 94) | func main() { FILE: 8-microservices/0_service/1_step/run_test.go function TestExample (line 7) | func TestExample(t *testing.T) { FILE: 8-microservices/0_service/1_step/session.go type Session (line 8) | type Session struct type SessionID (line 13) | type SessionID struct constant sessKeyLen (line 17) | sessKeyLen = 10 function AuthCreateSession (line 24) | func AuthCreateSession(in *Session) (*SessionID, error) { function AuthCheckSession (line 32) | func AuthCheckSession(in *SessionID) *Session { function AuthSessionDelete (line 41) | func AuthSessionDelete(in *SessionID) { function RandStringRunes (line 49) | func RandStringRunes(n int) string { FILE: 8-microservices/0_service/2_step/main.go function checkSession (line 25) | func checkSession(r *http.Request) (*Session, error) { function innerPage (line 39) | func innerPage(w http.ResponseWriter, r *http.Request) { function loginPage (line 56) | func loginPage(w http.ResponseWriter, r *http.Request) { function main (line 78) | func main() { function logoutPage (line 89) | func logoutPage(w http.ResponseWriter, r *http.Request) { FILE: 8-microservices/0_service/2_step/run_test.go function TestExample (line 7) | func TestExample(t *testing.T) { FILE: 8-microservices/0_service/2_step/session.go type Session (line 8) | type Session struct type SessionID (line 13) | type SessionID struct constant sessKeyLen (line 17) | sessKeyLen = 10 type SessionManagerInterface (line 19) | type SessionManagerInterface interface type SessionManager (line 25) | type SessionManager struct method Create (line 37) | func (sm *SessionManager) Create(in *Session) (*SessionID, error) { method Check (line 45) | func (sm *SessionManager) Check(in *SessionID) *Session { method Delete (line 54) | func (sm *SessionManager) Delete(in *SessionID) { function NewSessionManager (line 30) | func NewSessionManager() *SessionManager { function RandStringRunes (line 62) | func RandStringRunes(n int) string { FILE: 8-microservices/1_net-rpc/client/client.go function checkSession (line 25) | func checkSession(r *http.Request) (*Session, error) { function innerPage (line 39) | func innerPage(w http.ResponseWriter, r *http.Request) { function loginPage (line 56) | func loginPage(w http.ResponseWriter, r *http.Request) { function main (line 78) | func main() { function logoutPage (line 89) | func logoutPage(w http.ResponseWriter, r *http.Request) { FILE: 8-microservices/1_net-rpc/client/run_test.go function TestRun (line 7) | func TestRun(t *testing.T) { FILE: 8-microservices/1_net-rpc/client/session.go type Session (line 9) | type Session struct type SessionID (line 14) | type SessionID struct type SessionManagerI (line 18) | type SessionManagerI interface type SessionManager (line 24) | type SessionManager struct method Create (line 39) | func (sm *SessionManager) Create(in *Session) (*SessionID, error) { method Check (line 49) | func (sm *SessionManager) Check(in *SessionID) *Session { method Delete (line 59) | func (sm *SessionManager) Delete(in *SessionID) { function NewSessionManager (line 28) | func NewSessionManager() *SessionManager { FILE: 8-microservices/1_net-rpc/server/server.go function main (line 11) | func main() { FILE: 8-microservices/1_net-rpc/server/session.go type Session (line 9) | type Session struct type SessionID (line 14) | type SessionID struct constant sessKeyLen (line 18) | sessKeyLen = 10 type SessionManager (line 20) | type SessionManager struct method Create (line 34) | func (sm *SessionManager) Create(in *Session, out *SessionID) error { method Check (line 44) | func (sm *SessionManager) Check(in *SessionID, out *Session) error { method Delete (line 54) | func (sm *SessionManager) Delete(in *SessionID, out *int) error { function NewSessManager (line 25) | func NewSessManager() *SessionManager { function RandStringRunes (line 65) | func RandStringRunes(n int) string { FILE: 8-microservices/2_json-rpc/client/client.go function checkSession (line 25) | func checkSession(r *http.Request) (*Session, error) { function innerPage (line 39) | func innerPage(w http.ResponseWriter, r *http.Request) { function loginPage (line 56) | func loginPage(w http.ResponseWriter, r *http.Request) { function main (line 78) | func main() { function logoutPage (line 89) | func logoutPage(w http.ResponseWriter, r *http.Request) { FILE: 8-microservices/2_json-rpc/client/run_test.go function TestRun (line 7) | func TestRun(t *testing.T) { FILE: 8-microservices/2_json-rpc/client/session.go type Session (line 9) | type Session struct type SessionID (line 14) | type SessionID struct type SessionManagerI (line 18) | type SessionManagerI interface type SessionManager (line 24) | type SessionManager struct method Create (line 36) | func (sm *SessionManager) Create(in *Session) (*SessionID, error) { method Check (line 46) | func (sm *SessionManager) Check(in *SessionID) *Session { method Delete (line 56) | func (sm *SessionManager) Delete(in *SessionID) { function NewSessionManager (line 28) | func NewSessionManager() *SessionManager { FILE: 8-microservices/2_json-rpc/server/server.go type HttpConn (line 12) | type HttpConn struct method Read (line 17) | func (c *HttpConn) Read(p []byte) (n int, err error) { return c.in.Re... method Write (line 18) | func (c *HttpConn) Write(d []byte) (n int, err error) { return c.out.W... method Close (line 19) | func (c *HttpConn) Close() error { return nil } type Handler (line 43) | type Handler struct method ServeHTTP (line 47) | func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) { function main (line 64) | func main() { FILE: 8-microservices/2_json-rpc/server/session.go type Session (line 9) | type Session struct type SessionID (line 14) | type SessionID struct constant sessKeyLen (line 18) | sessKeyLen = 10 type SessionManager (line 20) | type SessionManager struct method Create (line 32) | func (sm *SessionManager) Create(in *Session, out *SessionID) error { method Check (line 42) | func (sm *SessionManager) Check(in *SessionID, out *Session) error { method Delete (line 52) | func (sm *SessionManager) Delete(in *SessionID, out *int) error { function NewSessManager (line 25) | func NewSessManager() *SessionManager { function RandStringRunes (line 63) | func RandStringRunes(n int) string { FILE: 8-microservices/3_protobuf/main.go function main (line 13) | func main() { FILE: 8-microservices/3_protobuf/session.pb.go constant _ (line 18) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 20) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) type SessionID (line 23) | type SessionID struct method Reset (line 31) | func (x *SessionID) Reset() { method String (line 40) | func (x *SessionID) String() string { method ProtoMessage (line 44) | func (*SessionID) ProtoMessage() {} method ProtoReflect (line 46) | func (x *SessionID) ProtoReflect() protoreflect.Message { method Descriptor (line 59) | func (*SessionID) Descriptor() ([]byte, []int) { method GetID (line 63) | func (x *SessionID) GetID() string { type Session (line 70) | type Session struct method Reset (line 79) | func (x *Session) Reset() { method String (line 88) | func (x *Session) String() string { method ProtoMessage (line 92) | func (*Session) ProtoMessage() {} method ProtoReflect (line 94) | func (x *Session) ProtoReflect() protoreflect.Message { method Descriptor (line 107) | func (*Session) Descriptor() ([]byte, []int) { method GetLogin (line 111) | func (x *Session) GetLogin() string { method GetUseragent (line 118) | func (x *Session) GetUseragent() string { function file_session_proto_rawDescGZIP (line 144) | func file_session_proto_rawDescGZIP() []byte { function init (line 164) | func init() { file_session_proto_init() } function file_session_proto_init (line 165) | func file_session_proto_init() { FILE: 8-microservices/4_grpc/client/main.go function checkSession (line 31) | func checkSession(r *http.Request) (*session.Session, error) { function innerPage (line 50) | func innerPage(w http.ResponseWriter, r *http.Request) { function loginPage (line 67) | func loginPage(w http.ResponseWriter, r *http.Request) { function main (line 91) | func main() { function logoutPage (line 111) | func logoutPage(w http.ResponseWriter, r *http.Request) { FILE: 8-microservices/4_grpc/client/run_test.go function TestRun (line 12) | func TestRun(t *testing.T) { FILE: 8-microservices/4_grpc/server/server.go function main (line 13) | func main() { FILE: 8-microservices/4_grpc/server/session.go constant sessKeyLen (line 16) | sessKeyLen = 10 type SessionManager (line 18) | type SessionManager struct method Create (line 32) | func (sm *SessionManager) Create(ctx context.Context, in *session.Sess... method Check (line 43) | func (sm *SessionManager) Check(ctx context.Context, in *session.Sessi... method Delete (line 53) | func (sm *SessionManager) Delete(ctx context.Context, in *session.Sess... function NewSessionManager (line 25) | func NewSessionManager() *SessionManager { function RandStringRunes (line 63) | func RandStringRunes(n int) string { FILE: 8-microservices/4_grpc/session/session.pb.go constant _ (line 18) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 20) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) type SessionID (line 23) | type SessionID struct method Reset (line 31) | func (x *SessionID) Reset() { method String (line 40) | func (x *SessionID) String() string { method ProtoMessage (line 44) | func (*SessionID) ProtoMessage() {} method ProtoReflect (line 46) | func (x *SessionID) ProtoReflect() protoreflect.Message { method Descriptor (line 59) | func (*SessionID) Descriptor() ([]byte, []int) { method GetID (line 63) | func (x *SessionID) GetID() string { type Session (line 70) | type Session struct method Reset (line 79) | func (x *Session) Reset() { method String (line 88) | func (x *Session) String() string { method ProtoMessage (line 92) | func (*Session) ProtoMessage() {} method ProtoReflect (line 94) | func (x *Session) ProtoReflect() protoreflect.Message { method Descriptor (line 107) | func (*Session) Descriptor() ([]byte, []int) { method GetLogin (line 111) | func (x *Session) GetLogin() string { method GetUseragent (line 118) | func (x *Session) GetUseragent() string { type Nothing (line 125) | type Nothing struct method Reset (line 133) | func (x *Nothing) Reset() { method String (line 142) | func (x *Nothing) String() string { method ProtoMessage (line 146) | func (*Nothing) ProtoMessage() {} method ProtoReflect (line 148) | func (x *Nothing) ProtoReflect() protoreflect.Message { method Descriptor (line 161) | func (*Nothing) Descriptor() ([]byte, []int) { method GetDummy (line 165) | func (x *Nothing) GetDummy() bool { function file_session_proto_rawDescGZIP (line 203) | func file_session_proto_rawDescGZIP() []byte { function init (line 230) | func init() { file_session_proto_init() } function file_session_proto_init (line 231) | func file_session_proto_init() { FILE: 8-microservices/4_grpc/session/session_grpc.pb.go constant _ (line 15) | _ = grpc.SupportPackageIsVersion7 type AuthCheckerClient (line 20) | type AuthCheckerClient interface type authCheckerClient (line 26) | type authCheckerClient struct method Create (line 34) | func (c *authCheckerClient) Create(ctx context.Context, in *Session, o... method Check (line 43) | func (c *authCheckerClient) Check(ctx context.Context, in *SessionID, ... method Delete (line 52) | func (c *authCheckerClient) Delete(ctx context.Context, in *SessionID,... function NewAuthCheckerClient (line 30) | func NewAuthCheckerClient(cc grpc.ClientConnInterface) AuthCheckerClient { type AuthCheckerServer (line 64) | type AuthCheckerServer interface type UnimplementedAuthCheckerServer (line 72) | type UnimplementedAuthCheckerServer struct method Create (line 75) | func (UnimplementedAuthCheckerServer) Create(context.Context, *Session... method Check (line 78) | func (UnimplementedAuthCheckerServer) Check(context.Context, *SessionI... method Delete (line 81) | func (UnimplementedAuthCheckerServer) Delete(context.Context, *Session... method mustEmbedUnimplementedAuthCheckerServer (line 84) | func (UnimplementedAuthCheckerServer) mustEmbedUnimplementedAuthChecke... type UnsafeAuthCheckerServer (line 89) | type UnsafeAuthCheckerServer interface function RegisterAuthCheckerServer (line 93) | func RegisterAuthCheckerServer(s grpc.ServiceRegistrar, srv AuthCheckerS... function _AuthChecker_Create_Handler (line 97) | func _AuthChecker_Create_Handler(srv interface{}, ctx context.Context, d... function _AuthChecker_Check_Handler (line 115) | func _AuthChecker_Check_Handler(srv interface{}, ctx context.Context, de... function _AuthChecker_Delete_Handler (line 133) | func _AuthChecker_Delete_Handler(srv interface{}, ctx context.Context, d... FILE: 8-microservices/5_grpc_features/client/client.go function timingInterceptor (line 18) | func timingInterceptor( type tokenAuth (line 39) | type tokenAuth struct method GetRequestMetadata (line 43) | func (t *tokenAuth) GetRequestMetadata(context.Context, ...string) (ma... method RequireTransportSecurity (line 49) | func (c *tokenAuth) RequireTransportSecurity() bool { function main (line 53) | func main() { FILE: 8-microservices/5_grpc_features/server/server.go function authInterceptor (line 18) | func authInterceptor( function rateLimiter (line 44) | func rateLimiter(ctx context.Context, info *tap.Info) (context.Context, ... function main (line 52) | func main() { FILE: 8-microservices/5_grpc_features/server/session.go constant sessKeyLen (line 17) | sessKeyLen = 10 type SessionManager (line 19) | type SessionManager struct method Create (line 33) | func (sm *SessionManager) Create(ctx context.Context, in *session.Sess... method Check (line 49) | func (sm *SessionManager) Check(ctx context.Context, in *session.Sessi... method Delete (line 59) | func (sm *SessionManager) Delete(ctx context.Context, in *session.Sess... function NewSessionManager (line 26) | func NewSessionManager() *SessionManager { function RandStringRunes (line 69) | func RandStringRunes(n int) string { FILE: 8-microservices/6_grpc_stream/client/client.go function main (line 17) | func main() { FILE: 8-microservices/6_grpc_stream/client/run_test.go function Test (line 14) | func Test(t *testing.T) { FILE: 8-microservices/6_grpc_stream/server/server.go function main (line 13) | func main() { FILE: 8-microservices/6_grpc_stream/server/translit.go type TrServer (line 11) | type TrServer struct method EnRu (line 16) | func (srv *TrServer) EnRu(inStream translit.Transliteration_EnRuServer... function NewTr (line 49) | func NewTr() *TrServer { FILE: 8-microservices/6_grpc_stream/translit/translit.pb.go constant _ (line 18) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 20) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) type Word (line 23) | type Word struct method Reset (line 31) | func (x *Word) Reset() { method String (line 40) | func (x *Word) String() string { method ProtoMessage (line 44) | func (*Word) ProtoMessage() {} method ProtoReflect (line 46) | func (x *Word) ProtoReflect() protoreflect.Message { method Descriptor (line 59) | func (*Word) Descriptor() ([]byte, []int) { method GetWord (line 63) | func (x *Word) GetWord() string { function file_translit_proto_rawDescGZIP (line 89) | func file_translit_proto_rawDescGZIP() []byte { function init (line 110) | func init() { file_translit_proto_init() } function file_translit_proto_init (line 111) | func file_translit_proto_init() { FILE: 8-microservices/6_grpc_stream/translit/translit_grpc.pb.go constant _ (line 15) | _ = grpc.SupportPackageIsVersion7 type TransliterationClient (line 20) | type TransliterationClient interface type transliterationClient (line 24) | type transliterationClient struct method EnRu (line 32) | func (c *transliterationClient) EnRu(ctx context.Context, opts ...grpc... function NewTransliterationClient (line 28) | func NewTransliterationClient(cc grpc.ClientConnInterface) Transliterati... type Transliteration_EnRuClient (line 41) | type Transliteration_EnRuClient interface type transliterationEnRuClient (line 47) | type transliterationEnRuClient struct method Send (line 51) | func (x *transliterationEnRuClient) Send(m *Word) error { method Recv (line 55) | func (x *transliterationEnRuClient) Recv() (*Word, error) { type TransliterationServer (line 66) | type TransliterationServer interface type UnimplementedTransliterationServer (line 72) | type UnimplementedTransliterationServer struct method EnRu (line 75) | func (UnimplementedTransliterationServer) EnRu(Transliteration_EnRuSer... method mustEmbedUnimplementedTransliterationServer (line 78) | func (UnimplementedTransliterationServer) mustEmbedUnimplementedTransl... type UnsafeTransliterationServer (line 83) | type UnsafeTransliterationServer interface function RegisterTransliterationServer (line 87) | func RegisterTransliterationServer(s grpc.ServiceRegistrar, srv Translit... function _Transliteration_EnRu_Handler (line 91) | func _Transliteration_EnRu_Handler(srv interface{}, stream grpc.ServerSt... type Transliteration_EnRuServer (line 95) | type Transliteration_EnRuServer interface type transliterationEnRuServer (line 101) | type transliterationEnRuServer struct method Send (line 105) | func (x *transliterationEnRuServer) Send(m *Word) error { method Recv (line 109) | func (x *transliterationEnRuServer) Recv() (*Word, error) { FILE: 8-microservices/7_grpc_loadbalance/client/main.go function main (line 28) | func main() { function runOnlineServiceDiscovery (line 91) | func runOnlineServiceDiscovery(nameResolver *manual.Resolver) { FILE: 8-microservices/7_grpc_loadbalance/server/server.go function main (line 27) | func main() { FILE: 8-microservices/7_grpc_loadbalance/server/session.go constant sessKeyLen (line 13) | sessKeyLen = 10 type SessionManager (line 15) | type SessionManager struct method Create (line 31) | func (sm *SessionManager) Create(ctx context.Context, in *session.Sess... method Check (line 40) | func (sm *SessionManager) Check(ctx context.Context, in *session.Sessi... method Delete (line 47) | func (sm *SessionManager) Delete(ctx context.Context, in *session.Sess... function NewSessionManager (line 23) | func NewSessionManager(port string) *SessionManager { function RandStringRunes (line 57) | func RandStringRunes(n int) string { FILE: 9-monitoring/1_config/1_flag/flag.go function init (line 20) | func init() { function main (line 24) | func main() { type AddrList (line 35) | type AddrList method String (line 37) | func (v *AddrList) String() string { method Set (line 41) | func (v *AddrList) Set(in string) error { FILE: 9-monitoring/1_config/2_json/json_config.go type Config (line 10) | type Config struct function main (line 20) | func main() { FILE: 9-monitoring/1_config/3_ldflags/ldflags.go function main (line 16) | func main() { FILE: 9-monitoring/1_config/4_viper/main.go function main (line 9) | func main() { FILE: 9-monitoring/1_config/5_consul/consul_config.go type key (line 30) | type key constant configKey (line 32) | configKey key = "configKey" function configMiddleware (line 34) | func configMiddleware(next http.Handler) http.Handler { function ConfigFromContext (line 49) | func ConfigFromContext(ctx context.Context) (map[string]string, error) { function loadPostsHandle (line 57) | func loadPostsHandle(w http.ResponseWriter, req *http.Request) { function main (line 70) | func main() { function runConfigUpdater (line 95) | func runConfigUpdater() { function loadConfig (line 102) | func loadConfig() { FILE: 9-monitoring/2_vault/main.go function main (line 11) | func main() { FILE: 9-monitoring/3_monitoring/expvars/expvars.go function handler (line 14) | func handler(w http.ResponseWriter, r *http.Request) { function main (line 23) | func main() { FILE: 9-monitoring/3_monitoring/metrics/context_monitoring.go constant AvgSleep (line 18) | AvgSleep = 50 function trackContextTimings (line 20) | func trackContextTimings(ctx context.Context, metricName string, start t... type Timing (line 43) | type Timing struct type ctxTimings (line 48) | type ctxTimings struct type key (line 55) | type key constant timingsKey (line 57) | timingsKey key = 1 type TimingMiddleware (line 59) | type TimingMiddleware struct method TrackRequestTimings (line 73) | func (tm *TimingMiddleware) TrackRequestTimings(next http.Handler) htt... method logContextTimings (line 86) | func (tm *TimingMiddleware) logContextTimings(ctx context.Context, pat... function NewTimingMiddleware (line 65) | func NewTimingMiddleware(st *statsd.Client) *TimingMiddleware { function emulateWork (line 114) | func emulateWork(ctx context.Context, workName string) { function loadPostsHandle (line 121) | func loadPostsHandle(w http.ResponseWriter, req *http.Request) { function main (line 139) | func main() { FILE: 9-monitoring/3_monitoring/prometheus/main.go function main (line 21) | func main() { FILE: 9-monitoring/3_monitoring/sentry/echo/main.go function main (line 13) | func main() { FILE: 9-monitoring/3_monitoring/sentry/simple/main.go function firstError (line 12) | func firstError() error { function returnError (line 16) | func returnError() error { function main (line 20) | func main() { FILE: 9-monitoring/4_tracing/jaeger_grpc/client/main.go function checkSession (line 38) | func checkSession(r *http.Request) (*session.Session, error) { function innerPage (line 57) | func innerPage(w http.ResponseWriter, r *http.Request) { function loginPage (line 70) | func loginPage(w http.ResponseWriter, r *http.Request) { function main (line 94) | func main() { function logoutPage (line 139) | func logoutPage(w http.ResponseWriter, r *http.Request) { FILE: 9-monitoring/4_tracing/jaeger_grpc/server/server.go function main (line 20) | func main() { FILE: 9-monitoring/4_tracing/jaeger_grpc/server/session.go constant sessKeyLen (line 16) | sessKeyLen = 10 type SessionManager (line 18) | type SessionManager struct method Create (line 30) | func (sm *SessionManager) Create(ctx context.Context, in *session.Sess... method Check (line 39) | func (sm *SessionManager) Check(ctx context.Context, in *session.Sessi... method Delete (line 49) | func (sm *SessionManager) Delete(ctx context.Context, in *session.Sess... function NewSessionManager (line 23) | func NewSessionManager() *SessionManager { function RandStringRunes (line 59) | func RandStringRunes(n int) string { FILE: 9-monitoring/4_tracing/jaeger_grpc/session/session.pb.go constant _ (line 35) | _ = proto.ProtoPackageIsVersion2 type SessionID (line 37) | type SessionID struct method Reset (line 41) | func (m *SessionID) Reset() { *m = SessionID{} } method String (line 42) | func (m *SessionID) String() string { return proto.CompactT... method ProtoMessage (line 43) | func (*SessionID) ProtoMessage() {} method Descriptor (line 44) | func (*SessionID) Descriptor() ([]byte, []int) { return fileDescriptor... method GetID (line 46) | func (m *SessionID) GetID() string { type Session (line 53) | type Session struct method Reset (line 58) | func (m *Session) Reset() { *m = Session{} } method String (line 59) | func (m *Session) String() string { return proto.CompactTex... method ProtoMessage (line 60) | func (*Session) ProtoMessage() {} method Descriptor (line 61) | func (*Session) Descriptor() ([]byte, []int) { return fileDescriptor0,... method GetLogin (line 63) | func (m *Session) GetLogin() string { method GetUseragent (line 70) | func (m *Session) GetUseragent() string { type Nothing (line 77) | type Nothing struct method Reset (line 81) | func (m *Nothing) Reset() { *m = Nothing{} } method String (line 82) | func (m *Nothing) String() string { return proto.CompactTex... method ProtoMessage (line 83) | func (*Nothing) ProtoMessage() {} method Descriptor (line 84) | func (*Nothing) Descriptor() ([]byte, []int) { return fileDescriptor0,... method GetDummy (line 86) | func (m *Nothing) GetDummy() bool { function init (line 93) | func init() { constant _ (line 105) | _ = grpc.SupportPackageIsVersion4 type AuthCheckerClient (line 109) | type AuthCheckerClient interface type authCheckerClient (line 115) | type authCheckerClient struct method Create (line 123) | func (c *authCheckerClient) Create(ctx context.Context, in *Session, o... method Check (line 132) | func (c *authCheckerClient) Check(ctx context.Context, in *SessionID, ... method Delete (line 141) | func (c *authCheckerClient) Delete(ctx context.Context, in *SessionID,... function NewAuthCheckerClient (line 119) | func NewAuthCheckerClient(cc *grpc.ClientConn) AuthCheckerClient { type AuthCheckerServer (line 152) | type AuthCheckerServer interface function RegisterAuthCheckerServer (line 158) | func RegisterAuthCheckerServer(s *grpc.Server, srv AuthCheckerServer) { function _AuthChecker_Create_Handler (line 162) | func _AuthChecker_Create_Handler(srv interface{}, ctx context.Context, d... function _AuthChecker_Check_Handler (line 180) | func _AuthChecker_Check_Handler(srv interface{}, ctx context.Context, de... function _AuthChecker_Delete_Handler (line 198) | func _AuthChecker_Delete_Handler(srv interface{}, ctx context.Context, d... function init (line 237) | func init() { proto.RegisterFile("session.proto", fileDescriptor0) }