SYMBOL INDEX (1839 symbols across 295 files) FILE: demo-wasm/callback/main.go function fib (line 9) | func fib(i int) int { function fibFunc (line 16) | func fibFunc(this js.Value, args []js.Value) interface{} { function main (line 28) | func main() { FILE: demo-wasm/hello-world/main.go function main (line 6) | func main() { FILE: demo-wasm/manipulate-dom/main.go function fib (line 8) | func fib(i int) int { function fibFunc (line 22) | func fibFunc(this js.Value, args []js.Value) interface{} { function main (line 30) | func main() { FILE: demo-wasm/register-functions/main.go function fib (line 6) | func fib(i int) int { function fibFunc (line 13) | func fibFunc(this js.Value, args []js.Value) interface{} { function main (line 17) | func main() { FILE: gee-bolt/day1-pages/meta.go constant magic (line 10) | magic uint32 = 0xED0CDAED type meta (line 12) | type meta struct method sum64 (line 19) | func (m *meta) sum64() uint64 { method validate (line 25) | func (m *meta) validate() error { FILE: gee-bolt/day1-pages/page.go constant pageHeaderSize (line 9) | pageHeaderSize = unsafe.Sizeof(page{}) constant branchPageElementSize (line 10) | branchPageElementSize = unsafe.Sizeof(branchPageElement{}) constant leafPageElementSize (line 11) | leafPageElementSize = unsafe.Sizeof(leafPageElement{}) constant maxKeysPerPage (line 12) | maxKeysPerPage = 1024 constant branchPageFlag (line 15) | branchPageFlag uint16 = iota constant leafPageFlag (line 16) | leafPageFlag constant metaPageFlag (line 17) | metaPageFlag constant freelistPageFlag (line 18) | freelistPageFlag type page (line 21) | type page struct method typ (line 40) | func (p *page) typ() string { method meta (line 54) | func (p *page) meta() *meta { method dataPtr (line 58) | func (p *page) dataPtr() unsafe.Pointer { method leafPageElement (line 66) | func (p *page) leafPageElement(index uint16) *leafPageElement { method leafPageElements (line 71) | func (p *page) leafPageElements() []leafPageElement { method branchPageElement (line 78) | func (p *page) branchPageElement(index uint16) *branchPageElement { method branchPageElements (line 83) | func (p *page) branchPageElements() []branchPageElement { type leafPageElement (line 28) | type leafPageElement struct type branchPageElement (line 34) | type branchPageElement struct FILE: gee-bolt/day2-mmap/db.go type DB (line 5) | type DB struct method mmap (line 12) | func (db *DB) mmap(sz int) error { constant maxMapSize (line 10) | maxMapSize = 1 << 31 function Open (line 16) | func Open(path string) { FILE: gee-bolt/day3-tree/meta.go constant magic (line 10) | magic uint32 = 0xED0CDAED type meta (line 12) | type meta struct method sum64 (line 19) | func (m *meta) sum64() uint64 { method validate (line 25) | func (m *meta) validate() error { FILE: gee-bolt/day3-tree/node.go type kv (line 8) | type kv struct type node (line 13) | type node struct method root (line 21) | func (n *node) root() *node { method index (line 28) | func (n *node) index(key []byte) (index int, exact bool) { method put (line 36) | func (n *node) put(oldKey, newKey, value []byte) { method del (line 47) | func (n *node) del(key []byte) { FILE: gee-bolt/day3-tree/page.go constant pageHeaderSize (line 9) | pageHeaderSize = unsafe.Sizeof(page{}) constant branchPageElementSize (line 10) | branchPageElementSize = unsafe.Sizeof(branchPageElement{}) constant leafPageElementSize (line 11) | leafPageElementSize = unsafe.Sizeof(leafPageElement{}) constant maxKeysPerPage (line 12) | maxKeysPerPage = 1024 constant branchPageFlag (line 15) | branchPageFlag uint16 = iota constant leafPageFlag (line 16) | leafPageFlag constant metaPageFlag (line 17) | metaPageFlag constant freelistPageFlag (line 18) | freelistPageFlag type page (line 21) | type page struct method typ (line 40) | func (p *page) typ() string { method meta (line 54) | func (p *page) meta() *meta { method dataPtr (line 58) | func (p *page) dataPtr() unsafe.Pointer { method leafPageElement (line 66) | func (p *page) leafPageElement(index uint16) *leafPageElement { method leafPageElements (line 71) | func (p *page) leafPageElements() []leafPageElement { method branchPageElement (line 78) | func (p *page) branchPageElement(index uint16) *branchPageElement { method branchPageElements (line 83) | func (p *page) branchPageElements() []branchPageElement { type leafPageElement (line 28) | type leafPageElement struct type branchPageElement (line 34) | type branchPageElement struct FILE: gee-cache/day1-lru/geecache/lru/lru.go type Cache (line 6) | type Cache struct method Add (line 36) | func (c *Cache) Add(key string, value Value) { method Get (line 53) | func (c *Cache) Get(key string) (value Value, ok bool) { method RemoveOldest (line 63) | func (c *Cache) RemoveOldest() { method Len (line 77) | func (c *Cache) Len() int { type entry (line 15) | type entry struct type Value (line 21) | type Value interface function New (line 26) | func New(maxBytes int64, onEvicted func(string, Value)) *Cache { FILE: gee-cache/day1-lru/geecache/lru/lru_test.go type String (line 8) | type String method Len (line 10) | func (d String) Len() int { function TestGet (line 14) | func TestGet(t *testing.T) { function TestRemoveoldest (line 25) | func TestRemoveoldest(t *testing.T) { function TestOnEvicted (line 39) | func TestOnEvicted(t *testing.T) { function TestAdd (line 57) | func TestAdd(t *testing.T) { FILE: gee-cache/day2-single-node/geecache/byteview.go type ByteView (line 4) | type ByteView struct method Len (line 9) | func (v ByteView) Len() int { method ByteSlice (line 14) | func (v ByteView) ByteSlice() []byte { method String (line 19) | func (v ByteView) String() string { function cloneBytes (line 23) | func cloneBytes(b []byte) []byte { FILE: gee-cache/day2-single-node/geecache/cache.go type cache (line 8) | type cache struct method add (line 14) | func (c *cache) add(key string, value ByteView) { method get (line 23) | func (c *cache) get(key string) (value ByteView, ok bool) { FILE: gee-cache/day2-single-node/geecache/geecache.go type Group (line 10) | type Group struct method Get (line 60) | func (g *Group) Get(key string) (ByteView, error) { method load (line 73) | func (g *Group) load(key string) (value ByteView, err error) { method getLocally (line 77) | func (g *Group) getLocally(key string) (ByteView, error) { method populateCache (line 88) | func (g *Group) populateCache(key string, value ByteView) { type Getter (line 17) | type Getter interface type GetterFunc (line 22) | type GetterFunc method Get (line 25) | func (f GetterFunc) Get(key string) ([]byte, error) { function NewGroup (line 35) | func NewGroup(name string, cacheBytes int64, getter Getter) *Group { function GetGroup (line 52) | func GetGroup(name string) *Group { FILE: gee-cache/day2-single-node/geecache/geecache_test.go function TestGetter (line 16) | func TestGetter(t *testing.T) { function TestGet (line 27) | func TestGet(t *testing.T) { function TestGetGroup (line 56) | func TestGetGroup(t *testing.T) { FILE: gee-cache/day2-single-node/geecache/lru/lru.go type Cache (line 6) | type Cache struct method Add (line 36) | func (c *Cache) Add(key string, value Value) { method Get (line 53) | func (c *Cache) Get(key string) (value Value, ok bool) { method RemoveOldest (line 63) | func (c *Cache) RemoveOldest() { method Len (line 77) | func (c *Cache) Len() int { type entry (line 15) | type entry struct type Value (line 21) | type Value interface function New (line 26) | func New(maxBytes int64, onEvicted func(string, Value)) *Cache { FILE: gee-cache/day2-single-node/geecache/lru/lru_test.go type String (line 8) | type String method Len (line 10) | func (d String) Len() int { function TestGet (line 14) | func TestGet(t *testing.T) { function TestRemoveoldest (line 25) | func TestRemoveoldest(t *testing.T) { function TestOnEvicted (line 39) | func TestOnEvicted(t *testing.T) { function TestAdd (line 57) | func TestAdd(t *testing.T) { FILE: gee-cache/day3-http-server/geecache/byteview.go type ByteView (line 4) | type ByteView struct method Len (line 9) | func (v ByteView) Len() int { method ByteSlice (line 14) | func (v ByteView) ByteSlice() []byte { method String (line 19) | func (v ByteView) String() string { function cloneBytes (line 23) | func cloneBytes(b []byte) []byte { FILE: gee-cache/day3-http-server/geecache/cache.go type cache (line 8) | type cache struct method add (line 14) | func (c *cache) add(key string, value ByteView) { method get (line 23) | func (c *cache) get(key string) (value ByteView, ok bool) { FILE: gee-cache/day3-http-server/geecache/geecache.go type Group (line 10) | type Group struct method Get (line 60) | func (g *Group) Get(key string) (ByteView, error) { method load (line 73) | func (g *Group) load(key string) (value ByteView, err error) { method getLocally (line 77) | func (g *Group) getLocally(key string) (ByteView, error) { method populateCache (line 88) | func (g *Group) populateCache(key string, value ByteView) { type Getter (line 17) | type Getter interface type GetterFunc (line 22) | type GetterFunc method Get (line 25) | func (f GetterFunc) Get(key string) ([]byte, error) { function NewGroup (line 35) | func NewGroup(name string, cacheBytes int64, getter Getter) *Group { function GetGroup (line 52) | func GetGroup(name string) *Group { FILE: gee-cache/day3-http-server/geecache/geecache_test.go function TestGetter (line 16) | func TestGetter(t *testing.T) { function TestGet (line 27) | func TestGet(t *testing.T) { function TestGetGroup (line 56) | func TestGetGroup(t *testing.T) { FILE: gee-cache/day3-http-server/geecache/http.go constant defaultBasePath (line 10) | defaultBasePath = "/_geecache/" type HTTPPool (line 13) | type HTTPPool struct method Log (line 28) | func (p *HTTPPool) Log(format string, v ...interface{}) { method ServeHTTP (line 33) | func (p *HTTPPool) ServeHTTP(w http.ResponseWriter, r *http.Request) { function NewHTTPPool (line 20) | func NewHTTPPool(self string) *HTTPPool { FILE: gee-cache/day3-http-server/geecache/lru/lru.go type Cache (line 6) | type Cache struct method Add (line 36) | func (c *Cache) Add(key string, value Value) { method Get (line 53) | func (c *Cache) Get(key string) (value Value, ok bool) { method RemoveOldest (line 63) | func (c *Cache) RemoveOldest() { method Len (line 77) | func (c *Cache) Len() int { type entry (line 15) | type entry struct type Value (line 21) | type Value interface function New (line 26) | func New(maxBytes int64, onEvicted func(string, Value)) *Cache { FILE: gee-cache/day3-http-server/geecache/lru/lru_test.go type String (line 8) | type String method Len (line 10) | func (d String) Len() int { function TestGet (line 14) | func TestGet(t *testing.T) { function TestRemoveoldest (line 25) | func TestRemoveoldest(t *testing.T) { function TestOnEvicted (line 39) | func TestOnEvicted(t *testing.T) { function TestAdd (line 57) | func TestAdd(t *testing.T) { FILE: gee-cache/day3-http-server/main.go function main (line 24) | func main() { FILE: gee-cache/day4-consistent-hash/geecache/byteview.go type ByteView (line 4) | type ByteView struct method Len (line 9) | func (v ByteView) Len() int { method ByteSlice (line 14) | func (v ByteView) ByteSlice() []byte { method String (line 19) | func (v ByteView) String() string { function cloneBytes (line 23) | func cloneBytes(b []byte) []byte { FILE: gee-cache/day4-consistent-hash/geecache/cache.go type cache (line 8) | type cache struct method add (line 14) | func (c *cache) add(key string, value ByteView) { method get (line 23) | func (c *cache) get(key string) (value ByteView, ok bool) { FILE: gee-cache/day4-consistent-hash/geecache/consistenthash/consistenthash.go type Hash (line 10) | type Hash type Map (line 13) | type Map struct method Add (line 34) | func (m *Map) Add(keys ...string) { method Get (line 46) | func (m *Map) Get(key string) string { function New (line 21) | func New(replicas int, fn Hash) *Map { FILE: gee-cache/day4-consistent-hash/geecache/consistenthash/consistenthash_test.go function TestHashing (line 8) | func TestHashing(t *testing.T) { FILE: gee-cache/day4-consistent-hash/geecache/geecache.go type Group (line 10) | type Group struct method Get (line 60) | func (g *Group) Get(key string) (ByteView, error) { method load (line 73) | func (g *Group) load(key string) (value ByteView, err error) { method getLocally (line 77) | func (g *Group) getLocally(key string) (ByteView, error) { method populateCache (line 88) | func (g *Group) populateCache(key string, value ByteView) { type Getter (line 17) | type Getter interface type GetterFunc (line 22) | type GetterFunc method Get (line 25) | func (f GetterFunc) Get(key string) ([]byte, error) { function NewGroup (line 35) | func NewGroup(name string, cacheBytes int64, getter Getter) *Group { function GetGroup (line 52) | func GetGroup(name string) *Group { FILE: gee-cache/day4-consistent-hash/geecache/geecache_test.go function TestGetter (line 16) | func TestGetter(t *testing.T) { function TestGet (line 27) | func TestGet(t *testing.T) { function TestGetGroup (line 56) | func TestGetGroup(t *testing.T) { FILE: gee-cache/day4-consistent-hash/geecache/http.go constant defaultBasePath (line 10) | defaultBasePath = "/_geecache/" type HTTPPool (line 13) | type HTTPPool struct method Log (line 28) | func (p *HTTPPool) Log(format string, v ...interface{}) { method ServeHTTP (line 33) | func (p *HTTPPool) ServeHTTP(w http.ResponseWriter, r *http.Request) { function NewHTTPPool (line 20) | func NewHTTPPool(self string) *HTTPPool { FILE: gee-cache/day4-consistent-hash/geecache/lru/lru.go type Cache (line 6) | type Cache struct method Add (line 36) | func (c *Cache) Add(key string, value Value) { method Get (line 53) | func (c *Cache) Get(key string) (value Value, ok bool) { method RemoveOldest (line 63) | func (c *Cache) RemoveOldest() { method Len (line 77) | func (c *Cache) Len() int { type entry (line 15) | type entry struct type Value (line 21) | type Value interface function New (line 26) | func New(maxBytes int64, onEvicted func(string, Value)) *Cache { FILE: gee-cache/day4-consistent-hash/geecache/lru/lru_test.go type String (line 8) | type String method Len (line 10) | func (d String) Len() int { function TestGet (line 14) | func TestGet(t *testing.T) { function TestRemoveoldest (line 25) | func TestRemoveoldest(t *testing.T) { function TestOnEvicted (line 39) | func TestOnEvicted(t *testing.T) { function TestAdd (line 57) | func TestAdd(t *testing.T) { FILE: gee-cache/day4-consistent-hash/main.go function main (line 24) | func main() { FILE: gee-cache/day5-multi-nodes/geecache/byteview.go type ByteView (line 4) | type ByteView struct method Len (line 9) | func (v ByteView) Len() int { method ByteSlice (line 14) | func (v ByteView) ByteSlice() []byte { method String (line 19) | func (v ByteView) String() string { function cloneBytes (line 23) | func cloneBytes(b []byte) []byte { FILE: gee-cache/day5-multi-nodes/geecache/cache.go type cache (line 8) | type cache struct method add (line 14) | func (c *cache) add(key string, value ByteView) { method get (line 23) | func (c *cache) get(key string) (value ByteView, ok bool) { FILE: gee-cache/day5-multi-nodes/geecache/consistenthash/consistenthash.go type Hash (line 10) | type Hash type Map (line 13) | type Map struct method Add (line 34) | func (m *Map) Add(keys ...string) { method Get (line 46) | func (m *Map) Get(key string) string { function New (line 21) | func New(replicas int, fn Hash) *Map { FILE: gee-cache/day5-multi-nodes/geecache/consistenthash/consistenthash_test.go function TestHashing (line 8) | func TestHashing(t *testing.T) { FILE: gee-cache/day5-multi-nodes/geecache/geecache.go type Group (line 10) | type Group struct method Get (line 61) | func (g *Group) Get(key string) (ByteView, error) { method RegisterPeers (line 75) | func (g *Group) RegisterPeers(peers PeerPicker) { method load (line 82) | func (g *Group) load(key string) (value ByteView, err error) { method populateCache (line 95) | func (g *Group) populateCache(key string, value ByteView) { method getLocally (line 99) | func (g *Group) getLocally(key string) (ByteView, error) { method getFromPeer (line 110) | func (g *Group) getFromPeer(peer PeerGetter, key string) (ByteView, er... type Getter (line 18) | type Getter interface type GetterFunc (line 23) | type GetterFunc method Get (line 26) | func (f GetterFunc) Get(key string) ([]byte, error) { function NewGroup (line 36) | func NewGroup(name string, cacheBytes int64, getter Getter) *Group { function GetGroup (line 53) | func GetGroup(name string) *Group { FILE: gee-cache/day5-multi-nodes/geecache/geecache_test.go function TestGetter (line 16) | func TestGetter(t *testing.T) { function TestGet (line 27) | func TestGet(t *testing.T) { function TestGetGroup (line 56) | func TestGetGroup(t *testing.T) { FILE: gee-cache/day5-multi-nodes/geecache/http.go constant defaultBasePath (line 15) | defaultBasePath = "/_geecache/" constant defaultReplicas (line 16) | defaultReplicas = 50 type HTTPPool (line 20) | type HTTPPool struct method Log (line 38) | func (p *HTTPPool) Log(format string, v ...interface{}) { method ServeHTTP (line 43) | func (p *HTTPPool) ServeHTTP(w http.ResponseWriter, r *http.Request) { method Set (line 75) | func (p *HTTPPool) Set(peers ...string) { method PickPeer (line 87) | func (p *HTTPPool) PickPeer(key string) (PeerGetter, bool) { function NewHTTPPool (line 30) | func NewHTTPPool(self string) *HTTPPool { type httpGetter (line 99) | type httpGetter struct method Get (line 103) | func (h *httpGetter) Get(group string, key string) ([]byte, error) { FILE: gee-cache/day5-multi-nodes/geecache/lru/lru.go type Cache (line 6) | type Cache struct method Add (line 36) | func (c *Cache) Add(key string, value Value) { method Get (line 53) | func (c *Cache) Get(key string) (value Value, ok bool) { method RemoveOldest (line 63) | func (c *Cache) RemoveOldest() { method Len (line 77) | func (c *Cache) Len() int { type entry (line 15) | type entry struct type Value (line 21) | type Value interface function New (line 26) | func New(maxBytes int64, onEvicted func(string, Value)) *Cache { FILE: gee-cache/day5-multi-nodes/geecache/lru/lru_test.go type String (line 8) | type String method Len (line 10) | func (d String) Len() int { function TestGet (line 14) | func TestGet(t *testing.T) { function TestRemoveoldest (line 25) | func TestRemoveoldest(t *testing.T) { function TestOnEvicted (line 39) | func TestOnEvicted(t *testing.T) { function TestAdd (line 57) | func TestAdd(t *testing.T) { FILE: gee-cache/day5-multi-nodes/geecache/peers.go type PeerPicker (line 5) | type PeerPicker interface type PeerGetter (line 10) | type PeerGetter interface FILE: gee-cache/day5-multi-nodes/main.go function createGroup (line 25) | func createGroup() *geecache.Group { function startCacheServer (line 36) | func startCacheServer(addr string, addrs []string, gee *geecache.Group) { function startAPIServer (line 44) | func startAPIServer(apiAddr string, gee *geecache.Group) { function main (line 62) | func main() { FILE: gee-cache/day6-single-flight/geecache/byteview.go type ByteView (line 4) | type ByteView struct method Len (line 9) | func (v ByteView) Len() int { method ByteSlice (line 14) | func (v ByteView) ByteSlice() []byte { method String (line 19) | func (v ByteView) String() string { function cloneBytes (line 23) | func cloneBytes(b []byte) []byte { FILE: gee-cache/day6-single-flight/geecache/cache.go type cache (line 8) | type cache struct method add (line 14) | func (c *cache) add(key string, value ByteView) { method get (line 23) | func (c *cache) get(key string) (value ByteView, ok bool) { FILE: gee-cache/day6-single-flight/geecache/consistenthash/consistenthash.go type Hash (line 10) | type Hash type Map (line 13) | type Map struct method Add (line 34) | func (m *Map) Add(keys ...string) { method Get (line 46) | func (m *Map) Get(key string) string { function New (line 21) | func New(replicas int, fn Hash) *Map { FILE: gee-cache/day6-single-flight/geecache/consistenthash/consistenthash_test.go function TestHashing (line 8) | func TestHashing(t *testing.T) { FILE: gee-cache/day6-single-flight/geecache/geecache.go type Group (line 11) | type Group struct method Get (line 66) | func (g *Group) Get(key string) (ByteView, error) { method RegisterPeers (line 80) | func (g *Group) RegisterPeers(peers PeerPicker) { method load (line 87) | func (g *Group) load(key string) (value ByteView, err error) { method populateCache (line 109) | func (g *Group) populateCache(key string, value ByteView) { method getLocally (line 113) | func (g *Group) getLocally(key string) (ByteView, error) { method getFromPeer (line 124) | func (g *Group) getFromPeer(peer PeerGetter, key string) (ByteView, er... type Getter (line 22) | type Getter interface type GetterFunc (line 27) | type GetterFunc method Get (line 30) | func (f GetterFunc) Get(key string) ([]byte, error) { function NewGroup (line 40) | func NewGroup(name string, cacheBytes int64, getter Getter) *Group { function GetGroup (line 58) | func GetGroup(name string) *Group { FILE: gee-cache/day6-single-flight/geecache/geecache_test.go function TestGetter (line 16) | func TestGetter(t *testing.T) { function TestGet (line 27) | func TestGet(t *testing.T) { function TestGetGroup (line 56) | func TestGetGroup(t *testing.T) { FILE: gee-cache/day6-single-flight/geecache/http.go constant defaultBasePath (line 15) | defaultBasePath = "/_geecache/" constant defaultReplicas (line 16) | defaultReplicas = 50 type HTTPPool (line 20) | type HTTPPool struct method Log (line 38) | func (p *HTTPPool) Log(format string, v ...interface{}) { method ServeHTTP (line 43) | func (p *HTTPPool) ServeHTTP(w http.ResponseWriter, r *http.Request) { method Set (line 75) | func (p *HTTPPool) Set(peers ...string) { method PickPeer (line 87) | func (p *HTTPPool) PickPeer(key string) (PeerGetter, bool) { function NewHTTPPool (line 30) | func NewHTTPPool(self string) *HTTPPool { type httpGetter (line 99) | type httpGetter struct method Get (line 103) | func (h *httpGetter) Get(group string, key string) ([]byte, error) { FILE: gee-cache/day6-single-flight/geecache/lru/lru.go type Cache (line 6) | type Cache struct method Add (line 36) | func (c *Cache) Add(key string, value Value) { method Get (line 53) | func (c *Cache) Get(key string) (value Value, ok bool) { method RemoveOldest (line 63) | func (c *Cache) RemoveOldest() { method Len (line 77) | func (c *Cache) Len() int { type entry (line 15) | type entry struct type Value (line 21) | type Value interface function New (line 26) | func New(maxBytes int64, onEvicted func(string, Value)) *Cache { FILE: gee-cache/day6-single-flight/geecache/lru/lru_test.go type String (line 8) | type String method Len (line 10) | func (d String) Len() int { function TestGet (line 14) | func TestGet(t *testing.T) { function TestRemoveoldest (line 25) | func TestRemoveoldest(t *testing.T) { function TestOnEvicted (line 39) | func TestOnEvicted(t *testing.T) { function TestAdd (line 57) | func TestAdd(t *testing.T) { FILE: gee-cache/day6-single-flight/geecache/peers.go type PeerPicker (line 5) | type PeerPicker interface type PeerGetter (line 10) | type PeerGetter interface FILE: gee-cache/day6-single-flight/geecache/singleflight/singleflight.go type call (line 6) | type call struct type Group (line 14) | type Group struct method Do (line 23) | func (g *Group) Do(key string, fn func() (interface{}, error)) (interf... FILE: gee-cache/day6-single-flight/geecache/singleflight/singleflight_test.go function TestDo (line 7) | func TestDo(t *testing.T) { FILE: gee-cache/day6-single-flight/main.go function createGroup (line 25) | func createGroup() *geecache.Group { function startCacheServer (line 36) | func startCacheServer(addr string, addrs []string, gee *geecache.Group) { function startAPIServer (line 44) | func startAPIServer(apiAddr string, gee *geecache.Group) { function main (line 62) | func main() { FILE: gee-cache/day7-proto-buf/geecache/byteview.go type ByteView (line 4) | type ByteView struct method Len (line 9) | func (v ByteView) Len() int { method ByteSlice (line 14) | func (v ByteView) ByteSlice() []byte { method String (line 19) | func (v ByteView) String() string { function cloneBytes (line 23) | func cloneBytes(b []byte) []byte { FILE: gee-cache/day7-proto-buf/geecache/cache.go type cache (line 8) | type cache struct method add (line 14) | func (c *cache) add(key string, value ByteView) { method get (line 23) | func (c *cache) get(key string) (value ByteView, ok bool) { FILE: gee-cache/day7-proto-buf/geecache/consistenthash/consistenthash.go type Hash (line 10) | type Hash type Map (line 13) | type Map struct method Add (line 34) | func (m *Map) Add(keys ...string) { method Get (line 46) | func (m *Map) Get(key string) string { function New (line 21) | func New(replicas int, fn Hash) *Map { FILE: gee-cache/day7-proto-buf/geecache/consistenthash/consistenthash_test.go function TestHashing (line 8) | func TestHashing(t *testing.T) { FILE: gee-cache/day7-proto-buf/geecache/geecache.go type Group (line 12) | type Group struct method Get (line 67) | func (g *Group) Get(key string) (ByteView, error) { method RegisterPeers (line 81) | func (g *Group) RegisterPeers(peers PeerPicker) { method load (line 88) | func (g *Group) load(key string) (value ByteView, err error) { method populateCache (line 110) | func (g *Group) populateCache(key string, value ByteView) { method getLocally (line 114) | func (g *Group) getLocally(key string) (ByteView, error) { method getFromPeer (line 125) | func (g *Group) getFromPeer(peer PeerGetter, key string) (ByteView, er... type Getter (line 23) | type Getter interface type GetterFunc (line 28) | type GetterFunc method Get (line 31) | func (f GetterFunc) Get(key string) ([]byte, error) { function NewGroup (line 41) | func NewGroup(name string, cacheBytes int64, getter Getter) *Group { function GetGroup (line 59) | func GetGroup(name string) *Group { FILE: gee-cache/day7-proto-buf/geecache/geecache_test.go function TestGetter (line 16) | func TestGetter(t *testing.T) { function TestGet (line 27) | func TestGet(t *testing.T) { function TestGetGroup (line 56) | func TestGetGroup(t *testing.T) { FILE: gee-cache/day7-proto-buf/geecache/geecachepb/geecachepb.pb.go constant _ (line 21) | _ = proto.ProtoPackageIsVersion3 type Request (line 23) | type Request struct method Reset (line 31) | func (m *Request) Reset() { *m = Request{} } method String (line 32) | func (m *Request) String() string { return proto.CompactTextString(m) } method ProtoMessage (line 33) | func (*Request) ProtoMessage() {} method Descriptor (line 34) | func (*Request) Descriptor() ([]byte, []int) { method XXX_Unmarshal (line 38) | func (m *Request) XXX_Unmarshal(b []byte) error { method XXX_Marshal (line 41) | func (m *Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, e... method XXX_Merge (line 44) | func (m *Request) XXX_Merge(src proto.Message) { method XXX_Size (line 47) | func (m *Request) XXX_Size() int { method XXX_DiscardUnknown (line 50) | func (m *Request) XXX_DiscardUnknown() { method GetGroup (line 56) | func (m *Request) GetGroup() string { method GetKey (line 63) | func (m *Request) GetKey() string { type Response (line 70) | type Response struct method Reset (line 77) | func (m *Response) Reset() { *m = Response{} } method String (line 78) | func (m *Response) String() string { return proto.CompactTextString(m) } method ProtoMessage (line 79) | func (*Response) ProtoMessage() {} method Descriptor (line 80) | func (*Response) Descriptor() ([]byte, []int) { method XXX_Unmarshal (line 84) | func (m *Response) XXX_Unmarshal(b []byte) error { method XXX_Marshal (line 87) | func (m *Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, ... method XXX_Merge (line 90) | func (m *Response) XXX_Merge(src proto.Message) { method XXX_Size (line 93) | func (m *Response) XXX_Size() int { method XXX_DiscardUnknown (line 96) | func (m *Response) XXX_DiscardUnknown() { method GetValue (line 102) | func (m *Response) GetValue() []byte { function init (line 109) | func init() { function init (line 114) | func init() { proto.RegisterFile("geecachepb.proto", fileDescriptor_889d... FILE: gee-cache/day7-proto-buf/geecache/http.go constant defaultBasePath (line 18) | defaultBasePath = "/_geecache/" constant defaultReplicas (line 19) | defaultReplicas = 50 type HTTPPool (line 23) | type HTTPPool struct method Log (line 41) | func (p *HTTPPool) Log(format string, v ...interface{}) { method ServeHTTP (line 46) | func (p *HTTPPool) ServeHTTP(w http.ResponseWriter, r *http.Request) { method Set (line 85) | func (p *HTTPPool) Set(peers ...string) { method PickPeer (line 97) | func (p *HTTPPool) PickPeer(key string) (PeerGetter, bool) { function NewHTTPPool (line 33) | func NewHTTPPool(self string) *HTTPPool { type httpGetter (line 109) | type httpGetter struct method Get (line 113) | func (h *httpGetter) Get(in *pb.Request, out *pb.Response) error { FILE: gee-cache/day7-proto-buf/geecache/lru/lru.go type Cache (line 6) | type Cache struct method Add (line 36) | func (c *Cache) Add(key string, value Value) { method Get (line 53) | func (c *Cache) Get(key string) (value Value, ok bool) { method RemoveOldest (line 63) | func (c *Cache) RemoveOldest() { method Len (line 77) | func (c *Cache) Len() int { type entry (line 15) | type entry struct type Value (line 21) | type Value interface function New (line 26) | func New(maxBytes int64, onEvicted func(string, Value)) *Cache { FILE: gee-cache/day7-proto-buf/geecache/lru/lru_test.go type String (line 8) | type String method Len (line 10) | func (d String) Len() int { function TestGet (line 14) | func TestGet(t *testing.T) { function TestRemoveoldest (line 25) | func TestRemoveoldest(t *testing.T) { function TestOnEvicted (line 39) | func TestOnEvicted(t *testing.T) { function TestAdd (line 57) | func TestAdd(t *testing.T) { FILE: gee-cache/day7-proto-buf/geecache/peers.go type PeerPicker (line 7) | type PeerPicker interface type PeerGetter (line 12) | type PeerGetter interface FILE: gee-cache/day7-proto-buf/geecache/singleflight/singleflight.go type call (line 6) | type call struct type Group (line 14) | type Group struct method Do (line 23) | func (g *Group) Do(key string, fn func() (interface{}, error)) (interf... FILE: gee-cache/day7-proto-buf/geecache/singleflight/singleflight_test.go function TestDo (line 7) | func TestDo(t *testing.T) { FILE: gee-cache/day7-proto-buf/main.go function createGroup (line 25) | func createGroup() *geecache.Group { function startCacheServer (line 36) | func startCacheServer(addr string, addrs []string, gee *geecache.Group) { function startAPIServer (line 44) | func startAPIServer(apiAddr string, gee *geecache.Group) { function main (line 62) | func main() { FILE: gee-orm/day1-database-sql/cmd_test/main.go function main (line 9) | func main() { FILE: gee-orm/day1-database-sql/geeorm.go type Engine (line 11) | type Engine struct method Close (line 34) | func (engine *Engine) Close() { method NewSession (line 42) | func (engine *Engine) NewSession() *session.Session { function NewEngine (line 17) | func NewEngine(driver, source string) (e *Engine, err error) { FILE: gee-orm/day1-database-sql/geeorm_test.go function OpenDB (line 8) | func OpenDB(t *testing.T) *Engine { function TestNewEngine (line 17) | func TestNewEngine(t *testing.T) { FILE: gee-orm/day1-database-sql/log/log.go constant InfoLevel (line 27) | InfoLevel = iota constant ErrorLevel (line 28) | ErrorLevel constant Disabled (line 29) | Disabled function SetLevel (line 33) | func SetLevel(level int) { FILE: gee-orm/day1-database-sql/log/log_test.go function TestSetLevel (line 8) | func TestSetLevel(t *testing.T) { FILE: gee-orm/day1-database-sql/session/raw.go type Session (line 11) | type Session struct method Clear (line 23) | func (s *Session) Clear() { method DB (line 29) | func (s *Session) DB() *sql.DB { method Exec (line 34) | func (s *Session) Exec() (result sql.Result, err error) { method QueryRow (line 44) | func (s *Session) QueryRow() *sql.Row { method QueryRows (line 51) | func (s *Session) QueryRows() (rows *sql.Rows, err error) { method Raw (line 61) | func (s *Session) Raw(sql string, values ...interface{}) *Session { function New (line 18) | func New(db *sql.DB) *Session { FILE: gee-orm/day1-database-sql/session/raw_test.go function TestMain (line 13) | func TestMain(m *testing.M) { function NewSession (line 20) | func NewSession() *Session { function TestSession_Exec (line 24) | func TestSession_Exec(t *testing.T) { function TestSession_QueryRows (line 34) | func TestSession_QueryRows(t *testing.T) { FILE: gee-orm/day2-reflect-schema/dialect/dialect.go type Dialect (line 8) | type Dialect interface function RegisterDialect (line 14) | func RegisterDialect(name string, dialect Dialect) { function GetDialect (line 19) | func GetDialect(name string) (dialect Dialect, ok bool) { FILE: gee-orm/day2-reflect-schema/dialect/sqlite3.go type sqlite3 (line 9) | type sqlite3 struct method DataTypeOf (line 18) | func (s *sqlite3) DataTypeOf(typ reflect.Value) string { method TableExistSQL (line 42) | func (s *sqlite3) TableExistSQL(tableName string) (string, []interface... function init (line 13) | func init() { FILE: gee-orm/day2-reflect-schema/dialect/sqlite3_test.go function TestDataTypeOf (line 8) | func TestDataTypeOf(t *testing.T) { FILE: gee-orm/day2-reflect-schema/geeorm.go type Engine (line 11) | type Engine struct method Close (line 41) | func (engine *Engine) Close() { method NewSession (line 49) | func (engine *Engine) NewSession() *session.Session { function NewEngine (line 18) | func NewEngine(driver, source string) (e *Engine, err error) { FILE: gee-orm/day2-reflect-schema/geeorm_test.go function OpenDB (line 8) | func OpenDB(t *testing.T) *Engine { function TestNewEngine (line 17) | func TestNewEngine(t *testing.T) { FILE: gee-orm/day2-reflect-schema/log/log.go constant InfoLevel (line 27) | InfoLevel = iota constant ErrorLevel (line 28) | ErrorLevel constant Disabled (line 29) | Disabled function SetLevel (line 33) | func SetLevel(level int) { FILE: gee-orm/day2-reflect-schema/log/log_test.go function TestSetLevel (line 8) | func TestSetLevel(t *testing.T) { FILE: gee-orm/day2-reflect-schema/schema/schema.go type Field (line 10) | type Field struct type Schema (line 17) | type Schema struct method GetField (line 26) | func (schema *Schema) GetField(name string) *Field { method RecordValues (line 31) | func (schema *Schema) RecordValues(dest interface{}) []interface{} { type ITableName (line 40) | type ITableName interface function Parse (line 45) | func Parse(dest interface{}, d dialect.Dialect) *Schema { FILE: gee-orm/day2-reflect-schema/schema/schema_test.go type User (line 8) | type User struct function TestParse (line 15) | func TestParse(t *testing.T) { function TestSchema_RecordValues (line 25) | func TestSchema_RecordValues(t *testing.T) { type UserTest (line 37) | type UserTest struct method TableName (line 42) | func (u *UserTest) TableName() string { function TestSchema_TableName (line 46) | func TestSchema_TableName(t *testing.T) { FILE: gee-orm/day2-reflect-schema/session/raw.go type Session (line 13) | type Session struct method Clear (line 30) | func (s *Session) Clear() { method DB (line 36) | func (s *Session) DB() *sql.DB { method Exec (line 41) | func (s *Session) Exec() (result sql.Result, err error) { method QueryRow (line 51) | func (s *Session) QueryRow() *sql.Row { method QueryRows (line 58) | func (s *Session) QueryRows() (rows *sql.Rows, err error) { method Raw (line 68) | func (s *Session) Raw(sql string, values ...interface{}) *Session { function New (line 22) | func New(db *sql.DB, dialect dialect.Dialect) *Session { FILE: gee-orm/day2-reflect-schema/session/raw_test.go function TestMain (line 18) | func TestMain(m *testing.M) { function NewSession (line 25) | func NewSession() *Session { function TestSession_Exec (line 29) | func TestSession_Exec(t *testing.T) { function TestSession_QueryRows (line 39) | func TestSession_QueryRows(t *testing.T) { FILE: gee-orm/day2-reflect-schema/session/table.go method Model (line 13) | func (s *Session) Model(value interface{}) *Session { method RefTable (line 22) | func (s *Session) RefTable() *schema.Schema { method CreateTable (line 30) | func (s *Session) CreateTable() error { method DropTable (line 42) | func (s *Session) DropTable() error { method HasTable (line 48) | func (s *Session) HasTable() bool { FILE: gee-orm/day2-reflect-schema/session/table_test.go type User (line 7) | type User struct function TestSession_CreateTable (line 11) | func TestSession_CreateTable(t *testing.T) { function TestSession_Model (line 20) | func TestSession_Model(t *testing.T) { FILE: gee-orm/day3-save-query/clause/clause.go type Clause (line 8) | type Clause struct method Set (line 27) | func (c *Clause) Set(name Type, vars ...interface{}) { method Build (line 38) | func (c *Clause) Build(orders ...Type) (string, []interface{}) { type Type (line 14) | type Type constant INSERT (line 18) | INSERT Type = iota constant VALUES (line 19) | VALUES constant SELECT (line 20) | SELECT constant LIMIT (line 21) | LIMIT constant WHERE (line 22) | WHERE constant ORDERBY (line 23) | ORDERBY FILE: gee-orm/day3-save-query/clause/clause_test.go function TestClause_Set (line 8) | func TestClause_Set(t *testing.T) { function testSelect (line 19) | func testSelect(t *testing.T) { function TestClause_Build (line 35) | func TestClause_Build(t *testing.T) { FILE: gee-orm/day3-save-query/clause/generator.go type generator (line 8) | type generator function init (line 12) | func init() { function genBindVars (line 22) | func genBindVars(num int) string { function _insert (line 30) | func _insert(values ...interface{}) (string, []interface{}) { function _values (line 37) | func _values(values ...interface{}) (string, []interface{}) { function _select (line 58) | func _select(values ...interface{}) (string, []interface{}) { function _limit (line 65) | func _limit(values ...interface{}) (string, []interface{}) { function _where (line 70) | func _where(values ...interface{}) (string, []interface{}) { function _orderBy (line 76) | func _orderBy(values ...interface{}) (string, []interface{}) { FILE: gee-orm/day3-save-query/dialect/dialect.go type Dialect (line 8) | type Dialect interface function RegisterDialect (line 14) | func RegisterDialect(name string, dialect Dialect) { function GetDialect (line 19) | func GetDialect(name string) (dialect Dialect, ok bool) { FILE: gee-orm/day3-save-query/dialect/sqlite3.go type sqlite3 (line 9) | type sqlite3 struct method DataTypeOf (line 18) | func (s *sqlite3) DataTypeOf(typ reflect.Value) string { method TableExistSQL (line 42) | func (s *sqlite3) TableExistSQL(tableName string) (string, []interface... function init (line 13) | func init() { FILE: gee-orm/day3-save-query/dialect/sqlite3_test.go function TestDataTypeOf (line 8) | func TestDataTypeOf(t *testing.T) { FILE: gee-orm/day3-save-query/geeorm.go type Engine (line 11) | type Engine struct method Close (line 41) | func (engine *Engine) Close() { method NewSession (line 49) | func (engine *Engine) NewSession() *session.Session { function NewEngine (line 18) | func NewEngine(driver, source string) (e *Engine, err error) { FILE: gee-orm/day3-save-query/geeorm_test.go function OpenDB (line 8) | func OpenDB(t *testing.T) *Engine { function TestNewEngine (line 17) | func TestNewEngine(t *testing.T) { FILE: gee-orm/day3-save-query/log/log.go constant InfoLevel (line 27) | InfoLevel = iota constant ErrorLevel (line 28) | ErrorLevel constant Disabled (line 29) | Disabled function SetLevel (line 33) | func SetLevel(level int) { FILE: gee-orm/day3-save-query/log/log_test.go function TestSetLevel (line 8) | func TestSetLevel(t *testing.T) { FILE: gee-orm/day3-save-query/schema/schema.go type Field (line 10) | type Field struct type Schema (line 17) | type Schema struct method GetField (line 26) | func (schema *Schema) GetField(name string) *Field { method RecordValues (line 31) | func (schema *Schema) RecordValues(dest interface{}) []interface{} { type ITableName (line 40) | type ITableName interface function Parse (line 45) | func Parse(dest interface{}, d dialect.Dialect) *Schema { FILE: gee-orm/day3-save-query/schema/schema_test.go type User (line 8) | type User struct function TestParse (line 15) | func TestParse(t *testing.T) { function TestSchema_RecordValues (line 25) | func TestSchema_RecordValues(t *testing.T) { type UserTest (line 37) | type UserTest struct method TableName (line 42) | func (u *UserTest) TableName() string { function TestSchema_TableName (line 46) | func TestSchema_TableName(t *testing.T) { FILE: gee-orm/day3-save-query/session/raw.go type Session (line 14) | type Session struct method Clear (line 32) | func (s *Session) Clear() { method DB (line 39) | func (s *Session) DB() *sql.DB { method Exec (line 44) | func (s *Session) Exec() (result sql.Result, err error) { method QueryRow (line 54) | func (s *Session) QueryRow() *sql.Row { method QueryRows (line 61) | func (s *Session) QueryRows() (rows *sql.Rows, err error) { method Raw (line 71) | func (s *Session) Raw(sql string, values ...interface{}) *Session { function New (line 24) | func New(db *sql.DB, dialect dialect.Dialect) *Session { FILE: gee-orm/day3-save-query/session/raw_test.go function TestMain (line 18) | func TestMain(m *testing.M) { function NewSession (line 25) | func NewSession() *Session { function TestSession_Exec (line 28) | func TestSession_Exec(t *testing.T) { function TestSession_QueryRows (line 38) | func TestSession_QueryRows(t *testing.T) { FILE: gee-orm/day3-save-query/session/record.go method Insert (line 9) | func (s *Session) Insert(values ...interface{}) (int64, error) { method Find (line 28) | func (s *Session) Find(values interface{}) error { FILE: gee-orm/day3-save-query/session/record_test.go function testRecordInit (line 11) | func testRecordInit(t *testing.T) *Session { function TestSession_Insert (line 23) | func TestSession_Insert(t *testing.T) { function TestSession_Find (line 31) | func TestSession_Find(t *testing.T) { FILE: gee-orm/day3-save-query/session/table.go method Model (line 13) | func (s *Session) Model(value interface{}) *Session { method RefTable (line 22) | func (s *Session) RefTable() *schema.Schema { method CreateTable (line 30) | func (s *Session) CreateTable() error { method DropTable (line 42) | func (s *Session) DropTable() error { method HasTable (line 48) | func (s *Session) HasTable() bool { FILE: gee-orm/day3-save-query/session/table_test.go type User (line 7) | type User struct function TestSession_CreateTable (line 12) | func TestSession_CreateTable(t *testing.T) { function TestSession_Model (line 21) | func TestSession_Model(t *testing.T) { FILE: gee-orm/day4-chain-operation/clause/clause.go type Clause (line 8) | type Clause struct method Set (line 30) | func (c *Clause) Set(name Type, vars ...interface{}) { method Build (line 41) | func (c *Clause) Build(orders ...Type) (string, []interface{}) { type Type (line 14) | type Type constant INSERT (line 18) | INSERT Type = iota constant VALUES (line 19) | VALUES constant SELECT (line 20) | SELECT constant LIMIT (line 21) | LIMIT constant WHERE (line 22) | WHERE constant ORDERBY (line 23) | ORDERBY constant UPDATE (line 24) | UPDATE constant DELETE (line 25) | DELETE constant COUNT (line 26) | COUNT FILE: gee-orm/day4-chain-operation/clause/clause_test.go function TestClause_Set (line 8) | func TestClause_Set(t *testing.T) { function testSelect (line 19) | func testSelect(t *testing.T) { function testUpdate (line 35) | func testUpdate(t *testing.T) { function testDelete (line 49) | func testDelete(t *testing.T) { function TestClause_Build (line 64) | func TestClause_Build(t *testing.T) { FILE: gee-orm/day4-chain-operation/clause/generator.go type generator (line 8) | type generator function init (line 12) | func init() { function genBindVars (line 25) | func genBindVars(num int) string { function _insert (line 33) | func _insert(values ...interface{}) (string, []interface{}) { function _values (line 40) | func _values(values ...interface{}) (string, []interface{}) { function _select (line 61) | func _select(values ...interface{}) (string, []interface{}) { function _limit (line 68) | func _limit(values ...interface{}) (string, []interface{}) { function _where (line 73) | func _where(values ...interface{}) (string, []interface{}) { function _orderBy (line 79) | func _orderBy(values ...interface{}) (string, []interface{}) { function _update (line 83) | func _update(values ...interface{}) (string, []interface{}) { function _delete (line 95) | func _delete(values ...interface{}) (string, []interface{}) { function _count (line 99) | func _count(values ...interface{}) (string, []interface{}) { FILE: gee-orm/day4-chain-operation/dialect/dialect.go type Dialect (line 8) | type Dialect interface function RegisterDialect (line 14) | func RegisterDialect(name string, dialect Dialect) { function GetDialect (line 19) | func GetDialect(name string) (dialect Dialect, ok bool) { FILE: gee-orm/day4-chain-operation/dialect/sqlite3.go type sqlite3 (line 9) | type sqlite3 struct method DataTypeOf (line 18) | func (s *sqlite3) DataTypeOf(typ reflect.Value) string { method TableExistSQL (line 42) | func (s *sqlite3) TableExistSQL(tableName string) (string, []interface... function init (line 13) | func init() { FILE: gee-orm/day4-chain-operation/dialect/sqlite3_test.go function TestDataTypeOf (line 8) | func TestDataTypeOf(t *testing.T) { FILE: gee-orm/day4-chain-operation/geeorm.go type Engine (line 11) | type Engine struct method Close (line 41) | func (engine *Engine) Close() { method NewSession (line 49) | func (engine *Engine) NewSession() *session.Session { function NewEngine (line 18) | func NewEngine(driver, source string) (e *Engine, err error) { FILE: gee-orm/day4-chain-operation/geeorm_test.go function OpenDB (line 8) | func OpenDB(t *testing.T) *Engine { function TestNewEngine (line 17) | func TestNewEngine(t *testing.T) { FILE: gee-orm/day4-chain-operation/log/log.go constant InfoLevel (line 27) | InfoLevel = iota constant ErrorLevel (line 28) | ErrorLevel constant Disabled (line 29) | Disabled function SetLevel (line 33) | func SetLevel(level int) { FILE: gee-orm/day4-chain-operation/log/log_test.go function TestSetLevel (line 8) | func TestSetLevel(t *testing.T) { FILE: gee-orm/day4-chain-operation/schema/schema.go type Field (line 10) | type Field struct type Schema (line 17) | type Schema struct method GetField (line 26) | func (schema *Schema) GetField(name string) *Field { method RecordValues (line 31) | func (schema *Schema) RecordValues(dest interface{}) []interface{} { type ITableName (line 40) | type ITableName interface function Parse (line 45) | func Parse(dest interface{}, d dialect.Dialect) *Schema { FILE: gee-orm/day4-chain-operation/schema/schema_test.go type User (line 8) | type User struct function TestParse (line 15) | func TestParse(t *testing.T) { function TestSchema_RecordValues (line 25) | func TestSchema_RecordValues(t *testing.T) { type UserTest (line 37) | type UserTest struct method TableName (line 42) | func (u *UserTest) TableName() string { function TestSchema_TableName (line 46) | func TestSchema_TableName(t *testing.T) { FILE: gee-orm/day4-chain-operation/session/raw.go type Session (line 14) | type Session struct method Clear (line 32) | func (s *Session) Clear() { method DB (line 39) | func (s *Session) DB() *sql.DB { method Exec (line 44) | func (s *Session) Exec() (result sql.Result, err error) { method QueryRow (line 54) | func (s *Session) QueryRow() *sql.Row { method QueryRows (line 61) | func (s *Session) QueryRows() (rows *sql.Rows, err error) { method Raw (line 71) | func (s *Session) Raw(sql string, values ...interface{}) *Session { function New (line 24) | func New(db *sql.DB, dialect dialect.Dialect) *Session { FILE: gee-orm/day4-chain-operation/session/raw_test.go function TestMain (line 18) | func TestMain(m *testing.M) { function NewSession (line 25) | func NewSession() *Session { function TestSession_Exec (line 29) | func TestSession_Exec(t *testing.T) { function TestSession_QueryRows (line 39) | func TestSession_QueryRows(t *testing.T) { FILE: gee-orm/day4-chain-operation/session/record.go method Insert (line 10) | func (s *Session) Insert(values ...interface{}) (int64, error) { method Find (line 29) | func (s *Session) Find(values interface{}) error { method First (line 56) | func (s *Session) First(value interface{}) error { method Limit (line 70) | func (s *Session) Limit(num int) *Session { method Where (line 76) | func (s *Session) Where(desc string, args ...interface{}) *Session { method OrderBy (line 83) | func (s *Session) OrderBy(desc string) *Session { method Update (line 91) | func (s *Session) Update(kv ...interface{}) (int64, error) { method Delete (line 109) | func (s *Session) Delete() (int64, error) { method Count (line 120) | func (s *Session) Count() (int64, error) { FILE: gee-orm/day4-chain-operation/session/record_test.go function testRecordInit (line 11) | func testRecordInit(t *testing.T) *Session { function TestSession_Insert (line 23) | func TestSession_Insert(t *testing.T) { function TestSession_Find (line 31) | func TestSession_Find(t *testing.T) { function TestSession_First (line 39) | func TestSession_First(t *testing.T) { function TestSession_Limit (line 48) | func TestSession_Limit(t *testing.T) { function TestSession_Where (line 57) | func TestSession_Where(t *testing.T) { function TestSession_OrderBy (line 68) | func TestSession_OrderBy(t *testing.T) { function TestSession_Update (line 78) | func TestSession_Update(t *testing.T) { function TestSession_DeleteAndCount (line 89) | func TestSession_DeleteAndCount(t *testing.T) { FILE: gee-orm/day4-chain-operation/session/table.go method Model (line 13) | func (s *Session) Model(value interface{}) *Session { method RefTable (line 22) | func (s *Session) RefTable() *schema.Schema { method CreateTable (line 30) | func (s *Session) CreateTable() error { method DropTable (line 42) | func (s *Session) DropTable() error { method HasTable (line 48) | func (s *Session) HasTable() bool { FILE: gee-orm/day4-chain-operation/session/table_test.go type User (line 7) | type User struct function TestSession_CreateTable (line 12) | func TestSession_CreateTable(t *testing.T) { function TestSession_Model (line 21) | func TestSession_Model(t *testing.T) { FILE: gee-orm/day5-hooks/clause/clause.go type Clause (line 8) | type Clause struct method Set (line 30) | func (c *Clause) Set(name Type, vars ...interface{}) { method Build (line 41) | func (c *Clause) Build(orders ...Type) (string, []interface{}) { type Type (line 14) | type Type constant INSERT (line 18) | INSERT Type = iota constant VALUES (line 19) | VALUES constant SELECT (line 20) | SELECT constant LIMIT (line 21) | LIMIT constant WHERE (line 22) | WHERE constant ORDERBY (line 23) | ORDERBY constant UPDATE (line 24) | UPDATE constant DELETE (line 25) | DELETE constant COUNT (line 26) | COUNT FILE: gee-orm/day5-hooks/clause/clause_test.go function TestClause_Set (line 8) | func TestClause_Set(t *testing.T) { function testSelect (line 19) | func testSelect(t *testing.T) { function testUpdate (line 35) | func testUpdate(t *testing.T) { function testDelete (line 49) | func testDelete(t *testing.T) { function TestClause_Build (line 64) | func TestClause_Build(t *testing.T) { FILE: gee-orm/day5-hooks/clause/generator.go type generator (line 8) | type generator function init (line 12) | func init() { function genBindVars (line 25) | func genBindVars(num int) string { function _insert (line 33) | func _insert(values ...interface{}) (string, []interface{}) { function _values (line 40) | func _values(values ...interface{}) (string, []interface{}) { function _select (line 61) | func _select(values ...interface{}) (string, []interface{}) { function _limit (line 68) | func _limit(values ...interface{}) (string, []interface{}) { function _where (line 73) | func _where(values ...interface{}) (string, []interface{}) { function _orderBy (line 79) | func _orderBy(values ...interface{}) (string, []interface{}) { function _update (line 83) | func _update(values ...interface{}) (string, []interface{}) { function _delete (line 95) | func _delete(values ...interface{}) (string, []interface{}) { function _count (line 99) | func _count(values ...interface{}) (string, []interface{}) { FILE: gee-orm/day5-hooks/dialect/dialect.go type Dialect (line 8) | type Dialect interface function RegisterDialect (line 14) | func RegisterDialect(name string, dialect Dialect) { function GetDialect (line 19) | func GetDialect(name string) (dialect Dialect, ok bool) { FILE: gee-orm/day5-hooks/dialect/sqlite3.go type sqlite3 (line 9) | type sqlite3 struct method DataTypeOf (line 18) | func (s *sqlite3) DataTypeOf(typ reflect.Value) string { method TableExistSQL (line 42) | func (s *sqlite3) TableExistSQL(tableName string) (string, []interface... function init (line 13) | func init() { FILE: gee-orm/day5-hooks/dialect/sqlite3_test.go function TestDataTypeOf (line 8) | func TestDataTypeOf(t *testing.T) { FILE: gee-orm/day5-hooks/geeorm.go type Engine (line 11) | type Engine struct method Close (line 41) | func (engine *Engine) Close() { method NewSession (line 49) | func (engine *Engine) NewSession() *session.Session { function NewEngine (line 18) | func NewEngine(driver, source string) (e *Engine, err error) { FILE: gee-orm/day5-hooks/geeorm_test.go function OpenDB (line 8) | func OpenDB(t *testing.T) *Engine { function TestNewEngine (line 17) | func TestNewEngine(t *testing.T) { FILE: gee-orm/day5-hooks/log/log.go constant InfoLevel (line 27) | InfoLevel = iota constant ErrorLevel (line 28) | ErrorLevel constant Disabled (line 29) | Disabled function SetLevel (line 33) | func SetLevel(level int) { FILE: gee-orm/day5-hooks/log/log_test.go function TestSetLevel (line 8) | func TestSetLevel(t *testing.T) { FILE: gee-orm/day5-hooks/schema/schema.go type Field (line 10) | type Field struct type Schema (line 17) | type Schema struct method GetField (line 26) | func (schema *Schema) GetField(name string) *Field { method RecordValues (line 31) | func (schema *Schema) RecordValues(dest interface{}) []interface{} { type ITableName (line 40) | type ITableName interface function Parse (line 45) | func Parse(dest interface{}, d dialect.Dialect) *Schema { FILE: gee-orm/day5-hooks/schema/schema_test.go type User (line 8) | type User struct function TestParse (line 15) | func TestParse(t *testing.T) { function TestSchema_RecordValues (line 25) | func TestSchema_RecordValues(t *testing.T) { type UserTest (line 37) | type UserTest struct method TableName (line 42) | func (u *UserTest) TableName() string { function TestSchema_TableName (line 46) | func TestSchema_TableName(t *testing.T) { FILE: gee-orm/day5-hooks/session/hooks.go constant BeforeQuery (line 10) | BeforeQuery = "BeforeQuery" constant AfterQuery (line 11) | AfterQuery = "AfterQuery" constant BeforeUpdate (line 12) | BeforeUpdate = "BeforeUpdate" constant AfterUpdate (line 13) | AfterUpdate = "AfterUpdate" constant BeforeDelete (line 14) | BeforeDelete = "BeforeDelete" constant AfterDelete (line 15) | AfterDelete = "AfterDelete" constant BeforeInsert (line 16) | BeforeInsert = "BeforeInsert" constant AfterInsert (line 17) | AfterInsert = "AfterInsert" method CallMethod (line 21) | func (s *Session) CallMethod(method string, value interface{}) { FILE: gee-orm/day5-hooks/session/hooks_test.go type Account (line 8) | type Account struct method BeforeInsert (line 13) | func (account *Account) BeforeInsert(s *Session) error { method AfterQuery (line 19) | func (account *Account) AfterQuery(s *Session) error { function TestSession_CallMethod (line 25) | func TestSession_CallMethod(t *testing.T) { FILE: gee-orm/day5-hooks/session/raw.go type Session (line 14) | type Session struct method Clear (line 32) | func (s *Session) Clear() { method DB (line 39) | func (s *Session) DB() *sql.DB { method Exec (line 44) | func (s *Session) Exec() (result sql.Result, err error) { method QueryRow (line 54) | func (s *Session) QueryRow() *sql.Row { method QueryRows (line 61) | func (s *Session) QueryRows() (rows *sql.Rows, err error) { method Raw (line 71) | func (s *Session) Raw(sql string, values ...interface{}) *Session { function New (line 24) | func New(db *sql.DB, dialect dialect.Dialect) *Session { FILE: gee-orm/day5-hooks/session/raw_test.go function TestMain (line 18) | func TestMain(m *testing.M) { function NewSession (line 25) | func NewSession() *Session { function TestSession_Exec (line 29) | func TestSession_Exec(t *testing.T) { function TestSession_QueryRows (line 39) | func TestSession_QueryRows(t *testing.T) { FILE: gee-orm/day5-hooks/session/record.go method Insert (line 10) | func (s *Session) Insert(values ...interface{}) (int64, error) { method Find (line 30) | func (s *Session) Find(values interface{}) error { method First (line 59) | func (s *Session) First(value interface{}) error { method Limit (line 73) | func (s *Session) Limit(num int) *Session { method Where (line 79) | func (s *Session) Where(desc string, args ...interface{}) *Session { method OrderBy (line 86) | func (s *Session) OrderBy(desc string) *Session { method Update (line 94) | func (s *Session) Update(kv ...interface{}) (int64, error) { method Delete (line 114) | func (s *Session) Delete() (int64, error) { method Count (line 127) | func (s *Session) Count() (int64, error) { FILE: gee-orm/day5-hooks/session/record_test.go function testRecordInit (line 11) | func testRecordInit(t *testing.T) *Session { function TestSession_Insert (line 23) | func TestSession_Insert(t *testing.T) { function TestSession_Find (line 31) | func TestSession_Find(t *testing.T) { function TestSession_First (line 39) | func TestSession_First(t *testing.T) { function TestSession_Limit (line 48) | func TestSession_Limit(t *testing.T) { function TestSession_Where (line 57) | func TestSession_Where(t *testing.T) { function TestSession_OrderBy (line 68) | func TestSession_OrderBy(t *testing.T) { function TestSession_Update (line 78) | func TestSession_Update(t *testing.T) { function TestSession_DeleteAndCount (line 89) | func TestSession_DeleteAndCount(t *testing.T) { FILE: gee-orm/day5-hooks/session/table.go method Model (line 13) | func (s *Session) Model(value interface{}) *Session { method RefTable (line 22) | func (s *Session) RefTable() *schema.Schema { method CreateTable (line 30) | func (s *Session) CreateTable() error { method DropTable (line 42) | func (s *Session) DropTable() error { method HasTable (line 48) | func (s *Session) HasTable() bool { FILE: gee-orm/day5-hooks/session/table_test.go type User (line 7) | type User struct function TestSession_CreateTable (line 12) | func TestSession_CreateTable(t *testing.T) { function TestSession_Model (line 21) | func TestSession_Model(t *testing.T) { FILE: gee-orm/day6-transaction/clause/clause.go type Clause (line 8) | type Clause struct method Set (line 30) | func (c *Clause) Set(name Type, vars ...interface{}) { method Build (line 41) | func (c *Clause) Build(orders ...Type) (string, []interface{}) { type Type (line 14) | type Type constant INSERT (line 18) | INSERT Type = iota constant VALUES (line 19) | VALUES constant SELECT (line 20) | SELECT constant LIMIT (line 21) | LIMIT constant WHERE (line 22) | WHERE constant ORDERBY (line 23) | ORDERBY constant UPDATE (line 24) | UPDATE constant DELETE (line 25) | DELETE constant COUNT (line 26) | COUNT FILE: gee-orm/day6-transaction/clause/clause_test.go function TestClause_Set (line 8) | func TestClause_Set(t *testing.T) { function testSelect (line 19) | func testSelect(t *testing.T) { function testUpdate (line 35) | func testUpdate(t *testing.T) { function testDelete (line 49) | func testDelete(t *testing.T) { function TestClause_Build (line 64) | func TestClause_Build(t *testing.T) { FILE: gee-orm/day6-transaction/clause/generator.go type generator (line 8) | type generator function init (line 12) | func init() { function genBindVars (line 25) | func genBindVars(num int) string { function _insert (line 33) | func _insert(values ...interface{}) (string, []interface{}) { function _values (line 40) | func _values(values ...interface{}) (string, []interface{}) { function _select (line 61) | func _select(values ...interface{}) (string, []interface{}) { function _limit (line 68) | func _limit(values ...interface{}) (string, []interface{}) { function _where (line 73) | func _where(values ...interface{}) (string, []interface{}) { function _orderBy (line 79) | func _orderBy(values ...interface{}) (string, []interface{}) { function _update (line 83) | func _update(values ...interface{}) (string, []interface{}) { function _delete (line 95) | func _delete(values ...interface{}) (string, []interface{}) { function _count (line 99) | func _count(values ...interface{}) (string, []interface{}) { FILE: gee-orm/day6-transaction/dialect/dialect.go type Dialect (line 8) | type Dialect interface function RegisterDialect (line 14) | func RegisterDialect(name string, dialect Dialect) { function GetDialect (line 19) | func GetDialect(name string) (dialect Dialect, ok bool) { FILE: gee-orm/day6-transaction/dialect/sqlite3.go type sqlite3 (line 9) | type sqlite3 struct method DataTypeOf (line 18) | func (s *sqlite3) DataTypeOf(typ reflect.Value) string { method TableExistSQL (line 42) | func (s *sqlite3) TableExistSQL(tableName string) (string, []interface... function init (line 13) | func init() { FILE: gee-orm/day6-transaction/dialect/sqlite3_test.go function TestDataTypeOf (line 8) | func TestDataTypeOf(t *testing.T) { FILE: gee-orm/day6-transaction/geeorm.go type Engine (line 11) | type Engine struct method Close (line 41) | func (engine *Engine) Close() { method NewSession (line 49) | func (engine *Engine) NewSession() *session.Session { method Transaction (line 58) | func (engine *Engine) Transaction(f TxFunc) (result interface{}, err e... function NewEngine (line 18) | func NewEngine(driver, source string) (e *Engine, err error) { type TxFunc (line 55) | type TxFunc FILE: gee-orm/day6-transaction/geeorm_test.go function OpenDB (line 11) | func OpenDB(t *testing.T) *Engine { function TestNewEngine (line 20) | func TestNewEngine(t *testing.T) { type User (line 25) | type User struct function transactionRollback (line 30) | func transactionRollback(t *testing.T) { function transactionCommit (line 45) | func transactionCommit(t *testing.T) { function TestEngine_Transaction (line 62) | func TestEngine_Transaction(t *testing.T) { FILE: gee-orm/day6-transaction/log/log.go constant InfoLevel (line 27) | InfoLevel = iota constant ErrorLevel (line 28) | ErrorLevel constant Disabled (line 29) | Disabled function SetLevel (line 33) | func SetLevel(level int) { FILE: gee-orm/day6-transaction/log/log_test.go function TestSetLevel (line 8) | func TestSetLevel(t *testing.T) { FILE: gee-orm/day6-transaction/schema/schema.go type Field (line 10) | type Field struct type Schema (line 17) | type Schema struct method GetField (line 26) | func (schema *Schema) GetField(name string) *Field { method RecordValues (line 31) | func (schema *Schema) RecordValues(dest interface{}) []interface{} { type ITableName (line 40) | type ITableName interface function Parse (line 45) | func Parse(dest interface{}, d dialect.Dialect) *Schema { FILE: gee-orm/day6-transaction/schema/schema_test.go type User (line 8) | type User struct function TestParse (line 15) | func TestParse(t *testing.T) { function TestSchema_RecordValues (line 25) | func TestSchema_RecordValues(t *testing.T) { type UserTest (line 37) | type UserTest struct method TableName (line 42) | func (u *UserTest) TableName() string { function TestSchema_TableName (line 46) | func TestSchema_TableName(t *testing.T) { FILE: gee-orm/day6-transaction/session/hooks.go constant BeforeQuery (line 10) | BeforeQuery = "BeforeQuery" constant AfterQuery (line 11) | AfterQuery = "AfterQuery" constant BeforeUpdate (line 12) | BeforeUpdate = "BeforeUpdate" constant AfterUpdate (line 13) | AfterUpdate = "AfterUpdate" constant BeforeDelete (line 14) | BeforeDelete = "BeforeDelete" constant AfterDelete (line 15) | AfterDelete = "AfterDelete" constant BeforeInsert (line 16) | BeforeInsert = "BeforeInsert" constant AfterInsert (line 17) | AfterInsert = "AfterInsert" method CallMethod (line 21) | func (s *Session) CallMethod(method string, value interface{}) { FILE: gee-orm/day6-transaction/session/hooks_test.go type Account (line 8) | type Account struct method BeforeInsert (line 13) | func (account *Account) BeforeInsert(s *Session) error { method AfterQuery (line 19) | func (account *Account) AfterQuery(s *Session) error { function TestSession_CallMethod (line 25) | func TestSession_CallMethod(t *testing.T) { FILE: gee-orm/day6-transaction/session/raw.go type Session (line 14) | type Session struct method Clear (line 33) | func (s *Session) Clear() { method DB (line 50) | func (s *Session) DB() CommonDB { method Exec (line 58) | func (s *Session) Exec() (result sql.Result, err error) { method QueryRow (line 68) | func (s *Session) QueryRow() *sql.Row { method QueryRows (line 75) | func (s *Session) QueryRows() (rows *sql.Rows, err error) { method Raw (line 85) | func (s *Session) Raw(sql string, values ...interface{}) *Session { function New (line 25) | func New(db *sql.DB, dialect dialect.Dialect) *Session { type CommonDB (line 40) | type CommonDB interface FILE: gee-orm/day6-transaction/session/raw_test.go function TestMain (line 18) | func TestMain(m *testing.M) { function NewSession (line 25) | func NewSession() *Session { function TestSession_Exec (line 29) | func TestSession_Exec(t *testing.T) { function TestSession_QueryRows (line 39) | func TestSession_QueryRows(t *testing.T) { FILE: gee-orm/day6-transaction/session/record.go method Insert (line 10) | func (s *Session) Insert(values ...interface{}) (int64, error) { method Find (line 30) | func (s *Session) Find(values interface{}) error { method First (line 59) | func (s *Session) First(value interface{}) error { method Limit (line 73) | func (s *Session) Limit(num int) *Session { method Where (line 79) | func (s *Session) Where(desc string, args ...interface{}) *Session { method OrderBy (line 86) | func (s *Session) OrderBy(desc string) *Session { method Update (line 94) | func (s *Session) Update(kv ...interface{}) (int64, error) { method Delete (line 114) | func (s *Session) Delete() (int64, error) { method Count (line 127) | func (s *Session) Count() (int64, error) { FILE: gee-orm/day6-transaction/session/record_test.go function testRecordInit (line 11) | func testRecordInit(t *testing.T) *Session { function TestSession_Insert (line 23) | func TestSession_Insert(t *testing.T) { function TestSession_Find (line 31) | func TestSession_Find(t *testing.T) { function TestSession_First (line 39) | func TestSession_First(t *testing.T) { function TestSession_Limit (line 48) | func TestSession_Limit(t *testing.T) { function TestSession_Where (line 57) | func TestSession_Where(t *testing.T) { function TestSession_OrderBy (line 68) | func TestSession_OrderBy(t *testing.T) { function TestSession_Update (line 78) | func TestSession_Update(t *testing.T) { function TestSession_DeleteAndCount (line 89) | func TestSession_DeleteAndCount(t *testing.T) { FILE: gee-orm/day6-transaction/session/table.go method Model (line 13) | func (s *Session) Model(value interface{}) *Session { method RefTable (line 22) | func (s *Session) RefTable() *schema.Schema { method CreateTable (line 30) | func (s *Session) CreateTable() error { method DropTable (line 42) | func (s *Session) DropTable() error { method HasTable (line 48) | func (s *Session) HasTable() bool { FILE: gee-orm/day6-transaction/session/table_test.go type User (line 7) | type User struct function TestSession_CreateTable (line 12) | func TestSession_CreateTable(t *testing.T) { function TestSession_Model (line 21) | func TestSession_Model(t *testing.T) { FILE: gee-orm/day6-transaction/session/transaction.go method Begin (line 6) | func (s *Session) Begin() (err error) { method Commit (line 16) | func (s *Session) Commit() (err error) { method Rollback (line 25) | func (s *Session) Rollback() (err error) { FILE: gee-orm/day7-migrate/clause/clause.go type Clause (line 8) | type Clause struct method Set (line 30) | func (c *Clause) Set(name Type, vars ...interface{}) { method Build (line 41) | func (c *Clause) Build(orders ...Type) (string, []interface{}) { type Type (line 14) | type Type constant INSERT (line 18) | INSERT Type = iota constant VALUES (line 19) | VALUES constant SELECT (line 20) | SELECT constant LIMIT (line 21) | LIMIT constant WHERE (line 22) | WHERE constant ORDERBY (line 23) | ORDERBY constant UPDATE (line 24) | UPDATE constant DELETE (line 25) | DELETE constant COUNT (line 26) | COUNT FILE: gee-orm/day7-migrate/clause/clause_test.go function TestClause_Set (line 8) | func TestClause_Set(t *testing.T) { function testSelect (line 19) | func testSelect(t *testing.T) { function testUpdate (line 35) | func testUpdate(t *testing.T) { function testDelete (line 49) | func testDelete(t *testing.T) { function TestClause_Build (line 64) | func TestClause_Build(t *testing.T) { FILE: gee-orm/day7-migrate/clause/generator.go type generator (line 8) | type generator function init (line 12) | func init() { function genBindVars (line 25) | func genBindVars(num int) string { function _insert (line 33) | func _insert(values ...interface{}) (string, []interface{}) { function _values (line 40) | func _values(values ...interface{}) (string, []interface{}) { function _select (line 61) | func _select(values ...interface{}) (string, []interface{}) { function _limit (line 68) | func _limit(values ...interface{}) (string, []interface{}) { function _where (line 73) | func _where(values ...interface{}) (string, []interface{}) { function _orderBy (line 79) | func _orderBy(values ...interface{}) (string, []interface{}) { function _update (line 83) | func _update(values ...interface{}) (string, []interface{}) { function _delete (line 95) | func _delete(values ...interface{}) (string, []interface{}) { function _count (line 99) | func _count(values ...interface{}) (string, []interface{}) { FILE: gee-orm/day7-migrate/dialect/dialect.go type Dialect (line 8) | type Dialect interface function RegisterDialect (line 14) | func RegisterDialect(name string, dialect Dialect) { function GetDialect (line 19) | func GetDialect(name string) (dialect Dialect, ok bool) { FILE: gee-orm/day7-migrate/dialect/sqlite3.go type sqlite3 (line 9) | type sqlite3 struct method DataTypeOf (line 18) | func (s *sqlite3) DataTypeOf(typ reflect.Value) string { method TableExistSQL (line 42) | func (s *sqlite3) TableExistSQL(tableName string) (string, []interface... function init (line 13) | func init() { FILE: gee-orm/day7-migrate/dialect/sqlite3_test.go function TestDataTypeOf (line 8) | func TestDataTypeOf(t *testing.T) { FILE: gee-orm/day7-migrate/geeorm.go type Engine (line 13) | type Engine struct method Close (line 43) | func (engine *Engine) Close() { method NewSession (line 52) | func (engine *Engine) NewSession() *session.Session { method Transaction (line 61) | func (engine *Engine) Transaction(f TxFunc) (result interface{}, err e... method Migrate (line 95) | func (engine *Engine) Migrate(value interface{}) error { function NewEngine (line 20) | func NewEngine(driver, source string) (e *Engine, err error) { type TxFunc (line 58) | type TxFunc function difference (line 81) | func difference(a []string, b []string) (diff []string) { FILE: gee-orm/day7-migrate/geeorm_test.go function OpenDB (line 12) | func OpenDB(t *testing.T) *Engine { function TestNewEngine (line 21) | func TestNewEngine(t *testing.T) { type User (line 26) | type User struct function transactionRollback (line 31) | func transactionRollback(t *testing.T) { function transactionCommit (line 46) | func transactionCommit(t *testing.T) { function TestEngine_Transaction (line 63) | func TestEngine_Transaction(t *testing.T) { function TestEngine_Migrate (line 72) | func TestEngine_Migrate(t *testing.T) { FILE: gee-orm/day7-migrate/log/log.go constant InfoLevel (line 27) | InfoLevel = iota constant ErrorLevel (line 28) | ErrorLevel constant Disabled (line 29) | Disabled function SetLevel (line 33) | func SetLevel(level int) { FILE: gee-orm/day7-migrate/log/log_test.go function TestSetLevel (line 8) | func TestSetLevel(t *testing.T) { FILE: gee-orm/day7-migrate/schema/schema.go type Field (line 10) | type Field struct type Schema (line 17) | type Schema struct method GetField (line 26) | func (schema *Schema) GetField(name string) *Field { method RecordValues (line 31) | func (schema *Schema) RecordValues(dest interface{}) []interface{} { type ITableName (line 40) | type ITableName interface function Parse (line 45) | func Parse(dest interface{}, d dialect.Dialect) *Schema { FILE: gee-orm/day7-migrate/schema/schema_test.go type User (line 8) | type User struct function TestParse (line 15) | func TestParse(t *testing.T) { function TestSchema_RecordValues (line 25) | func TestSchema_RecordValues(t *testing.T) { type UserTest (line 37) | type UserTest struct method TableName (line 42) | func (u *UserTest) TableName() string { function TestSchema_TableName (line 46) | func TestSchema_TableName(t *testing.T) { FILE: gee-orm/day7-migrate/session/hooks.go constant BeforeQuery (line 10) | BeforeQuery = "BeforeQuery" constant AfterQuery (line 11) | AfterQuery = "AfterQuery" constant BeforeUpdate (line 12) | BeforeUpdate = "BeforeUpdate" constant AfterUpdate (line 13) | AfterUpdate = "AfterUpdate" constant BeforeDelete (line 14) | BeforeDelete = "BeforeDelete" constant AfterDelete (line 15) | AfterDelete = "AfterDelete" constant BeforeInsert (line 16) | BeforeInsert = "BeforeInsert" constant AfterInsert (line 17) | AfterInsert = "AfterInsert" method CallMethod (line 21) | func (s *Session) CallMethod(method string, value interface{}) { FILE: gee-orm/day7-migrate/session/hooks_test.go type Account (line 8) | type Account struct method BeforeInsert (line 13) | func (account *Account) BeforeInsert(s *Session) error { method AfterQuery (line 19) | func (account *Account) AfterQuery(s *Session) error { function TestSession_CallMethod (line 25) | func TestSession_CallMethod(t *testing.T) { FILE: gee-orm/day7-migrate/session/raw.go type Session (line 14) | type Session struct method Clear (line 33) | func (s *Session) Clear() { method DB (line 50) | func (s *Session) DB() CommonDB { method Exec (line 58) | func (s *Session) Exec() (result sql.Result, err error) { method QueryRow (line 68) | func (s *Session) QueryRow() *sql.Row { method QueryRows (line 75) | func (s *Session) QueryRows() (rows *sql.Rows, err error) { method Raw (line 85) | func (s *Session) Raw(sql string, values ...interface{}) *Session { function New (line 25) | func New(db *sql.DB, dialect dialect.Dialect) *Session { type CommonDB (line 40) | type CommonDB interface FILE: gee-orm/day7-migrate/session/raw_test.go function TestMain (line 18) | func TestMain(m *testing.M) { function NewSession (line 25) | func NewSession() *Session { function TestSession_Exec (line 29) | func TestSession_Exec(t *testing.T) { function TestSession_QueryRows (line 39) | func TestSession_QueryRows(t *testing.T) { FILE: gee-orm/day7-migrate/session/record.go method Insert (line 10) | func (s *Session) Insert(values ...interface{}) (int64, error) { method Find (line 30) | func (s *Session) Find(values interface{}) error { method First (line 59) | func (s *Session) First(value interface{}) error { method Limit (line 73) | func (s *Session) Limit(num int) *Session { method Where (line 79) | func (s *Session) Where(desc string, args ...interface{}) *Session { method OrderBy (line 86) | func (s *Session) OrderBy(desc string) *Session { method Update (line 94) | func (s *Session) Update(kv ...interface{}) (int64, error) { method Delete (line 114) | func (s *Session) Delete() (int64, error) { method Count (line 127) | func (s *Session) Count() (int64, error) { FILE: gee-orm/day7-migrate/session/record_test.go function testRecordInit (line 11) | func testRecordInit(t *testing.T) *Session { function TestSession_Insert (line 23) | func TestSession_Insert(t *testing.T) { function TestSession_Find (line 31) | func TestSession_Find(t *testing.T) { function TestSession_First (line 39) | func TestSession_First(t *testing.T) { function TestSession_Limit (line 48) | func TestSession_Limit(t *testing.T) { function TestSession_Where (line 57) | func TestSession_Where(t *testing.T) { function TestSession_OrderBy (line 68) | func TestSession_OrderBy(t *testing.T) { function TestSession_Update (line 78) | func TestSession_Update(t *testing.T) { function TestSession_DeleteAndCount (line 89) | func TestSession_DeleteAndCount(t *testing.T) { FILE: gee-orm/day7-migrate/session/table.go method Model (line 13) | func (s *Session) Model(value interface{}) *Session { method RefTable (line 22) | func (s *Session) RefTable() *schema.Schema { method CreateTable (line 30) | func (s *Session) CreateTable() error { method DropTable (line 42) | func (s *Session) DropTable() error { method HasTable (line 48) | func (s *Session) HasTable() bool { FILE: gee-orm/day7-migrate/session/table_test.go type User (line 7) | type User struct function TestSession_CreateTable (line 12) | func TestSession_CreateTable(t *testing.T) { function TestSession_Model (line 21) | func TestSession_Model(t *testing.T) { FILE: gee-orm/day7-migrate/session/transaction.go method Begin (line 6) | func (s *Session) Begin() (err error) { method Commit (line 16) | func (s *Session) Commit() (err error) { method Rollback (line 25) | func (s *Session) Rollback() (err error) { FILE: gee-rpc/day1-codec/codec/codec.go type Header (line 7) | type Header struct type Codec (line 13) | type Codec interface type NewCodecFunc (line 20) | type NewCodecFunc type Type (line 22) | type Type constant GobType (line 25) | GobType Type = "application/gob" constant JsonType (line 26) | JsonType Type = "application/json" function init (line 31) | func init() { FILE: gee-rpc/day1-codec/codec/gob.go type GobCodec (line 10) | type GobCodec struct method ReadHeader (line 29) | func (c *GobCodec) ReadHeader(h *Header) error { method ReadBody (line 33) | func (c *GobCodec) ReadBody(body interface{}) error { method Write (line 37) | func (c *GobCodec) Write(h *Header, body interface{}) (err error) { method Close (line 55) | func (c *GobCodec) Close() error { function NewGobCodec (line 19) | func NewGobCodec(conn io.ReadWriteCloser) Codec { FILE: gee-rpc/day1-codec/main/main.go function startServer (line 13) | func startServer(addr chan string) { function main (line 24) | func main() { FILE: gee-rpc/day1-codec/server.go constant MagicNumber (line 18) | MagicNumber = 0x3bef5c type Option (line 20) | type Option struct type Server (line 31) | type Server struct method ServeConn (line 43) | func (server *Server) ServeConn(conn io.ReadWriteCloser) { method serveCodec (line 65) | func (server *Server) serveCodec(cc codec.Codec) { method readRequestHeader (line 91) | func (server *Server) readRequestHeader(cc codec.Codec) (*codec.Header... method readRequest (line 102) | func (server *Server) readRequest(cc codec.Codec) (*request, error) { method sendResponse (line 117) | func (server *Server) sendResponse(cc codec.Codec, h *codec.Header, bo... method handleRequest (line 125) | func (server *Server) handleRequest(cc codec.Codec, req *request, send... method Accept (line 136) | func (server *Server) Accept(lis net.Listener) { function NewServer (line 34) | func NewServer() *Server { type request (line 86) | type request struct function Accept (line 149) | func Accept(lis net.Listener) { DefaultServer.Accept(lis) } FILE: gee-rpc/day2-client/client.go type Call (line 19) | type Call struct method done (line 28) | func (call *Call) done() { type Client (line 36) | type Client struct method Close (line 53) | func (client *Client) Close() error { method IsAvailable (line 64) | func (client *Client) IsAvailable() bool { method registerCall (line 70) | func (client *Client) registerCall(call *Call) (uint64, error) { method removeCall (line 82) | func (client *Client) removeCall(seq uint64) *Call { method terminateCalls (line 90) | func (client *Client) terminateCalls(err error) { method send (line 102) | func (client *Client) send(call *Call) { method receive (line 132) | func (client *Client) receive() { method Go (line 163) | func (client *Client) Go(serviceMethod string, args, reply interface{}... method Call (line 181) | func (client *Client) Call(serviceMethod string, args, reply interface... function parseOptions (line 186) | func parseOptions(opts ...*Option) (*Option, error) { function NewClient (line 202) | func NewClient(conn net.Conn, opt *Option) (*Client, error) { function newClientCodec (line 218) | func newClientCodec(cc codec.Codec, opt *Option) *Client { function Dial (line 230) | func Dial(network, address string, opts ...*Option) (client *Client, err... FILE: gee-rpc/day2-client/codec/codec.go type Header (line 7) | type Header struct type Codec (line 13) | type Codec interface type NewCodecFunc (line 20) | type NewCodecFunc type Type (line 22) | type Type constant GobType (line 25) | GobType Type = "application/gob" constant JsonType (line 26) | JsonType Type = "application/json" function init (line 31) | func init() { FILE: gee-rpc/day2-client/codec/gob.go type GobCodec (line 10) | type GobCodec struct method ReadHeader (line 29) | func (c *GobCodec) ReadHeader(h *Header) error { method ReadBody (line 33) | func (c *GobCodec) ReadBody(body interface{}) error { method Write (line 37) | func (c *GobCodec) Write(h *Header, body interface{}) (err error) { method Close (line 55) | func (c *GobCodec) Close() error { function NewGobCodec (line 19) | func NewGobCodec(conn io.ReadWriteCloser) Codec { FILE: gee-rpc/day2-client/main/main.go function startServer (line 12) | func startServer(addr chan string) { function main (line 23) | func main() { FILE: gee-rpc/day2-client/server.go constant MagicNumber (line 18) | MagicNumber = 0x3bef5c type Option (line 20) | type Option struct type Server (line 31) | type Server struct method ServeConn (line 43) | func (server *Server) ServeConn(conn io.ReadWriteCloser) { method serveCodec (line 65) | func (server *Server) serveCodec(cc codec.Codec) { method readRequestHeader (line 91) | func (server *Server) readRequestHeader(cc codec.Codec) (*codec.Header... method readRequest (line 102) | func (server *Server) readRequest(cc codec.Codec) (*request, error) { method sendResponse (line 117) | func (server *Server) sendResponse(cc codec.Codec, h *codec.Header, bo... method handleRequest (line 125) | func (server *Server) handleRequest(cc codec.Codec, req *request, send... method Accept (line 136) | func (server *Server) Accept(lis net.Listener) { function NewServer (line 34) | func NewServer() *Server { type request (line 86) | type request struct function Accept (line 149) | func Accept(lis net.Listener) { DefaultServer.Accept(lis) } FILE: gee-rpc/day3-service/client.go type Call (line 19) | type Call struct method done (line 28) | func (call *Call) done() { type Client (line 36) | type Client struct method Close (line 53) | func (client *Client) Close() error { method IsAvailable (line 64) | func (client *Client) IsAvailable() bool { method registerCall (line 70) | func (client *Client) registerCall(call *Call) (uint64, error) { method removeCall (line 82) | func (client *Client) removeCall(seq uint64) *Call { method terminateCalls (line 90) | func (client *Client) terminateCalls(err error) { method send (line 102) | func (client *Client) send(call *Call) { method receive (line 132) | func (client *Client) receive() { method Go (line 163) | func (client *Client) Go(serviceMethod string, args, reply interface{}... method Call (line 181) | func (client *Client) Call(serviceMethod string, args, reply interface... function parseOptions (line 186) | func parseOptions(opts ...*Option) (*Option, error) { function NewClient (line 202) | func NewClient(conn net.Conn, opt *Option) (*Client, error) { function newClientCodec (line 217) | func newClientCodec(cc codec.Codec, opt *Option) *Client { function Dial (line 229) | func Dial(network, address string, opts ...*Option) (client *Client, err... FILE: gee-rpc/day3-service/codec/codec.go type Header (line 7) | type Header struct type Codec (line 13) | type Codec interface type NewCodecFunc (line 20) | type NewCodecFunc type Type (line 22) | type Type constant GobType (line 25) | GobType Type = "application/gob" constant JsonType (line 26) | JsonType Type = "application/json" function init (line 31) | func init() { FILE: gee-rpc/day3-service/codec/gob.go type GobCodec (line 10) | type GobCodec struct method ReadHeader (line 29) | func (c *GobCodec) ReadHeader(h *Header) error { method ReadBody (line 33) | func (c *GobCodec) ReadBody(body interface{}) error { method Write (line 37) | func (c *GobCodec) Write(h *Header, body interface{}) (err error) { method Close (line 55) | func (c *GobCodec) Close() error { function NewGobCodec (line 19) | func NewGobCodec(conn io.ReadWriteCloser) Codec { FILE: gee-rpc/day3-service/main/main.go type Foo (line 11) | type Foo method Sum (line 15) | func (f Foo) Sum(args Args, reply *int) error { type Args (line 13) | type Args struct function startServer (line 20) | func startServer(addr chan string) { function main (line 35) | func main() { FILE: gee-rpc/day3-service/server.go constant MagicNumber (line 19) | MagicNumber = 0x3bef5c type Option (line 21) | type Option struct type Server (line 32) | type Server struct method ServeConn (line 46) | func (server *Server) ServeConn(conn io.ReadWriteCloser) { method serveCodec (line 68) | func (server *Server) serveCodec(cc codec.Codec) { method readRequestHeader (line 96) | func (server *Server) readRequestHeader(cc codec.Codec) (*codec.Header... method findService (line 107) | func (server *Server) findService(serviceMethod string) (svc *service,... method readRequest (line 127) | func (server *Server) readRequest(cc codec.Codec) (*request, error) { method sendResponse (line 152) | func (server *Server) sendResponse(cc codec.Codec, h *codec.Header, bo... method handleRequest (line 160) | func (server *Server) handleRequest(cc codec.Codec, req *request, send... method Accept (line 173) | func (server *Server) Accept(lis net.Listener) { method Register (line 194) | func (server *Server) Register(rcvr interface{}) error { function NewServer (line 37) | func NewServer() *Server { type request (line 89) | type request struct function Accept (line 186) | func Accept(lis net.Listener) { DefaultServer.Accept(lis) } function Register (line 203) | func Register(rcvr interface{}) error { return DefaultServer.Register(rc... FILE: gee-rpc/day3-service/service.go type methodType (line 10) | type methodType struct method NumCalls (line 17) | func (m *methodType) NumCalls() uint64 { method newArgv (line 21) | func (m *methodType) newArgv() reflect.Value { method newReplyv (line 32) | func (m *methodType) newReplyv() reflect.Value { type service (line 44) | type service struct method registerMethods (line 63) | func (s *service) registerMethods() { method call (line 87) | func (s *service) call(m *methodType, argv, replyv reflect.Value) error { function newService (line 51) | func newService(rcvr interface{}) *service { function isExportedOrBuiltinType (line 97) | func isExportedOrBuiltinType(t reflect.Type) bool { FILE: gee-rpc/day3-service/service_test.go type Foo (line 9) | type Foo method Sum (line 13) | func (f Foo) Sum(args Args, reply *int) error { method sum (line 19) | func (f Foo) sum(args Args, reply *int) error { type Args (line 11) | type Args struct function _assert (line 24) | func _assert(condition bool, msg string, v ...interface{}) { function TestNewService (line 30) | func TestNewService(t *testing.T) { function TestMethodType_Call (line 38) | func TestMethodType_Call(t *testing.T) { FILE: gee-rpc/day4-timeout/client.go type Call (line 21) | type Call struct method done (line 30) | func (call *Call) done() { type Client (line 38) | type Client struct method Close (line 55) | func (client *Client) Close() error { method IsAvailable (line 66) | func (client *Client) IsAvailable() bool { method registerCall (line 72) | func (client *Client) registerCall(call *Call) (uint64, error) { method removeCall (line 84) | func (client *Client) removeCall(seq uint64) *Call { method terminateCalls (line 92) | func (client *Client) terminateCalls(err error) { method send (line 104) | func (client *Client) send(call *Call) { method receive (line 134) | func (client *Client) receive() { method Go (line 165) | func (client *Client) Go(serviceMethod string, args, reply interface{}... method Call (line 183) | func (client *Client) Call(ctx context.Context, serviceMethod string, ... function parseOptions (line 194) | func parseOptions(opts ...*Option) (*Option, error) { function NewClient (line 210) | func NewClient(conn net.Conn, opt *Option) (client *Client, err error) { function newClientCodec (line 225) | func newClientCodec(cc codec.Codec, opt *Option) *Client { type clientResult (line 236) | type clientResult struct type newClientFunc (line 241) | type newClientFunc function dialTimeout (line 243) | func dialTimeout(f newClientFunc, network, address string, opts ...*Opti... function Dial (line 276) | func Dial(network, address string, opts ...*Option) (*Client, error) { FILE: gee-rpc/day4-timeout/client_test.go type Bar (line 11) | type Bar method Timeout (line 13) | func (b Bar) Timeout(argv int, reply *int) error { function startServer (line 18) | func startServer(addr chan string) { function TestClient_dialTimeout (line 27) | func TestClient_dialTimeout(t *testing.T) { function TestClient_Call (line 46) | func TestClient_Call(t *testing.T) { FILE: gee-rpc/day4-timeout/codec/codec.go type Header (line 7) | type Header struct type Codec (line 13) | type Codec interface type NewCodecFunc (line 20) | type NewCodecFunc type Type (line 22) | type Type constant GobType (line 25) | GobType Type = "application/gob" constant JsonType (line 26) | JsonType Type = "application/json" function init (line 31) | func init() { FILE: gee-rpc/day4-timeout/codec/gob.go type GobCodec (line 10) | type GobCodec struct method ReadHeader (line 29) | func (c *GobCodec) ReadHeader(h *Header) error { method ReadBody (line 33) | func (c *GobCodec) ReadBody(body interface{}) error { method Write (line 37) | func (c *GobCodec) Write(h *Header, body interface{}) (err error) { method Close (line 55) | func (c *GobCodec) Close() error { function NewGobCodec (line 19) | func NewGobCodec(conn io.ReadWriteCloser) Codec { FILE: gee-rpc/day4-timeout/main/main.go type Foo (line 12) | type Foo method Sum (line 16) | func (f Foo) Sum(args Args, reply *int) error { type Args (line 14) | type Args struct function startServer (line 21) | func startServer(addr chan string) { function main (line 36) | func main() { FILE: gee-rpc/day4-timeout/server.go constant MagicNumber (line 21) | MagicNumber = 0x3bef5c type Option (line 23) | type Option struct type Server (line 37) | type Server struct method ServeConn (line 51) | func (server *Server) ServeConn(conn io.ReadWriteCloser) { method serveCodec (line 73) | func (server *Server) serveCodec(cc codec.Codec, opt *Option) { method readRequestHeader (line 101) | func (server *Server) readRequestHeader(cc codec.Codec) (*codec.Header... method findService (line 112) | func (server *Server) findService(serviceMethod string) (svc *service,... method readRequest (line 132) | func (server *Server) readRequest(cc codec.Codec) (*request, error) { method sendResponse (line 157) | func (server *Server) sendResponse(cc codec.Codec, h *codec.Header, bo... method handleRequest (line 165) | func (server *Server) handleRequest(cc codec.Codec, req *request, send... method Accept (line 198) | func (server *Server) Accept(lis net.Listener) { method Register (line 219) | func (server *Server) Register(rcvr interface{}) error { function NewServer (line 42) | func NewServer() *Server { type request (line 94) | type request struct function Accept (line 211) | func Accept(lis net.Listener) { DefaultServer.Accept(lis) } function Register (line 228) | func Register(rcvr interface{}) error { return DefaultServer.Register(rc... FILE: gee-rpc/day4-timeout/service.go type methodType (line 10) | type methodType struct method NumCalls (line 17) | func (m *methodType) NumCalls() uint64 { method newArgv (line 21) | func (m *methodType) newArgv() reflect.Value { method newReplyv (line 32) | func (m *methodType) newReplyv() reflect.Value { type service (line 44) | type service struct method registerMethods (line 63) | func (s *service) registerMethods() { method call (line 87) | func (s *service) call(m *methodType, argv, replyv reflect.Value) error { function newService (line 51) | func newService(rcvr interface{}) *service { function isExportedOrBuiltinType (line 97) | func isExportedOrBuiltinType(t reflect.Type) bool { FILE: gee-rpc/day4-timeout/service_test.go type Foo (line 9) | type Foo method Sum (line 13) | func (f Foo) Sum(args Args, reply *int) error { method sum (line 19) | func (f Foo) sum(args Args, reply *int) error { type Args (line 11) | type Args struct function _assert (line 24) | func _assert(condition bool, msg string, v ...interface{}) { function TestNewService (line 30) | func TestNewService(t *testing.T) { function TestMethodType_Call (line 38) | func TestMethodType_Call(t *testing.T) { FILE: gee-rpc/day5-http-debug/client.go type Call (line 24) | type Call struct method done (line 33) | func (call *Call) done() { type Client (line 41) | type Client struct method Close (line 58) | func (client *Client) Close() error { method IsAvailable (line 69) | func (client *Client) IsAvailable() bool { method registerCall (line 75) | func (client *Client) registerCall(call *Call) (uint64, error) { method removeCall (line 87) | func (client *Client) removeCall(seq uint64) *Call { method terminateCalls (line 95) | func (client *Client) terminateCalls(err error) { method send (line 107) | func (client *Client) send(call *Call) { method receive (line 137) | func (client *Client) receive() { method Go (line 168) | func (client *Client) Go(serviceMethod string, args, reply interface{}... method Call (line 186) | func (client *Client) Call(ctx context.Context, serviceMethod string, ... function parseOptions (line 197) | func parseOptions(opts ...*Option) (*Option, error) { function NewClient (line 213) | func NewClient(conn net.Conn, opt *Option) (*Client, error) { function newClientCodec (line 229) | func newClientCodec(cc codec.Codec, opt *Option) *Client { type clientResult (line 240) | type clientResult struct type newClientFunc (line 245) | type newClientFunc function dialTimeout (line 247) | func dialTimeout(f newClientFunc, network, address string, opts ...*Opti... function Dial (line 280) | func Dial(network, address string, opts ...*Option) (*Client, error) { function NewHTTPClient (line 285) | func NewHTTPClient(conn net.Conn, opt *Option) (*Client, error) { function DialHTTP (line 302) | func DialHTTP(network, address string, opts ...*Option) (*Client, error) { function XDial (line 310) | func XDial(rpcAddr string, opts ...*Option) (*Client, error) { FILE: gee-rpc/day5-http-debug/client_test.go type Bar (line 13) | type Bar method Timeout (line 15) | func (b Bar) Timeout(argv int, reply *int) error { function startServer (line 20) | func startServer(addr chan string) { function TestClient_dialTimeout (line 29) | func TestClient_dialTimeout(t *testing.T) { function TestClient_Call (line 48) | func TestClient_Call(t *testing.T) { function TestXDial (line 71) | func TestXDial(t *testing.T) { FILE: gee-rpc/day5-http-debug/codec/codec.go type Header (line 7) | type Header struct type Codec (line 13) | type Codec interface type NewCodecFunc (line 20) | type NewCodecFunc type Type (line 22) | type Type constant GobType (line 25) | GobType Type = "application/gob" constant JsonType (line 26) | JsonType Type = "application/json" function init (line 31) | func init() { FILE: gee-rpc/day5-http-debug/codec/gob.go type GobCodec (line 10) | type GobCodec struct method ReadHeader (line 29) | func (c *GobCodec) ReadHeader(h *Header) error { method ReadBody (line 33) | func (c *GobCodec) ReadBody(body interface{}) error { method Write (line 37) | func (c *GobCodec) Write(h *Header, body interface{}) (err error) { method Close (line 55) | func (c *GobCodec) Close() error { function NewGobCodec (line 19) | func NewGobCodec(conn io.ReadWriteCloser) Codec { FILE: gee-rpc/day5-http-debug/debug.go constant debugText (line 13) | debugText = ` type debugHTTP (line 35) | type debugHTTP struct method ServeHTTP (line 45) | func (server debugHTTP) ServeHTTP(w http.ResponseWriter, req *http.Req... type debugService (line 39) | type debugService struct FILE: gee-rpc/day5-http-debug/main/main.go type Foo (line 13) | type Foo method Sum (line 17) | func (f Foo) Sum(args Args, reply *int) error { type Args (line 15) | type Args struct function startServer (line 22) | func startServer(addrCh chan string) { function call (line 31) | func call(addrCh chan string) { function main (line 53) | func main() { FILE: gee-rpc/day5-http-debug/server.go constant MagicNumber (line 22) | MagicNumber = 0x3bef5c type Option (line 24) | type Option struct type Server (line 38) | type Server struct method ServeConn (line 52) | func (server *Server) ServeConn(conn io.ReadWriteCloser) { method serveCodec (line 74) | func (server *Server) serveCodec(cc codec.Codec, opt *Option) { method readRequestHeader (line 102) | func (server *Server) readRequestHeader(cc codec.Codec) (*codec.Header... method findService (line 113) | func (server *Server) findService(serviceMethod string) (svc *service,... method readRequest (line 133) | func (server *Server) readRequest(cc codec.Codec) (*request, error) { method sendResponse (line 158) | func (server *Server) sendResponse(cc codec.Codec, h *codec.Header, bo... method handleRequest (line 166) | func (server *Server) handleRequest(cc codec.Codec, req *request, send... method Accept (line 199) | func (server *Server) Accept(lis net.Listener) { method Register (line 220) | func (server *Server) Register(rcvr interface{}) error { method ServeHTTP (line 238) | func (server *Server) ServeHTTP(w http.ResponseWriter, req *http.Reque... method HandleHTTP (line 257) | func (server *Server) HandleHTTP() { function NewServer (line 43) | func NewServer() *Server { type request (line 95) | type request struct function Accept (line 212) | func Accept(lis net.Listener) { DefaultServer.Accept(lis) } function Register (line 229) | func Register(rcvr interface{}) error { return DefaultServer.Register(rc... constant connected (line 232) | connected = "200 Connected to Gee RPC" constant defaultRPCPath (line 233) | defaultRPCPath = "/_geeprc_" constant defaultDebugPath (line 234) | defaultDebugPath = "/debug/geerpc" function HandleHTTP (line 264) | func HandleHTTP() { FILE: gee-rpc/day5-http-debug/service.go type methodType (line 10) | type methodType struct method NumCalls (line 17) | func (m *methodType) NumCalls() uint64 { method newArgv (line 21) | func (m *methodType) newArgv() reflect.Value { method newReplyv (line 32) | func (m *methodType) newReplyv() reflect.Value { type service (line 44) | type service struct method registerMethods (line 63) | func (s *service) registerMethods() { method call (line 87) | func (s *service) call(m *methodType, argv, replyv reflect.Value) error { function newService (line 51) | func newService(rcvr interface{}) *service { function isExportedOrBuiltinType (line 97) | func isExportedOrBuiltinType(t reflect.Type) bool { FILE: gee-rpc/day5-http-debug/service_test.go type Foo (line 9) | type Foo method Sum (line 13) | func (f Foo) Sum(args Args, reply *int) error { method sum (line 19) | func (f Foo) sum(args Args, reply *int) error { type Args (line 11) | type Args struct function _assert (line 24) | func _assert(condition bool, msg string, v ...interface{}) { function TestNewService (line 30) | func TestNewService(t *testing.T) { function TestMethodType_Call (line 38) | func TestMethodType_Call(t *testing.T) { FILE: gee-rpc/day6-load-balance/client.go type Call (line 24) | type Call struct method done (line 33) | func (call *Call) done() { type Client (line 41) | type Client struct method Close (line 58) | func (client *Client) Close() error { method IsAvailable (line 69) | func (client *Client) IsAvailable() bool { method registerCall (line 75) | func (client *Client) registerCall(call *Call) (uint64, error) { method removeCall (line 87) | func (client *Client) removeCall(seq uint64) *Call { method terminateCalls (line 95) | func (client *Client) terminateCalls(err error) { method send (line 107) | func (client *Client) send(call *Call) { method receive (line 137) | func (client *Client) receive() { method Go (line 168) | func (client *Client) Go(serviceMethod string, args, reply interface{}... method Call (line 186) | func (client *Client) Call(ctx context.Context, serviceMethod string, ... function parseOptions (line 197) | func parseOptions(opts ...*Option) (*Option, error) { function NewClient (line 213) | func NewClient(conn net.Conn, opt *Option) (*Client, error) { function newClientCodec (line 229) | func newClientCodec(cc codec.Codec, opt *Option) *Client { type clientResult (line 240) | type clientResult struct type newClientFunc (line 245) | type newClientFunc function dialTimeout (line 247) | func dialTimeout(f newClientFunc, network, address string, opts ...*Opti... function Dial (line 280) | func Dial(network, address string, opts ...*Option) (*Client, error) { function NewHTTPClient (line 285) | func NewHTTPClient(conn net.Conn, opt *Option) (*Client, error) { function DialHTTP (line 302) | func DialHTTP(network, address string, opts ...*Option) (*Client, error) { function XDial (line 310) | func XDial(rpcAddr string, opts ...*Option) (*Client, error) { FILE: gee-rpc/day6-load-balance/client_test.go type Bar (line 13) | type Bar method Timeout (line 15) | func (b Bar) Timeout(argv int, reply *int) error { function startServer (line 20) | func startServer(addr chan string) { function TestClient_dialTimeout (line 29) | func TestClient_dialTimeout(t *testing.T) { function TestClient_Call (line 48) | func TestClient_Call(t *testing.T) { function TestXDial (line 71) | func TestXDial(t *testing.T) { FILE: gee-rpc/day6-load-balance/codec/codec.go type Header (line 7) | type Header struct type Codec (line 13) | type Codec interface type NewCodecFunc (line 20) | type NewCodecFunc type Type (line 22) | type Type constant GobType (line 25) | GobType Type = "application/gob" constant JsonType (line 26) | JsonType Type = "application/json" function init (line 31) | func init() { FILE: gee-rpc/day6-load-balance/codec/gob.go type GobCodec (line 10) | type GobCodec struct method ReadHeader (line 29) | func (c *GobCodec) ReadHeader(h *Header) error { method ReadBody (line 33) | func (c *GobCodec) ReadBody(body interface{}) error { method Write (line 37) | func (c *GobCodec) Write(h *Header, body interface{}) (err error) { method Close (line 55) | func (c *GobCodec) Close() error { function NewGobCodec (line 19) | func NewGobCodec(conn io.ReadWriteCloser) Codec { FILE: gee-rpc/day6-load-balance/debug.go constant debugText (line 13) | debugText = ` type debugHTTP (line 35) | type debugHTTP struct method ServeHTTP (line 45) | func (server debugHTTP) ServeHTTP(w http.ResponseWriter, req *http.Req... type debugService (line 39) | type debugService struct FILE: gee-rpc/day6-load-balance/main/main.go type Foo (line 13) | type Foo method Sum (line 17) | func (f Foo) Sum(args Args, reply *int) error { method Sleep (line 22) | func (f Foo) Sleep(args Args, reply *int) error { type Args (line 15) | type Args struct function startServer (line 28) | func startServer(addrCh chan string) { function foo (line 37) | func foo(xc *xclient.XClient, ctx context.Context, typ, serviceMethod st... function call (line 53) | func call(addr1, addr2 string) { function broadcast (line 69) | func broadcast(addr1, addr2 string) { function main (line 87) | func main() { FILE: gee-rpc/day6-load-balance/server.go constant MagicNumber (line 22) | MagicNumber = 0x3bef5c type Option (line 24) | type Option struct type Server (line 38) | type Server struct method ServeConn (line 52) | func (server *Server) ServeConn(conn io.ReadWriteCloser) { method serveCodec (line 74) | func (server *Server) serveCodec(cc codec.Codec, opt *Option) { method readRequestHeader (line 102) | func (server *Server) readRequestHeader(cc codec.Codec) (*codec.Header... method findService (line 113) | func (server *Server) findService(serviceMethod string) (svc *service,... method readRequest (line 133) | func (server *Server) readRequest(cc codec.Codec) (*request, error) { method sendResponse (line 158) | func (server *Server) sendResponse(cc codec.Codec, h *codec.Header, bo... method handleRequest (line 166) | func (server *Server) handleRequest(cc codec.Codec, req *request, send... method Accept (line 199) | func (server *Server) Accept(lis net.Listener) { method Register (line 220) | func (server *Server) Register(rcvr interface{}) error { method ServeHTTP (line 238) | func (server *Server) ServeHTTP(w http.ResponseWriter, req *http.Reque... method HandleHTTP (line 257) | func (server *Server) HandleHTTP() { function NewServer (line 43) | func NewServer() *Server { type request (line 95) | type request struct function Accept (line 212) | func Accept(lis net.Listener) { DefaultServer.Accept(lis) } function Register (line 229) | func Register(rcvr interface{}) error { return DefaultServer.Register(rc... constant connected (line 232) | connected = "200 Connected to Gee RPC" constant defaultRPCPath (line 233) | defaultRPCPath = "/_geeprc_" constant defaultDebugPath (line 234) | defaultDebugPath = "/debug/geerpc" function HandleHTTP (line 264) | func HandleHTTP() { FILE: gee-rpc/day6-load-balance/service.go type methodType (line 10) | type methodType struct method NumCalls (line 17) | func (m *methodType) NumCalls() uint64 { method newArgv (line 21) | func (m *methodType) newArgv() reflect.Value { method newReplyv (line 32) | func (m *methodType) newReplyv() reflect.Value { type service (line 44) | type service struct method registerMethods (line 63) | func (s *service) registerMethods() { method call (line 87) | func (s *service) call(m *methodType, argv, replyv reflect.Value) error { function newService (line 51) | func newService(rcvr interface{}) *service { function isExportedOrBuiltinType (line 97) | func isExportedOrBuiltinType(t reflect.Type) bool { FILE: gee-rpc/day6-load-balance/service_test.go type Foo (line 9) | type Foo method Sum (line 13) | func (f Foo) Sum(args Args, reply *int) error { method sum (line 19) | func (f Foo) sum(args Args, reply *int) error { type Args (line 11) | type Args struct function _assert (line 24) | func _assert(condition bool, msg string, v ...interface{}) { function TestNewService (line 30) | func TestNewService(t *testing.T) { function TestMethodType_Call (line 38) | func TestMethodType_Call(t *testing.T) { FILE: gee-rpc/day6-load-balance/xclient/discovery.go type SelectMode (line 11) | type SelectMode constant RandomSelect (line 14) | RandomSelect SelectMode = iota constant RoundRobinSelect (line 15) | RoundRobinSelect type Discovery (line 18) | type Discovery interface type MultiServersDiscovery (line 29) | type MultiServersDiscovery struct method Refresh (line 37) | func (d *MultiServersDiscovery) Refresh() error { method Update (line 42) | func (d *MultiServersDiscovery) Update(servers []string) error { method Get (line 50) | func (d *MultiServersDiscovery) Get(mode SelectMode) (string, error) { method GetAll (line 70) | func (d *MultiServersDiscovery) GetAll() ([]string, error) { function NewMultiServerDiscovery (line 80) | func NewMultiServerDiscovery(servers []string) *MultiServersDiscovery { FILE: gee-rpc/day6-load-balance/xclient/xclient.go type XClient (line 11) | type XClient struct method Close (line 25) | func (xc *XClient) Close() error { method dial (line 36) | func (xc *XClient) dial(rpcAddr string) (*Client, error) { method call (line 56) | func (xc *XClient) call(rpcAddr string, ctx context.Context, serviceMe... method Call (line 67) | func (xc *XClient) Call(ctx context.Context, serviceMethod string, arg... method Broadcast (line 76) | func (xc *XClient) Broadcast(ctx context.Context, serviceMethod string... function NewXClient (line 21) | func NewXClient(d Discovery, mode SelectMode, opt *Option) *XClient { FILE: gee-rpc/day7-registry/client.go type Call (line 24) | type Call struct method done (line 33) | func (call *Call) done() { type Client (line 41) | type Client struct method Close (line 58) | func (client *Client) Close() error { method IsAvailable (line 69) | func (client *Client) IsAvailable() bool { method registerCall (line 75) | func (client *Client) registerCall(call *Call) (uint64, error) { method removeCall (line 87) | func (client *Client) removeCall(seq uint64) *Call { method terminateCalls (line 95) | func (client *Client) terminateCalls(err error) { method send (line 107) | func (client *Client) send(call *Call) { method receive (line 137) | func (client *Client) receive() { method Go (line 168) | func (client *Client) Go(serviceMethod string, args, reply interface{}... method Call (line 186) | func (client *Client) Call(ctx context.Context, serviceMethod string, ... function parseOptions (line 197) | func parseOptions(opts ...*Option) (*Option, error) { function NewClient (line 213) | func NewClient(conn net.Conn, opt *Option) (*Client, error) { function newClientCodec (line 229) | func newClientCodec(cc codec.Codec, opt *Option) *Client { type clientResult (line 240) | type clientResult struct type newClientFunc (line 245) | type newClientFunc function dialTimeout (line 247) | func dialTimeout(f newClientFunc, network, address string, opts ...*Opti... function Dial (line 280) | func Dial(network, address string, opts ...*Option) (*Client, error) { function NewHTTPClient (line 285) | func NewHTTPClient(conn net.Conn, opt *Option) (*Client, error) { function DialHTTP (line 302) | func DialHTTP(network, address string, opts ...*Option) (*Client, error) { function XDial (line 310) | func XDial(rpcAddr string, opts ...*Option) (*Client, error) { FILE: gee-rpc/day7-registry/client_test.go type Bar (line 13) | type Bar method Timeout (line 15) | func (b Bar) Timeout(argv int, reply *int) error { function startServer (line 20) | func startServer(addr chan string) { function TestClient_dialTimeout (line 29) | func TestClient_dialTimeout(t *testing.T) { function TestClient_Call (line 48) | func TestClient_Call(t *testing.T) { function TestXDial (line 71) | func TestXDial(t *testing.T) { FILE: gee-rpc/day7-registry/codec/codec.go type Header (line 7) | type Header struct type Codec (line 13) | type Codec interface type NewCodecFunc (line 20) | type NewCodecFunc type Type (line 22) | type Type constant GobType (line 25) | GobType Type = "application/gob" constant JsonType (line 26) | JsonType Type = "application/json" function init (line 31) | func init() { FILE: gee-rpc/day7-registry/codec/gob.go type GobCodec (line 10) | type GobCodec struct method ReadHeader (line 29) | func (c *GobCodec) ReadHeader(h *Header) error { method ReadBody (line 33) | func (c *GobCodec) ReadBody(body interface{}) error { method Write (line 37) | func (c *GobCodec) Write(h *Header, body interface{}) (err error) { method Close (line 55) | func (c *GobCodec) Close() error { function NewGobCodec (line 19) | func NewGobCodec(conn io.ReadWriteCloser) Codec { FILE: gee-rpc/day7-registry/debug.go constant debugText (line 13) | debugText = ` type debugHTTP (line 35) | type debugHTTP struct method ServeHTTP (line 45) | func (server debugHTTP) ServeHTTP(w http.ResponseWriter, req *http.Req... type debugService (line 39) | type debugService struct FILE: gee-rpc/day7-registry/main/main.go type Foo (line 15) | type Foo method Sum (line 19) | func (f Foo) Sum(args Args, reply *int) error { method Sleep (line 24) | func (f Foo) Sleep(args Args, reply *int) error { type Args (line 17) | type Args struct function startRegistry (line 30) | func startRegistry(wg *sync.WaitGroup) { function startServer (line 37) | func startServer(registryAddr string, wg *sync.WaitGroup) { function foo (line 47) | func foo(xc *xclient.XClient, ctx context.Context, typ, serviceMethod st... function call (line 63) | func call(registry string) { function broadcast (line 79) | func broadcast(registry string) { function main (line 97) | func main() { FILE: gee-rpc/day7-registry/registry/registry.go type GeeRegistry (line 15) | type GeeRegistry struct method putServer (line 41) | func (r *GeeRegistry) putServer(addr string) { method aliveServers (line 52) | func (r *GeeRegistry) aliveServers() []string { method ServeHTTP (line 68) | func (r *GeeRegistry) ServeHTTP(w http.ResponseWriter, req *http.Reque... method HandleHTTP (line 87) | func (r *GeeRegistry) HandleHTTP(registryPath string) { type ServerItem (line 21) | type ServerItem struct constant defaultPath (line 27) | defaultPath = "/_geerpc_/registry" constant defaultTimeout (line 28) | defaultTimeout = time.Minute * 5 function New (line 32) | func New(timeout time.Duration) *GeeRegistry { function HandleHTTP (line 92) | func HandleHTTP() { function Heartbeat (line 98) | func Heartbeat(registry, addr string, duration time.Duration) { function sendHeartbeat (line 115) | func sendHeartbeat(registry, addr string) error { FILE: gee-rpc/day7-registry/server.go constant MagicNumber (line 22) | MagicNumber = 0x3bef5c type Option (line 24) | type Option struct type Server (line 38) | type Server struct method ServeConn (line 52) | func (server *Server) ServeConn(conn io.ReadWriteCloser) { method serveCodec (line 74) | func (server *Server) serveCodec(cc codec.Codec, opt *Option) { method readRequestHeader (line 102) | func (server *Server) readRequestHeader(cc codec.Codec) (*codec.Header... method findService (line 113) | func (server *Server) findService(serviceMethod string) (svc *service,... method readRequest (line 133) | func (server *Server) readRequest(cc codec.Codec) (*request, error) { method sendResponse (line 158) | func (server *Server) sendResponse(cc codec.Codec, h *codec.Header, bo... method handleRequest (line 166) | func (server *Server) handleRequest(cc codec.Codec, req *request, send... method Accept (line 199) | func (server *Server) Accept(lis net.Listener) { method Register (line 220) | func (server *Server) Register(rcvr interface{}) error { method ServeHTTP (line 238) | func (server *Server) ServeHTTP(w http.ResponseWriter, req *http.Reque... method HandleHTTP (line 257) | func (server *Server) HandleHTTP() { function NewServer (line 43) | func NewServer() *Server { type request (line 95) | type request struct function Accept (line 212) | func Accept(lis net.Listener) { DefaultServer.Accept(lis) } function Register (line 229) | func Register(rcvr interface{}) error { return DefaultServer.Register(rc... constant connected (line 232) | connected = "200 Connected to Gee RPC" constant defaultRPCPath (line 233) | defaultRPCPath = "/_geeprc_" constant defaultDebugPath (line 234) | defaultDebugPath = "/debug/geerpc" function HandleHTTP (line 264) | func HandleHTTP() { FILE: gee-rpc/day7-registry/service.go type methodType (line 10) | type methodType struct method NumCalls (line 17) | func (m *methodType) NumCalls() uint64 { method newArgv (line 21) | func (m *methodType) newArgv() reflect.Value { method newReplyv (line 32) | func (m *methodType) newReplyv() reflect.Value { type service (line 44) | type service struct method registerMethods (line 63) | func (s *service) registerMethods() { method call (line 87) | func (s *service) call(m *methodType, argv, replyv reflect.Value) error { function newService (line 51) | func newService(rcvr interface{}) *service { function isExportedOrBuiltinType (line 97) | func isExportedOrBuiltinType(t reflect.Type) bool { FILE: gee-rpc/day7-registry/service_test.go type Foo (line 9) | type Foo method Sum (line 13) | func (f Foo) Sum(args Args, reply *int) error { method sum (line 19) | func (f Foo) sum(args Args, reply *int) error { type Args (line 11) | type Args struct function _assert (line 24) | func _assert(condition bool, msg string, v ...interface{}) { function TestNewService (line 30) | func TestNewService(t *testing.T) { function TestMethodType_Call (line 38) | func TestMethodType_Call(t *testing.T) { FILE: gee-rpc/day7-registry/xclient/discovery.go type SelectMode (line 11) | type SelectMode constant RandomSelect (line 14) | RandomSelect SelectMode = iota constant RoundRobinSelect (line 15) | RoundRobinSelect type Discovery (line 18) | type Discovery interface type MultiServersDiscovery (line 29) | type MultiServersDiscovery struct method Refresh (line 37) | func (d *MultiServersDiscovery) Refresh() error { method Update (line 42) | func (d *MultiServersDiscovery) Update(servers []string) error { method Get (line 50) | func (d *MultiServersDiscovery) Get(mode SelectMode) (string, error) { method GetAll (line 70) | func (d *MultiServersDiscovery) GetAll() ([]string, error) { function NewMultiServerDiscovery (line 80) | func NewMultiServerDiscovery(servers []string) *MultiServersDiscovery { FILE: gee-rpc/day7-registry/xclient/discovery_gee.go type GeeRegistryDiscovery (line 10) | type GeeRegistryDiscovery struct method Update (line 19) | func (d *GeeRegistryDiscovery) Update(servers []string) error { method Refresh (line 27) | func (d *GeeRegistryDiscovery) Refresh() error { method Get (line 50) | func (d *GeeRegistryDiscovery) Get(mode SelectMode) (string, error) { method GetAll (line 57) | func (d *GeeRegistryDiscovery) GetAll() ([]string, error) { constant defaultUpdateTimeout (line 17) | defaultUpdateTimeout = time.Second * 10 function NewGeeRegistryDiscovery (line 64) | func NewGeeRegistryDiscovery(registerAddr string, timeout time.Duration)... FILE: gee-rpc/day7-registry/xclient/xclient.go type XClient (line 11) | type XClient struct method Close (line 25) | func (xc *XClient) Close() error { method dial (line 36) | func (xc *XClient) dial(rpcAddr string) (*Client, error) { method call (line 56) | func (xc *XClient) call(rpcAddr string, ctx context.Context, serviceMe... method Call (line 67) | func (xc *XClient) Call(ctx context.Context, serviceMethod string, arg... method Broadcast (line 76) | func (xc *XClient) Broadcast(ctx context.Context, serviceMethod string... function NewXClient (line 21) | func NewXClient(d Discovery, mode SelectMode, opt *Option) *XClient { FILE: gee-web/day1-http-base/base1/main.go function main (line 15) | func main() { function indexHandler (line 22) | func indexHandler(w http.ResponseWriter, req *http.Request) { function helloHandler (line 27) | func helloHandler(w http.ResponseWriter, req *http.Request) { FILE: gee-web/day1-http-base/base2/main.go type Engine (line 18) | type Engine struct method ServeHTTP (line 20) | func (engine *Engine) ServeHTTP(w http.ResponseWriter, req *http.Reque... function main (line 33) | func main() { FILE: gee-web/day1-http-base/base3/gee/gee.go type HandlerFunc (line 10) | type HandlerFunc type Engine (line 13) | type Engine struct method addRoute (line 22) | func (engine *Engine) addRoute(method string, pattern string, handler ... method GET (line 29) | func (engine *Engine) GET(pattern string, handler HandlerFunc) { method POST (line 34) | func (engine *Engine) POST(pattern string, handler HandlerFunc) { method Run (line 39) | func (engine *Engine) Run(addr string) (err error) { method ServeHTTP (line 43) | func (engine *Engine) ServeHTTP(w http.ResponseWriter, req *http.Reque... function New (line 18) | func New() *Engine { FILE: gee-web/day1-http-base/base3/main.go function main (line 18) | func main() { FILE: gee-web/day2-context/gee/context.go type H (line 9) | type H type Context (line 11) | type Context struct method PostForm (line 31) | func (c *Context) PostForm(key string) string { method Query (line 35) | func (c *Context) Query(key string) string { method Status (line 39) | func (c *Context) Status(code int) { method SetHeader (line 44) | func (c *Context) SetHeader(key string, value string) { method String (line 48) | func (c *Context) String(code int, format string, values ...interface{... method JSON (line 54) | func (c *Context) JSON(code int, obj interface{}) { method Data (line 63) | func (c *Context) Data(code int, data []byte) { method HTML (line 68) | func (c *Context) HTML(code int, html string) { function newContext (line 22) | func newContext(w http.ResponseWriter, req *http.Request) *Context { FILE: gee-web/day2-context/gee/gee.go type HandlerFunc (line 9) | type HandlerFunc type Engine (line 12) | type Engine struct method addRoute (line 21) | func (engine *Engine) addRoute(method string, pattern string, handler ... method GET (line 27) | func (engine *Engine) GET(pattern string, handler HandlerFunc) { method POST (line 32) | func (engine *Engine) POST(pattern string, handler HandlerFunc) { method Run (line 37) | func (engine *Engine) Run(addr string) (err error) { method ServeHTTP (line 41) | func (engine *Engine) ServeHTTP(w http.ResponseWriter, req *http.Reque... function New (line 17) | func New() *Engine { FILE: gee-web/day2-context/gee/router.go type router (line 7) | type router struct method addRoute (line 15) | func (r *router) addRoute(method string, pattern string, handler Handl... method handle (line 20) | func (r *router) handle(c *Context) { function newRouter (line 11) | func newRouter() *router { FILE: gee-web/day2-context/main.go function main (line 31) | func main() { FILE: gee-web/day3-router/gee/context.go type H (line 9) | type H type Context (line 11) | type Context struct method Param (line 32) | func (c *Context) Param(key string) string { method PostForm (line 37) | func (c *Context) PostForm(key string) string { method Query (line 41) | func (c *Context) Query(key string) string { method Status (line 45) | func (c *Context) Status(code int) { method SetHeader (line 50) | func (c *Context) SetHeader(key string, value string) { method String (line 54) | func (c *Context) String(code int, format string, values ...interface{... method JSON (line 60) | func (c *Context) JSON(code int, obj interface{}) { method Data (line 69) | func (c *Context) Data(code int, data []byte) { method HTML (line 74) | func (c *Context) HTML(code int, html string) { function newContext (line 23) | func newContext(w http.ResponseWriter, req *http.Request) *Context { FILE: gee-web/day3-router/gee/gee.go type HandlerFunc (line 9) | type HandlerFunc type Engine (line 12) | type Engine struct method addRoute (line 21) | func (engine *Engine) addRoute(method string, pattern string, handler ... method GET (line 27) | func (engine *Engine) GET(pattern string, handler HandlerFunc) { method POST (line 32) | func (engine *Engine) POST(pattern string, handler HandlerFunc) { method Run (line 37) | func (engine *Engine) Run(addr string) (err error) { method ServeHTTP (line 41) | func (engine *Engine) ServeHTTP(w http.ResponseWriter, req *http.Reque... function New (line 17) | func New() *Engine { FILE: gee-web/day3-router/gee/router.go type router (line 8) | type router struct method addRoute (line 36) | func (r *router) addRoute(method string, pattern string, handler Handl... method getRoute (line 48) | func (r *router) getRoute(method string, path string) (*node, map[stri... method getRoutes (line 76) | func (r *router) getRoutes(method string) []*node { method handle (line 86) | func (r *router) handle(c *Context) { function newRouter (line 13) | func newRouter() *router { function parsePattern (line 21) | func parsePattern(pattern string) []string { FILE: gee-web/day3-router/gee/router_test.go function newTestRouter (line 9) | func newTestRouter() *router { function TestParsePattern (line 19) | func TestParsePattern(t *testing.T) { function TestGetRoute (line 28) | func TestGetRoute(t *testing.T) { function TestGetRoute2 (line 48) | func TestGetRoute2(t *testing.T) { function TestGetRoutes (line 64) | func TestGetRoutes(t *testing.T) { FILE: gee-web/day3-router/gee/trie.go type node (line 8) | type node struct method String (line 15) | func (n *node) String() string { method insert (line 19) | func (n *node) insert(pattern string, parts []string, height int) { method search (line 34) | func (n *node) search(parts []string, height int) *node { method travel (line 55) | func (n *node) travel(list *([]*node)) { method matchChild (line 64) | func (n *node) matchChild(part string) *node { method matchChildren (line 73) | func (n *node) matchChildren(part string) []*node { FILE: gee-web/day3-router/main.go function main (line 35) | func main() { FILE: gee-web/day4-group/gee/context.go type H (line 9) | type H type Context (line 11) | type Context struct method Param (line 32) | func (c *Context) Param(key string) string { method PostForm (line 37) | func (c *Context) PostForm(key string) string { method Query (line 41) | func (c *Context) Query(key string) string { method Status (line 45) | func (c *Context) Status(code int) { method SetHeader (line 50) | func (c *Context) SetHeader(key string, value string) { method String (line 54) | func (c *Context) String(code int, format string, values ...interface{... method JSON (line 60) | func (c *Context) JSON(code int, obj interface{}) { method Data (line 69) | func (c *Context) Data(code int, data []byte) { method HTML (line 74) | func (c *Context) HTML(code int, html string) { function newContext (line 23) | func newContext(w http.ResponseWriter, req *http.Request) *Context { FILE: gee-web/day4-group/gee/gee.go type HandlerFunc (line 9) | type HandlerFunc type RouterGroup (line 13) | type RouterGroup struct method Group (line 37) | func (group *RouterGroup) Group(prefix string) *RouterGroup { method addRoute (line 48) | func (group *RouterGroup) addRoute(method string, comp string, handler... method GET (line 55) | func (group *RouterGroup) GET(pattern string, handler HandlerFunc) { method POST (line 60) | func (group *RouterGroup) POST(pattern string, handler HandlerFunc) { type Engine (line 20) | type Engine struct method Run (line 65) | func (engine *Engine) Run(addr string) (err error) { method ServeHTTP (line 69) | func (engine *Engine) ServeHTTP(w http.ResponseWriter, req *http.Reque... function New (line 28) | func New() *Engine { FILE: gee-web/day4-group/gee/gee_test.go function TestNestedGroup (line 5) | func TestNestedGroup(t *testing.T) { FILE: gee-web/day4-group/gee/router.go type router (line 8) | type router struct method addRoute (line 36) | func (r *router) addRoute(method string, pattern string, handler Handl... method getRoute (line 48) | func (r *router) getRoute(method string, path string) (*node, map[stri... method getRoutes (line 76) | func (r *router) getRoutes(method string) []*node { method handle (line 86) | func (r *router) handle(c *Context) { function newRouter (line 13) | func newRouter() *router { function parsePattern (line 21) | func parsePattern(pattern string) []string { FILE: gee-web/day4-group/gee/router_test.go function newTestRouter (line 9) | func newTestRouter() *router { function TestParsePattern (line 19) | func TestParsePattern(t *testing.T) { function TestGetRoute (line 28) | func TestGetRoute(t *testing.T) { function TestGetRoute2 (line 48) | func TestGetRoute2(t *testing.T) { function TestGetRoutes (line 64) | func TestGetRoutes(t *testing.T) { FILE: gee-web/day4-group/gee/trie.go type node (line 8) | type node struct method String (line 15) | func (n *node) String() string { method insert (line 19) | func (n *node) insert(pattern string, parts []string, height int) { method search (line 34) | func (n *node) search(parts []string, height int) *node { method travel (line 55) | func (n *node) travel(list *([]*node)) { method matchChild (line 64) | func (n *node) matchChild(part string) *node { method matchChildren (line 73) | func (n *node) matchChildren(part string) []*node { FILE: gee-web/day4-group/main.go function main (line 43) | func main() { FILE: gee-web/day5-middleware/gee/context.go type H (line 9) | type H type Context (line 11) | type Context struct method Next (line 36) | func (c *Context) Next() { method Fail (line 44) | func (c *Context) Fail(code int, err string) { method Param (line 49) | func (c *Context) Param(key string) string { method PostForm (line 54) | func (c *Context) PostForm(key string) string { method Query (line 58) | func (c *Context) Query(key string) string { method Status (line 62) | func (c *Context) Status(code int) { method SetHeader (line 67) | func (c *Context) SetHeader(key string, value string) { method String (line 71) | func (c *Context) String(code int, format string, values ...interface{... method JSON (line 77) | func (c *Context) JSON(code int, obj interface{}) { method Data (line 86) | func (c *Context) Data(code int, data []byte) { method HTML (line 91) | func (c *Context) HTML(code int, html string) { function newContext (line 26) | func newContext(w http.ResponseWriter, req *http.Request) *Context { FILE: gee-web/day5-middleware/gee/gee.go type HandlerFunc (line 10) | type HandlerFunc type RouterGroup (line 14) | type RouterGroup struct method Group (line 38) | func (group *RouterGroup) Group(prefix string) *RouterGroup { method Use (line 50) | func (group *RouterGroup) Use(middlewares ...HandlerFunc) { method addRoute (line 54) | func (group *RouterGroup) addRoute(method string, comp string, handler... method GET (line 61) | func (group *RouterGroup) GET(pattern string, handler HandlerFunc) { method POST (line 66) | func (group *RouterGroup) POST(pattern string, handler HandlerFunc) { type Engine (line 21) | type Engine struct method Run (line 71) | func (engine *Engine) Run(addr string) (err error) { method ServeHTTP (line 75) | func (engine *Engine) ServeHTTP(w http.ResponseWriter, req *http.Reque... function New (line 29) | func New() *Engine { FILE: gee-web/day5-middleware/gee/gee_test.go function TestNestedGroup (line 5) | func TestNestedGroup(t *testing.T) { FILE: gee-web/day5-middleware/gee/logger.go function Logger (line 8) | func Logger() HandlerFunc { FILE: gee-web/day5-middleware/gee/router.go type router (line 8) | type router struct method addRoute (line 36) | func (r *router) addRoute(method string, pattern string, handler Handl... method getRoute (line 48) | func (r *router) getRoute(method string, path string) (*node, map[stri... method getRoutes (line 76) | func (r *router) getRoutes(method string) []*node { method handle (line 86) | func (r *router) handle(c *Context) { function newRouter (line 13) | func newRouter() *router { function parsePattern (line 21) | func parsePattern(pattern string) []string { FILE: gee-web/day5-middleware/gee/router_test.go function newTestRouter (line 9) | func newTestRouter() *router { function TestParsePattern (line 19) | func TestParsePattern(t *testing.T) { function TestGetRoute (line 28) | func TestGetRoute(t *testing.T) { function TestGetRoute2 (line 48) | func TestGetRoute2(t *testing.T) { function TestGetRoutes (line 64) | func TestGetRoutes(t *testing.T) { FILE: gee-web/day5-middleware/gee/trie.go type node (line 8) | type node struct method String (line 15) | func (n *node) String() string { method insert (line 19) | func (n *node) insert(pattern string, parts []string, height int) { method search (line 34) | func (n *node) search(parts []string, height int) *node { method travel (line 55) | func (n *node) travel(list *([]*node)) { method matchChild (line 64) | func (n *node) matchChild(part string) *node { method matchChildren (line 73) | func (n *node) matchChildren(part string) []*node { FILE: gee-web/day5-middleware/main.go function onlyForV2 (line 30) | func onlyForV2() gee.HandlerFunc { function main (line 41) | func main() { FILE: gee-web/day6-template/gee/context.go type H (line 9) | type H type Context (line 11) | type Context struct method Next (line 38) | func (c *Context) Next() { method Fail (line 46) | func (c *Context) Fail(code int, err string) { method Param (line 51) | func (c *Context) Param(key string) string { method PostForm (line 56) | func (c *Context) PostForm(key string) string { method Query (line 60) | func (c *Context) Query(key string) string { method Status (line 64) | func (c *Context) Status(code int) { method SetHeader (line 69) | func (c *Context) SetHeader(key string, value string) { method String (line 73) | func (c *Context) String(code int, format string, values ...interface{... method JSON (line 79) | func (c *Context) JSON(code int, obj interface{}) { method Data (line 88) | func (c *Context) Data(code int, data []byte) { method HTML (line 95) | func (c *Context) HTML(code int, name string, data interface{}) { function newContext (line 28) | func newContext(w http.ResponseWriter, req *http.Request) *Context { FILE: gee-web/day6-template/gee/gee.go type HandlerFunc (line 12) | type HandlerFunc type RouterGroup (line 16) | type RouterGroup struct method Group (line 42) | func (group *RouterGroup) Group(prefix string) *RouterGroup { method Use (line 54) | func (group *RouterGroup) Use(middlewares ...HandlerFunc) { method addRoute (line 58) | func (group *RouterGroup) addRoute(method string, comp string, handler... method GET (line 65) | func (group *RouterGroup) GET(pattern string, handler HandlerFunc) { method POST (line 70) | func (group *RouterGroup) POST(pattern string, handler HandlerFunc) { method createStaticHandler (line 75) | func (group *RouterGroup) createStaticHandler(relativePath string, fs ... method Static (line 91) | func (group *RouterGroup) Static(relativePath string, root string) { type Engine (line 23) | type Engine struct method SetFuncMap (line 99) | func (engine *Engine) SetFuncMap(funcMap template.FuncMap) { method LoadHTMLGlob (line 103) | func (engine *Engine) LoadHTMLGlob(pattern string) { method Run (line 108) | func (engine *Engine) Run(addr string) (err error) { method ServeHTTP (line 112) | func (engine *Engine) ServeHTTP(w http.ResponseWriter, req *http.Reque... function New (line 33) | func New() *Engine { FILE: gee-web/day6-template/gee/gee_test.go function TestNestedGroup (line 5) | func TestNestedGroup(t *testing.T) { FILE: gee-web/day6-template/gee/logger.go function Logger (line 8) | func Logger() HandlerFunc { FILE: gee-web/day6-template/gee/router.go type router (line 8) | type router struct method addRoute (line 36) | func (r *router) addRoute(method string, pattern string, handler Handl... method getRoute (line 48) | func (r *router) getRoute(method string, path string) (*node, map[stri... method getRoutes (line 76) | func (r *router) getRoutes(method string) []*node { method handle (line 86) | func (r *router) handle(c *Context) { function newRouter (line 13) | func newRouter() *router { function parsePattern (line 21) | func parsePattern(pattern string) []string { FILE: gee-web/day6-template/gee/router_test.go function newTestRouter (line 9) | func newTestRouter() *router { function TestParsePattern (line 19) | func TestParsePattern(t *testing.T) { function TestGetRoute (line 28) | func TestGetRoute(t *testing.T) { function TestGetRoute2 (line 48) | func TestGetRoute2(t *testing.T) { function TestGetRoutes (line 64) | func TestGetRoutes(t *testing.T) { FILE: gee-web/day6-template/gee/trie.go type node (line 8) | type node struct method String (line 15) | func (n *node) String() string { method insert (line 19) | func (n *node) insert(pattern string, parts []string, height int) { method search (line 34) | func (n *node) search(parts []string, height int) *node { method travel (line 55) | func (n *node) travel(list *([]*node)) { method matchChild (line 64) | func (n *node) matchChild(part string) *node { method matchChildren (line 73) | func (n *node) matchChildren(part string) []*node { FILE: gee-web/day6-template/main.go type student (line 45) | type student struct function FormatAsDate (line 50) | func FormatAsDate(t time.Time) string { function main (line 55) | func main() { FILE: gee-web/day7-panic-recover/gee/context.go type H (line 9) | type H type Context (line 11) | type Context struct method Next (line 38) | func (c *Context) Next() { method Fail (line 46) | func (c *Context) Fail(code int, err string) { method Param (line 51) | func (c *Context) Param(key string) string { method PostForm (line 56) | func (c *Context) PostForm(key string) string { method Query (line 60) | func (c *Context) Query(key string) string { method Status (line 64) | func (c *Context) Status(code int) { method SetHeader (line 69) | func (c *Context) SetHeader(key string, value string) { method String (line 73) | func (c *Context) String(code int, format string, values ...interface{... method JSON (line 79) | func (c *Context) JSON(code int, obj interface{}) { method Data (line 88) | func (c *Context) Data(code int, data []byte) { method HTML (line 95) | func (c *Context) HTML(code int, name string, data interface{}) { function newContext (line 28) | func newContext(w http.ResponseWriter, req *http.Request) *Context { FILE: gee-web/day7-panic-recover/gee/gee.go type HandlerFunc (line 12) | type HandlerFunc type RouterGroup (line 16) | type RouterGroup struct method Group (line 49) | func (group *RouterGroup) Group(prefix string) *RouterGroup { method Use (line 61) | func (group *RouterGroup) Use(middlewares ...HandlerFunc) { method addRoute (line 65) | func (group *RouterGroup) addRoute(method string, comp string, handler... method GET (line 72) | func (group *RouterGroup) GET(pattern string, handler HandlerFunc) { method POST (line 77) | func (group *RouterGroup) POST(pattern string, handler HandlerFunc) { method createStaticHandler (line 82) | func (group *RouterGroup) createStaticHandler(relativePath string, fs ... method Static (line 98) | func (group *RouterGroup) Static(relativePath string, root string) { type Engine (line 23) | type Engine struct method SetFuncMap (line 106) | func (engine *Engine) SetFuncMap(funcMap template.FuncMap) { method LoadHTMLGlob (line 110) | func (engine *Engine) LoadHTMLGlob(pattern string) { method Run (line 115) | func (engine *Engine) Run(addr string) (err error) { method ServeHTTP (line 119) | func (engine *Engine) ServeHTTP(w http.ResponseWriter, req *http.Reque... function New (line 33) | func New() *Engine { function Default (line 41) | func Default() *Engine { FILE: gee-web/day7-panic-recover/gee/gee_test.go function TestNestedGroup (line 5) | func TestNestedGroup(t *testing.T) { FILE: gee-web/day7-panic-recover/gee/logger.go function Logger (line 8) | func Logger() HandlerFunc { FILE: gee-web/day7-panic-recover/gee/recovery.go function trace (line 12) | func trace(message string) string { function Recovery (line 26) | func Recovery() HandlerFunc { FILE: gee-web/day7-panic-recover/gee/router.go type router (line 8) | type router struct method addRoute (line 36) | func (r *router) addRoute(method string, pattern string, handler Handl... method getRoute (line 48) | func (r *router) getRoute(method string, path string) (*node, map[stri... method getRoutes (line 76) | func (r *router) getRoutes(method string) []*node { method handle (line 86) | func (r *router) handle(c *Context) { function newRouter (line 13) | func newRouter() *router { function parsePattern (line 21) | func parsePattern(pattern string) []string { FILE: gee-web/day7-panic-recover/gee/router_test.go function newTestRouter (line 9) | func newTestRouter() *router { function TestParsePattern (line 19) | func TestParsePattern(t *testing.T) { function TestGetRoute (line 28) | func TestGetRoute(t *testing.T) { function TestGetRoute2 (line 48) | func TestGetRoute2(t *testing.T) { function TestGetRoutes (line 64) | func TestGetRoutes(t *testing.T) { FILE: gee-web/day7-panic-recover/gee/trie.go type node (line 8) | type node struct method String (line 15) | func (n *node) String() string { method insert (line 19) | func (n *node) insert(pattern string, parts []string, height int) { method search (line 34) | func (n *node) search(parts []string, height int) *node { method travel (line 55) | func (n *node) travel(list *([]*node)) { method matchChild (line 64) | func (n *node) matchChild(part string) *node { method matchChildren (line 73) | func (n *node) matchChildren(part string) []*node { FILE: gee-web/day7-panic-recover/main.go function main (line 41) | func main() {