SYMBOL INDEX (643 symbols across 56 files) FILE: auth/casbin/casbin.go type Authorizer (line 13) | type Authorizer struct method init (line 53) | func (a *Authorizer) init(opts ...AuthorizerOption) { method GetUid (line 62) | func (a *Authorizer) GetUid(r *http.Request) (string, bool) { method GetDomain (line 68) | func (a *Authorizer) GetDomain(r *http.Request) (string, bool) { method CheckPermission (line 75) | func (a *Authorizer) CheckPermission(r *http.Request) bool { method RequirePermission (line 101) | func (a *Authorizer) RequirePermission(writer http.ResponseWriter) { type AuthorizerOption (line 19) | type AuthorizerOption function WithUidField (line 23) | func WithUidField(uidField string) AuthorizerOption { function WithDomain (line 30) | func WithDomain(domain string) AuthorizerOption { function NewAuthorizer (line 37) | func NewAuthorizer(e *casbin.Enforcer, opts ...AuthorizerOption) func(ht... FILE: auth/casbin/casbin_test.go function testAuthWithUsernameRequest (line 13) | func testAuthWithUsernameRequest(t *testing.T, router http.Handler, user... function testDomainAuthWithUsernameRequest (line 23) | func testDomainAuthWithUsernameRequest(t *testing.T, router http.Handler... function TestBasic (line 35) | func TestBasic(t *testing.T) { function TestBasicDomain (line 53) | func TestBasicDomain(t *testing.T) { function TestPathWildcard (line 73) | func TestPathWildcard(t *testing.T) { function TestRBAC (line 101) | func TestRBAC(t *testing.T) { function TestUsernameNotFounded (line 136) | func TestUsernameNotFounded(t *testing.T) { FILE: configcenter/apollo/apollo.go type ApolloConf (line 18) | type ApolloConf struct method Validate (line 88) | func (c ApolloConf) Validate() error { type apolloSubscriber (line 33) | type apolloSubscriber struct method AddListener (line 99) | func (s *apolloSubscriber) AddListener(listener func()) error { method Value (line 107) | func (s *apolloSubscriber) Value() (string, error) { method OnChange (line 115) | func (s *apolloSubscriber) OnChange(event *storage.ChangeEvent) { method OnNewestChange (line 121) | func (s *apolloSubscriber) OnNewestChange(event *storage.FullChangeEve... method handleConfigChange (line 126) | func (s *apolloSubscriber) handleConfigChange() { method loadValue (line 142) | func (s *apolloSubscriber) loadValue() error { method getAllContent (line 170) | func (s *apolloSubscriber) getAllContent() (string, error) { function MustNewApolloSubscriber (line 51) | func MustNewApolloSubscriber(conf ApolloConf) subscriber.Subscriber { function NewApolloSubscriber (line 58) | func NewApolloSubscriber(conf ApolloConf) (subscriber.Subscriber, error) { function buildApolloConfig (line 208) | func buildApolloConfig(conf ApolloConf) *config.AppConfig { function toString (line 233) | func toString(v interface{}) string { FILE: configcenter/apollo/apollo_integration_test.go type mockApolloClient (line 17) | type mockApolloClient struct method GetConfigCache (line 29) | func (m *mockApolloClient) GetConfigCache(namespace string) agcache.Ca... method GetDefaultConfigCache (line 33) | func (m *mockApolloClient) GetDefaultConfigCache() agcache.CacheInterf... method GetApolloConfigCache (line 37) | func (m *mockApolloClient) GetApolloConfigCache() agcache.CacheInterfa... method GetValue (line 41) | func (m *mockApolloClient) GetValue(key string) string { method GetStringValue (line 52) | func (m *mockApolloClient) GetStringValue(key string, defaultValue str... method GetIntValue (line 60) | func (m *mockApolloClient) GetIntValue(key string, defaultValue int) i... method GetFloatValue (line 64) | func (m *mockApolloClient) GetFloatValue(key string, defaultValue floa... method GetBoolValue (line 68) | func (m *mockApolloClient) GetBoolValue(key string, defaultValue bool)... method GetConfig (line 72) | func (m *mockApolloClient) GetConfig(namespace string) *storage.Config { method GetConfigAndInit (line 76) | func (m *mockApolloClient) GetConfigAndInit(namespace string) *storage... method GetStringSliceValue (line 80) | func (m *mockApolloClient) GetStringSliceValue(key string, defaultValu... method GetIntSliceValue (line 84) | func (m *mockApolloClient) GetIntSliceValue(key string, defaultValue [... method AddChangeListener (line 88) | func (m *mockApolloClient) AddChangeListener(listener storage.ChangeLi... method RemoveChangeListener (line 92) | func (m *mockApolloClient) RemoveChangeListener(listener storage.Chang... method GetChangeListeners (line 96) | func (m *mockApolloClient) GetChangeListeners() *list.List { method UseEventDispatch (line 100) | func (m *mockApolloClient) UseEventDispatch() { method Close (line 104) | func (m *mockApolloClient) Close() { function newMockApolloClient (line 22) | func newMockApolloClient() *mockApolloClient { type mockCache (line 109) | type mockCache struct method Set (line 120) | func (m *mockCache) Set(key string, value interface{}, expireSeconds i... method EntryCount (line 127) | func (m *mockCache) EntryCount() int64 { method Get (line 133) | func (m *mockCache) Get(key string) (interface{}, error) { method Del (line 143) | func (m *mockCache) Del(key string) bool { method Range (line 153) | func (m *mockCache) Range(f func(key, value interface{}) bool) { method Clear (line 163) | func (m *mockCache) Clear() { function newMockCache (line 114) | func newMockCache() *mockCache { function TestApolloSubscriber_LoadValue_JSON (line 170) | func TestApolloSubscriber_LoadValue_JSON(t *testing.T) { function TestApolloSubscriber_LoadValue_SpecificKey (line 199) | func TestApolloSubscriber_LoadValue_SpecificKey(t *testing.T) { function TestApolloSubscriber_LoadValue_KeyNotFound (line 221) | func TestApolloSubscriber_LoadValue_KeyNotFound(t *testing.T) { function TestApolloSubscriber_HotReload (line 238) | func TestApolloSubscriber_HotReload(t *testing.T) { function TestApolloSubscriber_MultipleListeners (line 289) | func TestApolloSubscriber_MultipleListeners(t *testing.T) { function TestApolloSubscriber_PropertiesFormat (line 328) | func TestApolloSubscriber_PropertiesFormat(t *testing.T) { function TestApolloSubscriber_ConcurrentAccess (line 355) | func TestApolloSubscriber_ConcurrentAccess(t *testing.T) { FILE: configcenter/apollo/apollo_test.go function TestApolloConf_Validate (line 9) | func TestApolloConf_Validate(t *testing.T) { function TestBuildApolloConfig (line 56) | func TestBuildApolloConfig(t *testing.T) { function TestBuildApolloConfig_Defaults (line 81) | func TestBuildApolloConfig_Defaults(t *testing.T) { function TestToString (line 95) | func TestToString(t *testing.T) { function TestBuildApolloConfig_IPOverride (line 146) | func TestBuildApolloConfig_IPOverride(t *testing.T) { function TestBuildApolloConfig_MetaAddrAsDefault (line 198) | func TestBuildApolloConfig_MetaAddrAsDefault(t *testing.T) { FILE: configcenter/apollo/examples/main.go type AppConfig (line 12) | type AppConfig struct function main (line 23) | func main() { function exampleSpecificKey (line 72) | func exampleSpecificKey() { function examplePropertiesFormat (line 95) | func examplePropertiesFormat() { type ServiceConfig (line 117) | type ServiceConfig struct method UpdateConfig (line 121) | func (sc *ServiceConfig) UpdateConfig(newConfig AppConfig) { function exampleServiceIntegration (line 127) | func exampleServiceIntegration() { FILE: handler/etag.go type ETagMiddleware (line 15) | type ETagMiddleware struct method Handle (line 23) | func (m *ETagMiddleware) Handle(h http.HandlerFunc) http.HandlerFunc { function NewETagMiddleware (line 19) | func NewETagMiddleware(weak bool) *ETagMiddleware { type hashWriter (line 57) | type hashWriter struct method Header (line 65) | func (hw hashWriter) Header() http.Header { method WriteHeader (line 69) | func (hw *hashWriter) WriteHeader(status int) { method Write (line 73) | func (hw *hashWriter) Write(b []byte) (int, error) { function writeRaw (line 86) | func writeRaw(res http.ResponseWriter, hw hashWriter) { function IsFresh (line 92) | func IsFresh(reqHeader http.Header, resHeader http.Header) bool { function trimTags (line 134) | func trimTags(tags []string) []string { function checkEtagNoneMatch (line 144) | func checkEtagNoneMatch(etagsToNoneMatch []string, etag string) bool { function checkEtagMatch (line 154) | func checkEtagMatch(etagsToMatch []string, etag string) bool { function checkModifedMatch (line 174) | func checkModifedMatch(lastModified, ifModifiedSince string) bool { function checkUnmodifedMatch (line 182) | func checkUnmodifedMatch(lastModified, ifUnmodifiedSince string) bool { function parseTimePairs (line 190) | func parseTimePairs(s1, s2 string) (t1 time.Time, t2 time.Time, ok bool) { FILE: handler/etag_test.go type EmptyEtagSuite (line 18) | type EmptyEtagSuite struct method SetupTest (line 24) | func (s *EmptyEtagSuite) SetupTest() { method TestNoEtag (line 31) | func (s *EmptyEtagSuite) TestNoEtag() { function TestEmptyEtag (line 39) | func TestEmptyEtag(t *testing.T) { type EtagSuite (line 43) | type EtagSuite struct method SetupTest (line 50) | func (s *EtagSuite) SetupTest() { method TestEtagExists (line 62) | func (s EtagSuite) TestEtagExists() { method TestWeakEtagExists (line 74) | func (s EtagSuite) TestWeakEtagExists() { method TestMatch (line 86) | func (s EtagSuite) TestMatch() { function TestEtag (line 99) | func TestEtag(t *testing.T) { function emptyHandlerFunc (line 103) | func emptyHandlerFunc(res http.ResponseWriter, req *http.Request) { function handlerFunc (line 109) | func handlerFunc(res http.ResponseWriter, req *http.Request) { type FreshSuite (line 115) | type FreshSuite struct method SetupTest (line 122) | func (s *FreshSuite) SetupTest() { method TestNoCache (line 127) | func (s FreshSuite) TestNoCache() { method TestEtagEmpty (line 134) | func (s FreshSuite) TestEtagEmpty() { method TestEtagMatch (line 138) | func (s FreshSuite) TestEtagMatch() { method TestEtagMismatch (line 145) | func (s FreshSuite) TestEtagMismatch() { method TestEtagMissing (line 152) | func (s FreshSuite) TestEtagMissing() { method TestWeakEtagMatch (line 158) | func (s FreshSuite) TestWeakEtagMatch() { method TestEtagStrongMatch (line 165) | func (s FreshSuite) TestEtagStrongMatch() { method TestEtagIfMatch (line 172) | func (s FreshSuite) TestEtagIfMatch() { method TestWeakEtagIfMatch (line 179) | func (s FreshSuite) TestWeakEtagIfMatch() { method TestStarEtagIfMatch (line 186) | func (s FreshSuite) TestStarEtagIfMatch() { method TestWeakEtagIfMatchMatched (line 193) | func (s FreshSuite) TestWeakEtagIfMatchMatched() { method TestEtagIfMatchMatched (line 200) | func (s FreshSuite) TestEtagIfMatchMatched() { method TestStaleOnEtagWeakMatch (line 207) | func (s FreshSuite) TestStaleOnEtagWeakMatch() { method TestEtagAsterisk (line 214) | func (s FreshSuite) TestEtagAsterisk() { method TestModifiedFresh (line 221) | func (s FreshSuite) TestModifiedFresh() { method TestModifiedStale (line 228) | func (s FreshSuite) TestModifiedStale() { method TestUnmodifiedFresh (line 235) | func (s FreshSuite) TestUnmodifiedFresh() { method TestUnmodifiedStale (line 242) | func (s FreshSuite) TestUnmodifiedStale() { method TestEmptyLastModified (line 249) | func (s FreshSuite) TestEmptyLastModified() { method TestBoshAndModifiedFresh (line 255) | func (s FreshSuite) TestBoshAndModifiedFresh() { method TestBoshAndETagFresh (line 265) | func (s FreshSuite) TestBoshAndETagFresh() { method TestBoshFresh (line 275) | func (s FreshSuite) TestBoshFresh() { method TestBoshStale (line 285) | func (s FreshSuite) TestBoshStale() { function TestFresh (line 295) | func TestFresh(t *testing.T) { function getFormattedTime (line 299) | func getFormattedTime(d time.Duration) string { FILE: handler/header_types.go constant HeaderAccept (line 7) | HeaderAccept = "Accept" constant HeaderAcceptCharset (line 8) | HeaderAcceptCharset = "Accept-Charset" constant HeaderAcceptEncoding (line 9) | HeaderAcceptEncoding = "Accept-Encoding" constant HeaderAcceptLanguage (line 10) | HeaderAcceptLanguage = "Accept-Language" constant HeaderAuthorization (line 11) | HeaderAuthorization = "Authorization" constant HeaderCacheControl (line 12) | HeaderCacheControl = "Cache-Control" constant HeaderContentLength (line 13) | HeaderContentLength = "Content-Length" constant HeaderContentMD5 (line 14) | HeaderContentMD5 = "Content-MD5" constant HeaderContentType (line 15) | HeaderContentType = "Content-Type" constant HeaderDoNotTrack (line 16) | HeaderDoNotTrack = "DNT" constant HeaderIfMatch (line 17) | HeaderIfMatch = "If-Match" constant HeaderIfModifiedSince (line 18) | HeaderIfModifiedSince = "If-Modified-Since" constant HeaderIfNoneMatch (line 19) | HeaderIfNoneMatch = "If-None-Match" constant HeaderIfRange (line 20) | HeaderIfRange = "If-Range" constant HeaderIfUnmodifiedSince (line 21) | HeaderIfUnmodifiedSince = "If-Unmodified-Since" constant HeaderMaxForwards (line 22) | HeaderMaxForwards = "Max-Forwards" constant HeaderProxyAuthorization (line 23) | HeaderProxyAuthorization = "Proxy-Authorization" constant HeaderPragma (line 24) | HeaderPragma = "Pragma" constant HeaderRange (line 25) | HeaderRange = "Range" constant HeaderReferer (line 26) | HeaderReferer = "Referer" constant HeaderUserAgent (line 27) | HeaderUserAgent = "User-Agent" constant HeaderTE (line 28) | HeaderTE = "TE" constant HeaderVia (line 29) | HeaderVia = "Via" constant HeaderWarning (line 30) | HeaderWarning = "Warning" constant HeaderCookie (line 31) | HeaderCookie = "Cookie" constant HeaderOrigin (line 32) | HeaderOrigin = "Origin" constant HeaderAcceptDatetime (line 33) | HeaderAcceptDatetime = "Accept-Datetime" constant HeaderXRequestedWith (line 34) | HeaderXRequestedWith = "X-Requested-With" constant HeaderAccessControlAllowOrigin (line 35) | HeaderAccessControlAllowOrigin = "Access-Control-Allow-Origin" constant HeaderAccessControlAllowMethods (line 36) | HeaderAccessControlAllowMethods = "Access-Control-Allow-Methods" constant HeaderAccessControlAllowHeaders (line 37) | HeaderAccessControlAllowHeaders = "Access-Control-Allow-Headers" constant HeaderAccessControlAllowCredentials (line 38) | HeaderAccessControlAllowCredentials = "Access-Control-Allow-Credentials" constant HeaderAccessControlExposeHeaders (line 39) | HeaderAccessControlExposeHeaders = "Access-Control-Expose-Headers" constant HeaderAccessControlMaxAge (line 40) | HeaderAccessControlMaxAge = "Access-Control-Max-Age" constant HeaderAccessControlRequestMethod (line 41) | HeaderAccessControlRequestMethod = "Access-Control-Request-Method" constant HeaderAccessControlRequestHeaders (line 42) | HeaderAccessControlRequestHeaders = "Access-Control-Request-Headers" constant HeaderAcceptPatch (line 43) | HeaderAcceptPatch = "Accept-Patch" constant HeaderAcceptRanges (line 44) | HeaderAcceptRanges = "Accept-Ranges" constant HeaderAllow (line 45) | HeaderAllow = "Allow" constant HeaderContentEncoding (line 46) | HeaderContentEncoding = "Content-Encoding" constant HeaderContentLanguage (line 47) | HeaderContentLanguage = "Content-Language" constant HeaderContentLocation (line 48) | HeaderContentLocation = "Content-Location" constant HeaderContentDisposition (line 49) | HeaderContentDisposition = "Content-Disposition" constant HeaderContentRange (line 50) | HeaderContentRange = "Content-Range" constant HeaderETag (line 51) | HeaderETag = "ETag" constant HeaderExpires (line 52) | HeaderExpires = "Expires" constant HeaderLastModified (line 53) | HeaderLastModified = "Last-Modified" constant HeaderLink (line 54) | HeaderLink = "Link" constant HeaderLocation (line 55) | HeaderLocation = "Location" constant HeaderP3P (line 56) | HeaderP3P = "P3P" constant HeaderProxyAuthenticate (line 57) | HeaderProxyAuthenticate = "Proxy-Authenticate" constant HeaderRefresh (line 58) | HeaderRefresh = "Refresh" constant HeaderRetryAfter (line 59) | HeaderRetryAfter = "Retry-After" constant HeaderServer (line 60) | HeaderServer = "Server" constant HeaderSetCookie (line 61) | HeaderSetCookie = "Set-Cookie" constant HeaderStrictTransportSecurity (line 62) | HeaderStrictTransportSecurity = "Strict-Transport-Security" constant HeaderTransferEncoding (line 63) | HeaderTransferEncoding = "Transfer-Encoding" constant HeaderUpgrade (line 64) | HeaderUpgrade = "Upgrade" constant HeaderVary (line 65) | HeaderVary = "Vary" constant HeaderWWWAuthenticate (line 66) | HeaderWWWAuthenticate = "WWW-Authenticate" constant HeaderXFrameOptions (line 69) | HeaderXFrameOptions = "X-Frame-Options" constant HeaderXXSSProtection (line 70) | HeaderXXSSProtection = "X-XSS-Protection" constant HeaderContentSecurityPolicy (line 71) | HeaderContentSecurityPolicy = "Content-Security-Policy" constant HeaderXContentSecurityPolicy (line 72) | HeaderXContentSecurityPolicy = "X-Content-Security-Policy" constant HeaderXWebKitCSP (line 73) | HeaderXWebKitCSP = "X-WebKit-CSP" constant HeaderXContentTypeOptions (line 74) | HeaderXContentTypeOptions = "X-Content-Type-Options" constant HeaderXPoweredBy (line 75) | HeaderXPoweredBy = "X-Powered-By" constant HeaderXUACompatible (line 76) | HeaderXUACompatible = "X-UA-Compatible" constant HeaderXForwardedProto (line 77) | HeaderXForwardedProto = "X-Forwarded-Proto" constant HeaderXHTTPMethodOverride (line 78) | HeaderXHTTPMethodOverride = "X-HTTP-Method-Override" constant HeaderXForwardedFor (line 79) | HeaderXForwardedFor = "X-Forwarded-For" constant HeaderXRealIP (line 80) | HeaderXRealIP = "X-Real-IP" constant HeaderXCSRFToken (line 81) | HeaderXCSRFToken = "X-CSRF-Token" constant HeaderXRatelimitLimit (line 82) | HeaderXRatelimitLimit = "X-Ratelimit-Limit" constant HeaderXRatelimitRemaining (line 83) | HeaderXRatelimitRemaining = "X-Ratelimit-Remaining" constant HeaderXRatelimitReset (line 84) | HeaderXRatelimitReset = "X-Ratelimit-Reset" constant HeaderXForwardedPrefix (line 85) | HeaderXForwardedPrefix = "X-Forwarded-Prefix" function Normalize (line 89) | func Normalize(header string) string { FILE: handler/header_types_test.go function TestNormalize (line 9) | func TestNormalize(t *testing.T) { FILE: logx/logrusx/logrus.go type LogrusWriter (line 8) | type LogrusWriter struct method Alert (line 23) | func (w *LogrusWriter) Alert(v interface{}) { method Close (line 27) | func (w *LogrusWriter) Close() error { method Debug (line 32) | func (w *LogrusWriter) Debug(v interface{}, fields ...logx.LogField) { method Error (line 36) | func (w *LogrusWriter) Error(v interface{}, fields ...logx.LogField) { method Info (line 40) | func (w *LogrusWriter) Info(v interface{}, fields ...logx.LogField) { method Severe (line 44) | func (w *LogrusWriter) Severe(v interface{}) { method Slow (line 48) | func (w *LogrusWriter) Slow(v interface{}, fields ...logx.LogField) { method Stack (line 52) | func (w *LogrusWriter) Stack(v interface{}) { method Stat (line 56) | func (w *LogrusWriter) Stat(v interface{}, fields ...logx.LogField) { function NewLogrusWriter (line 12) | func NewLogrusWriter(opts ...func(logger *logrus.Logger)) logx.Writer { function toLogrusFields (line 60) | func toLogrusFields(fields ...logx.LogField) logrus.Fields { FILE: logx/zapx/zap.go constant callerSkipOffset (line 10) | callerSkipOffset = 3 type ZapWriter (line 12) | type ZapWriter struct method Alert (line 28) | func (w *ZapWriter) Alert(v interface{}) { method Close (line 32) | func (w *ZapWriter) Close() error { method Debug (line 36) | func (w *ZapWriter) Debug(v interface{}, fields ...logx.LogField) { method Error (line 40) | func (w *ZapWriter) Error(v interface{}, fields ...logx.LogField) { method Info (line 44) | func (w *ZapWriter) Info(v interface{}, fields ...logx.LogField) { method Severe (line 48) | func (w *ZapWriter) Severe(v interface{}) { method Slow (line 52) | func (w *ZapWriter) Slow(v interface{}, fields ...logx.LogField) { method Stack (line 56) | func (w *ZapWriter) Stack(v interface{}) { method Stat (line 60) | func (w *ZapWriter) Stat(v interface{}, fields ...logx.LogField) { function NewZapWriter (line 16) | func NewZapWriter(opts ...zap.Option) (logx.Writer, error) { function toZapFields (line 64) | func toZapFields(fields ...logx.LogField) []zap.Field { FILE: logx/zerologx/zerolog.go type ZeroLogWriter (line 11) | type ZeroLogWriter struct method Alert (line 20) | func (w *ZeroLogWriter) Alert(v interface{}) { method Close (line 24) | func (w *ZeroLogWriter) Close() error { method Debug (line 29) | func (w *ZeroLogWriter) Debug(v interface{}, fields ...logx.LogField) { method Error (line 33) | func (w *ZeroLogWriter) Error(v interface{}, fields ...logx.LogField) { method Info (line 37) | func (w *ZeroLogWriter) Info(v interface{}, fields ...logx.LogField) { method Severe (line 41) | func (w *ZeroLogWriter) Severe(v interface{}) { method Slow (line 45) | func (w *ZeroLogWriter) Slow(v interface{}, fields ...logx.LogField) { method Stack (line 49) | func (w *ZeroLogWriter) Stack(v interface{}) { method Stat (line 53) | func (w *ZeroLogWriter) Stat(v interface{}, fields ...logx.LogField) { function NewZeroLogWriter (line 16) | func NewZeroLogWriter(logger zerolog.Logger) logx.Writer { function toZeroLogInterface (line 57) | func toZeroLogInterface(event *zerolog.Event, fields ...logx.LogField) *... FILE: logx/zerologx/zerolog_test.go function Test_Log (line 12) | func Test_Log(t *testing.T) { FILE: rest/registry/etcd/register.go constant allEths (line 15) | allEths = "0.0.0.0" constant envPodIP (line 16) | envPodIP = "POD_IP" function RegisterRest (line 20) | func RegisterRest(etcd discov.EtcdConf, svrConf rest.RestConf) error { function figureOutListenOn (line 44) | func figureOutListenOn(listenOn string) string { FILE: router/chi/router.go type chiRouter (line 19) | type chiRouter struct method Handle (line 30) | func (pr *chiRouter) Handle(method, reqPath string, handler http.Handl... method withUrlParamsToContext (line 45) | func (pr *chiRouter) withUrlParamsToContext(r *http.Request) *http.Req... method getHandleFunc (line 59) | func (pr *chiRouter) getHandleFunc(method string) func(pattern string,... method ServeHTTP (line 80) | func (pr *chiRouter) ServeHTTP(w http.ResponseWriter, r *http.Request) { method SetNotFoundHandler (line 84) | func (pr *chiRouter) SetNotFoundHandler(handler http.Handler) { method SetNotAllowedHandler (line 90) | func (pr *chiRouter) SetNotAllowedHandler(handler http.Handler) { function NewRouter (line 24) | func NewRouter() httpx.Router { function validMethod (line 96) | func validMethod(method string) bool { FILE: router/chi/router_test.go type mockedResponseWriter (line 16) | type mockedResponseWriter struct method Header (line 20) | func (m *mockedResponseWriter) Header() http.Header { method Write (line 24) | func (m *mockedResponseWriter) Write(p []byte) (int, error) { method WriteHeader (line 28) | func (m *mockedResponseWriter) WriteHeader(code int) { function TestChiRouterNotFound (line 32) | func TestChiRouterNotFound(t *testing.T) { function TestChiRouterNotAllowed (line 47) | func TestChiRouterNotAllowed(t *testing.T) { function TestChiRouter (line 62) | func TestChiRouter(t *testing.T) { function TestParseJsonPost (line 111) | func TestParseJsonPost(t *testing.T) { function TestParseJsonPostWithIntSlice (line 143) | func TestParseJsonPostWithIntSlice(t *testing.T) { function TestParseJsonPostError (line 170) | func TestParseJsonPostError(t *testing.T) { function TestParsePath (line 198) | func TestParsePath(t *testing.T) { function TestParsePathRequired (line 223) | func TestParsePathRequired(t *testing.T) { function TestParseQuery (line 244) | func TestParseQuery(t *testing.T) { function TestParseOptional (line 269) | func TestParseOptional(t *testing.T) { function BenchmarkChiRouter (line 294) | func BenchmarkChiRouter(b *testing.B) { FILE: router/gin/config.go type config (line 12) | type config struct method options (line 17) | func (c *config) options(opts ...Option) { type Option (line 23) | type Option function WithRedirectTrailingSlash (line 25) | func WithRedirectTrailingSlash(redirectTrailingSlash bool) Option { function WithRedirectFixedPath (line 31) | func WithRedirectFixedPath(redirectFixedPath bool) Option { FILE: router/gin/router.go type ginRouter (line 12) | type ginRouter struct method Handle (line 30) | func (pr *ginRouter) Handle(method, reqPath string, handler http.Handl... method ServeHTTP (line 52) | func (pr *ginRouter) ServeHTTP(w http.ResponseWriter, r *http.Request) { method SetNotFoundHandler (line 56) | func (pr *ginRouter) SetNotFoundHandler(handler http.Handler) { method SetNotAllowedHandler (line 60) | func (pr *ginRouter) SetNotAllowedHandler(handler http.Handler) { function NewRouter (line 17) | func NewRouter(opts ...Option) httpx.Router { function validMethod (line 64) | func validMethod(method string) bool { FILE: router/gin/router_test.go type mockedResponseWriter (line 16) | type mockedResponseWriter struct method Header (line 20) | func (m *mockedResponseWriter) Header() http.Header { method Write (line 24) | func (m *mockedResponseWriter) Write(p []byte) (int, error) { method WriteHeader (line 28) | func (m *mockedResponseWriter) WriteHeader(code int) { function TestChiRouterNotFound (line 32) | func TestChiRouterNotFound(t *testing.T) { function TestChiRouterNotAllowed (line 47) | func TestChiRouterNotAllowed(t *testing.T) { function TestGinRouter (line 62) | func TestGinRouter(t *testing.T) { function TestParseJsonPost (line 112) | func TestParseJsonPost(t *testing.T) { function TestParseJsonPostWithIntSlice (line 144) | func TestParseJsonPostWithIntSlice(t *testing.T) { function TestParseJsonPostError (line 171) | func TestParseJsonPostError(t *testing.T) { function TestParsePath (line 199) | func TestParsePath(t *testing.T) { function TestParsePathRequired (line 224) | func TestParsePathRequired(t *testing.T) { function TestParseQuery (line 245) | func TestParseQuery(t *testing.T) { function TestParseOptional (line 270) | func TestParseOptional(t *testing.T) { function BenchmarkGinRouter (line 295) | func BenchmarkGinRouter(b *testing.B) { FILE: router/mux/router.go type muxRouter (line 20) | type muxRouter struct method Handle (line 30) | func (pr *muxRouter) Handle(method, reqPath string, handler http.Handl... method ServeHTTP (line 53) | func (pr *muxRouter) ServeHTTP(w http.ResponseWriter, r *http.Request) { method SetNotFoundHandler (line 57) | func (pr *muxRouter) SetNotFoundHandler(handler http.Handler) { method SetNotAllowedHandler (line 61) | func (pr *muxRouter) SetNotAllowedHandler(handler http.Handler) { function NewRouter (line 25) | func NewRouter() httpx.Router { function validMethod (line 65) | func validMethod(method string) bool { FILE: router/mux/router_test.go type mockedResponseWriter (line 15) | type mockedResponseWriter struct method Header (line 19) | func (m *mockedResponseWriter) Header() http.Header { method Write (line 23) | func (m *mockedResponseWriter) Write(p []byte) (int, error) { method WriteHeader (line 27) | func (m *mockedResponseWriter) WriteHeader(code int) { function TestMuxRouter (line 31) | func TestMuxRouter(t *testing.T) { function TestParseJsonPost (line 79) | func TestParseJsonPost(t *testing.T) { function TestParseJsonPostWithIntSlice (line 111) | func TestParseJsonPostWithIntSlice(t *testing.T) { function TestParseJsonPostError (line 140) | func TestParseJsonPostError(t *testing.T) { function TestParsePath (line 168) | func TestParsePath(t *testing.T) { function TestParsePathRequired (line 193) | func TestParsePathRequired(t *testing.T) { function TestParseQuery (line 214) | func TestParseQuery(t *testing.T) { function TestParseOptional (line 239) | func TestParseOptional(t *testing.T) { function BenchmarkMuxRouter (line 265) | func BenchmarkMuxRouter(b *testing.B) { FILE: stores/clickhouse/clickhouse.go constant clickHouseDriverName (line 9) | clickHouseDriverName = "clickhouse" function New (line 12) | func New(datasource string, opts ...sqlx.SqlOption) sqlx.SqlConn { FILE: stores/clickhouse/clickhouse_test.go function TestClickHouse (line 9) | func TestClickHouse(t *testing.T) { FILE: stores/mongo/mon/bulkinserter.go constant flushInterval (line 13) | flushInterval = time.Second constant maxBulkRows (line 14) | maxBulkRows = 1000 type ResultHandler (line 19) | type ResultHandler type BulkInserter (line 22) | type BulkInserter struct method Flush (line 51) | func (bi *BulkInserter) Flush() { method Insert (line 56) | func (bi *BulkInserter) Insert(doc any) { method SetResultHandler (line 61) | func (bi *BulkInserter) SetResultHandler(handler ResultHandler) { function NewBulkInserter (line 29) | func NewBulkInserter(coll Collection, interval ...time.Duration) (*BulkI... type dbInserter (line 67) | type dbInserter struct method AddTask (line 73) | func (in *dbInserter) AddTask(doc any) bool { method Execute (line 78) | func (in *dbInserter) Execute(objs any) { method RemoveAll (line 92) | func (in *dbInserter) RemoveAll() any { FILE: stores/mongo/mon/bulkinserter_test.go function TestBulkInserter (line 12) | func TestBulkInserter(t *testing.T) { FILE: stores/mongo/mon/clientmanager.go type ClosableClient (line 15) | type ClosableClient struct method Close (line 20) | func (cs *ClosableClient) Close() error { function Inject (line 26) | func Inject(key string, client *mongo.Client) { function getClient (line 30) | func getClient(url string, opts ...Option) (*mongo.Client, error) { FILE: stores/mongo/mon/clientmanager_test.go function init (line 10) | func init() { function TestClientManger_getClient (line 14) | func TestClientManger_getClient(t *testing.T) { FILE: stores/mongo/mon/collection.go constant defaultSlowThreshold (line 17) | defaultSlowThreshold = time.Millisecond * 500 constant spanName (line 19) | spanName = "mongo" constant duplicateKeyCode (line 20) | duplicateKeyCode = 11000 constant aggregate (line 23) | aggregate = "Aggregate" constant bulkWrite (line 24) | bulkWrite = "BulkWrite" constant countDocuments (line 25) | countDocuments = "CountDocuments" constant deleteMany (line 26) | deleteMany = "DeleteMany" constant deleteOne (line 27) | deleteOne = "DeleteOne" constant distinct (line 28) | distinct = "Distinct" constant estimatedDocumentCount (line 29) | estimatedDocumentCount = "EstimatedDocumentCount" constant find (line 30) | find = "Find" constant findOne (line 31) | findOne = "FindOne" constant findOneAndDelete (line 32) | findOneAndDelete = "FindOneAndDelete" constant findOneAndReplace (line 33) | findOneAndReplace = "FindOneAndReplace" constant findOneAndUpdate (line 34) | findOneAndUpdate = "FindOneAndUpdate" constant insertMany (line 35) | insertMany = "InsertMany" constant insertOne (line 36) | insertOne = "InsertOne" constant replaceOne (line 37) | replaceOne = "ReplaceOne" constant updateByID (line 38) | updateByID = "UpdateByID" constant updateMany (line 39) | updateMany = "UpdateMany" constant updateOne (line 40) | updateOne = "UpdateOne" type Collection (line 48) | type Collection interface type decoratedCollection (line 119) | type decoratedCollection struct method Aggregate (line 139) | func (c *decoratedCollection) Aggregate(ctx context.Context, pipeline ... method BulkWrite (line 159) | func (c *decoratedCollection) BulkWrite(ctx context.Context, models []... method CountDocuments (line 179) | func (c *decoratedCollection) CountDocuments(ctx context.Context, filt... method DeleteMany (line 199) | func (c *decoratedCollection) DeleteMany(ctx context.Context, filter any, method DeleteOne (line 219) | func (c *decoratedCollection) DeleteOne(ctx context.Context, filter any, method Distinct (line 239) | func (c *decoratedCollection) Distinct(ctx context.Context, fieldName ... method EstimatedDocumentCount (line 259) | func (c *decoratedCollection) EstimatedDocumentCount(ctx context.Context, method Find (line 279) | func (c *decoratedCollection) Find(ctx context.Context, filter any, method FindOne (line 299) | func (c *decoratedCollection) FindOne(ctx context.Context, filter any, method FindOneAndDelete (line 320) | func (c *decoratedCollection) FindOneAndDelete(ctx context.Context, fi... method FindOneAndReplace (line 341) | func (c *decoratedCollection) FindOneAndReplace(ctx context.Context, f... method FindOneAndUpdate (line 363) | func (c *decoratedCollection) FindOneAndUpdate(ctx context.Context, fi... method InsertMany (line 384) | func (c *decoratedCollection) InsertMany(ctx context.Context, document... method InsertOne (line 404) | func (c *decoratedCollection) InsertOne(ctx context.Context, document ... method ReplaceOne (line 424) | func (c *decoratedCollection) ReplaceOne(ctx context.Context, filter, ... method UpdateByID (line 444) | func (c *decoratedCollection) UpdateByID(ctx context.Context, id, upda... method UpdateMany (line 464) | func (c *decoratedCollection) UpdateMany(ctx context.Context, filter, ... method UpdateOne (line 484) | func (c *decoratedCollection) UpdateOne(ctx context.Context, filter, u... method logDuration (line 504) | func (c *decoratedCollection) logDuration(ctx context.Context, method ... method logDurationSimple (line 509) | func (c *decoratedCollection) logDurationSimple(ctx context.Context, m... type keepablePromise (line 125) | type keepablePromise struct method accept (line 514) | func (p keepablePromise) accept(err error) error { method keep (line 520) | func (p keepablePromise) keep(err error) error { function newCollection (line 131) | func newCollection(collection *mongo.Collection, brk breaker.Breaker) Co... function acceptable (line 531) | func acceptable(err error) bool { function isDupKeyError (line 541) | func isDupKeyError(err error) bool { FILE: stores/mongo/mon/collection_test.go function TestKeepPromise_accept (line 23) | func TestKeepPromise_accept(t *testing.T) { function TestKeepPromise_keep (line 33) | func TestKeepPromise_keep(t *testing.T) { function TestNewCollection (line 70) | func TestNewCollection(t *testing.T) { function TestCollection_Aggregate (line 80) | func TestCollection_Aggregate(t *testing.T) { function TestCollection_BulkWrite (line 96) | func TestCollection_BulkWrite(t *testing.T) { function TestCollection_CountDocuments (line 117) | func TestCollection_CountDocuments(t *testing.T) { function TestDecoratedCollection_DeleteMany (line 141) | func TestDecoratedCollection_DeleteMany(t *testing.T) { function TestCollection_Distinct (line 159) | func TestCollection_Distinct(t *testing.T) { function TestCollection_EstimatedDocumentCount (line 177) | func TestCollection_EstimatedDocumentCount(t *testing.T) { function TestCollection_Find (line 195) | func TestCollection_Find(t *testing.T) { function TestCollection_FindOne (line 241) | func TestCollection_FindOne(t *testing.T) { function TestCollection_FindOneAndDelete (line 283) | func TestCollection_FindOneAndDelete(t *testing.T) { function TestCollection_FindOneAndReplace (line 312) | func TestCollection_FindOneAndReplace(t *testing.T) { function TestCollection_FindOneAndUpdate (line 342) | func TestCollection_FindOneAndUpdate(t *testing.T) { function TestCollection_InsertOne (line 373) | func TestCollection_InsertOne(t *testing.T) { function TestCollection_InsertMany (line 391) | func TestCollection_InsertMany(t *testing.T) { function TestCollection_DeleteOne (line 413) | func TestCollection_DeleteOne(t *testing.T) { function TestCollection_DeleteMany (line 431) | func TestCollection_DeleteMany(t *testing.T) { function TestCollection_ReplaceOne (line 449) | func TestCollection_ReplaceOne(t *testing.T) { function TestCollection_UpdateOne (line 470) | func TestCollection_UpdateOne(t *testing.T) { function TestCollection_UpdateByID (line 490) | func TestCollection_UpdateByID(t *testing.T) { function TestCollection_UpdateMany (line 510) | func TestCollection_UpdateMany(t *testing.T) { function TestDecoratedCollection_LogDuration (line 530) | func TestDecoratedCollection_LogDuration(t *testing.T) { function TestAcceptable (line 576) | func TestAcceptable(t *testing.T) { function TestIsDupKeyError (line 607) | func TestIsDupKeyError(t *testing.T) { type mockPromise (line 626) | type mockPromise struct method Accept (line 631) | func (p *mockPromise) Accept() { method Reject (line 635) | func (p *mockPromise) Reject(reason string) { type dropBreaker (line 639) | type dropBreaker struct method Name (line 641) | func (d *dropBreaker) Name() string { method Allow (line 645) | func (d *dropBreaker) Allow() (breaker.Promise, error) { method AllowCtx (line 649) | func (d *dropBreaker) AllowCtx(_ context.Context) (breaker.Promise, er... method Do (line 653) | func (d *dropBreaker) Do(_ func() error) error { method DoCtx (line 657) | func (d *dropBreaker) DoCtx(_ context.Context, _ func() error) error { method DoWithAcceptable (line 661) | func (d *dropBreaker) DoWithAcceptable(_ func() error, _ breaker.Accep... method DoWithAcceptableCtx (line 665) | func (d *dropBreaker) DoWithAcceptableCtx(_ context.Context, _ func() ... method DoWithFallback (line 669) | func (d *dropBreaker) DoWithFallback(_ func() error, _ breaker.Fallbac... method DoWithFallbackCtx (line 673) | func (d *dropBreaker) DoWithFallbackCtx(_ context.Context, _ func() er... method DoWithFallbackAcceptable (line 677) | func (d *dropBreaker) DoWithFallbackAcceptable(_ func() error, _ break... method DoWithFallbackAcceptableCtx (line 682) | func (d *dropBreaker) DoWithFallbackAcceptableCtx(_ context.Context, _... FILE: stores/mongo/mon/model.go constant startSession (line 15) | startSession = "StartSession" constant abortTransaction (line 16) | abortTransaction = "AbortTransaction" constant commitTransaction (line 17) | commitTransaction = "CommitTransaction" constant withTransaction (line 18) | withTransaction = "WithTransaction" constant endSession (line 19) | endSession = "EndSession" type Model (line 24) | type Model struct method StartSession (line 71) | func (m *Model) StartSession(opts ...*mopt.SessionOptions) (sess mongo... method Aggregate (line 90) | func (m *Model) Aggregate(ctx context.Context, v, pipeline any, opts .... method DeleteMany (line 101) | func (m *Model) DeleteMany(ctx context.Context, filter any, opts ...*m... method DeleteOne (line 111) | func (m *Model) DeleteOne(ctx context.Context, filter any, opts ...*mo... method Find (line 121) | func (m *Model) Find(ctx context.Context, v, filter any, opts ...*mopt... method FindOne (line 132) | func (m *Model) FindOne(ctx context.Context, v, filter any, opts ...*m... method FindOneAndDelete (line 142) | func (m *Model) FindOneAndDelete(ctx context.Context, v, filter any, method FindOneAndReplace (line 153) | func (m *Model) FindOneAndReplace(ctx context.Context, v, filter, repl... method FindOneAndUpdate (line 164) | func (m *Model) FindOneAndUpdate(ctx context.Context, v, filter, updat... type wrappedSession (line 32) | type wrappedSession struct method AbortTransaction (line 175) | func (w *wrappedSession) AbortTransaction(ctx context.Context) (err er... method CommitTransaction (line 192) | func (w *wrappedSession) CommitTransaction(ctx context.Context) (err e... method WithTransaction (line 209) | func (w *wrappedSession) WithTransaction( method EndSession (line 233) | func (w *wrappedSession) EndSession(ctx context.Context) { function MustNewModel (line 40) | func MustNewModel(uri, db, collection string, opts ...Option) *Model { function NewModel (line 47) | func NewModel(uri, db, collection string, opts ...Option) (*Model, error) { function newModel (line 59) | func newModel(name string, cli *mongo.Client, coll Collection, brk break... FILE: stores/mongo/mon/model_test.go function TestModel_StartSession (line 13) | func TestModel_StartSession(t *testing.T) { function TestModel_Aggregate (line 33) | func TestModel_Aggregate(t *testing.T) { function TestModel_DeleteMany (line 68) | func TestModel_DeleteMany(t *testing.T) { function TestModel_DeleteOne (line 83) | func TestModel_DeleteOne(t *testing.T) { function TestModel_Find (line 98) | func TestModel_Find(t *testing.T) { function TestModel_FindOne (line 133) | func TestModel_FindOne(t *testing.T) { function TestModel_FindOneAndDelete (line 159) | func TestModel_FindOneAndDelete(t *testing.T) { function TestModel_FindOneAndReplace (line 176) | func TestModel_FindOneAndReplace(t *testing.T) { function TestModel_FindOneAndUpdate (line 197) | func TestModel_FindOneAndUpdate(t *testing.T) { function createModel (line 218) | func createModel(mt *mtest.T) *Model { function triggerBreaker (line 223) | func triggerBreaker(m *Model) { FILE: stores/mongo/mon/options.go constant defaultTimeout (line 13) | defaultTimeout = time.Second * 3 type Option (line 23) | type Option type TypeCodec (line 26) | type TypeCodec struct function DisableLog (line 36) | func DisableLog() { function DisableInfoLog (line 42) | func DisableInfoLog() { function SetSlowThreshold (line 47) | func SetSlowThreshold(threshold time.Duration) { function WithTimeout (line 52) | func WithTimeout(timeout time.Duration) Option { function WithTypeCodec (line 59) | func WithTypeCodec(typeCodecs ...TypeCodec) Option { function defaultTimeoutOption (line 70) | func defaultTimeoutOption() Option { FILE: stores/mongo/mon/options_test.go function TestSetSlowThreshold (line 15) | func TestSetSlowThreshold(t *testing.T) { function Test_defaultTimeoutOption (line 21) | func Test_defaultTimeoutOption(t *testing.T) { function TestWithTimeout (line 27) | func TestWithTimeout(t *testing.T) { function TestDisableLog (line 33) | func TestDisableLog(t *testing.T) { function TestDisableInfoLog (line 46) | func TestDisableInfoLog(t *testing.T) { function TestWithRegistryForTimestampRegisterType (line 59) | func TestWithRegistryForTimestampRegisterType(t *testing.T) { FILE: stores/mongo/mon/trace.go function startSpan (line 16) | func startSpan(ctx context.Context, cmd string) (context.Context, oteltr... function endSpan (line 24) | func endSpan(span oteltrace.Span, err error) { FILE: stores/mongo/mon/util.go constant mongoAddrSep (line 13) | mongoAddrSep = "," function FormatAddr (line 16) | func FormatAddr(hosts []string) string { function logDuration (line 20) | func logDuration(ctx context.Context, name, method string, startTime tim... function logDurationWithDocs (line 35) | func logDurationWithDocs(ctx context.Context, name, method string, start... FILE: stores/mongo/mon/util_test.go function TestFormatAddrs (line 13) | func TestFormatAddrs(t *testing.T) { function Test_logDuration (line 41) | func Test_logDuration(t *testing.T) { function Test_logDurationWithDoc (line 93) | func Test_logDurationWithDoc(t *testing.T) { FILE: stores/mongo/monc/cachedmodel.go type Model (line 25) | type Model struct method DelCache (line 75) | func (mm *Model) DelCache(ctx context.Context, keys ...string) error { method DeleteOne (line 80) | func (mm *Model) DeleteOne(ctx context.Context, key string, filter any, method DeleteOneNoCache (line 95) | func (mm *Model) DeleteOneNoCache(ctx context.Context, filter any, method FindOne (line 101) | func (mm *Model) FindOne(ctx context.Context, key string, v, filter any, method FindOneNoCache (line 109) | func (mm *Model) FindOneNoCache(ctx context.Context, v, filter any, method FindOneAndDelete (line 115) | func (mm *Model) FindOneAndDelete(ctx context.Context, key string, v, ... method FindOneAndDeleteNoCache (line 125) | func (mm *Model) FindOneAndDeleteNoCache(ctx context.Context, v, filte... method FindOneAndReplace (line 131) | func (mm *Model) FindOneAndReplace(ctx context.Context, key string, v,... method FindOneAndReplaceNoCache (line 141) | func (mm *Model) FindOneAndReplaceNoCache(ctx context.Context, v, filt... method FindOneAndUpdate (line 147) | func (mm *Model) FindOneAndUpdate(ctx context.Context, key string, v, ... method FindOneAndUpdateNoCache (line 157) | func (mm *Model) FindOneAndUpdateNoCache(ctx context.Context, v, filte... method GetCache (line 163) | func (mm *Model) GetCache(key string, v any) error { method InsertOne (line 168) | func (mm *Model) InsertOne(ctx context.Context, key string, document any, method InsertOneNoCache (line 183) | func (mm *Model) InsertOneNoCache(ctx context.Context, document any, method ReplaceOne (line 189) | func (mm *Model) ReplaceOne(ctx context.Context, key string, filter, r... method ReplaceOneNoCache (line 204) | func (mm *Model) ReplaceOneNoCache(ctx context.Context, filter, replac... method SetCache (line 210) | func (mm *Model) SetCache(key string, v any) error { method UpdateByID (line 215) | func (mm *Model) UpdateByID(ctx context.Context, key string, id, updat... method UpdateByIDNoCache (line 230) | func (mm *Model) UpdateByIDNoCache(ctx context.Context, id, update any, method UpdateMany (line 236) | func (mm *Model) UpdateMany(ctx context.Context, keys []string, filter... method UpdateManyNoCache (line 251) | func (mm *Model) UpdateManyNoCache(ctx context.Context, filter, update... method UpdateOne (line 257) | func (mm *Model) UpdateOne(ctx context.Context, key string, filter, up... method UpdateOneNoCache (line 272) | func (mm *Model) UpdateOneNoCache(ctx context.Context, filter, update ... function MustNewModel (line 31) | func MustNewModel(uri, db, collection string, c cache.CacheConf, opts ..... function MustNewNodeModel (line 38) | func MustNewNodeModel(uri, db, collection string, rds *redis.Redis, opts... function NewModel (line 45) | func NewModel(uri, db, collection string, conf cache.CacheConf, opts ...... function NewModelWithCache (line 51) | func NewModelWithCache(uri, db, collection string, c cache.Cache) (*Mode... function NewNodeModel (line 56) | func NewNodeModel(uri, db, collection string, rds *redis.Redis, opts ...... function newModel (line 62) | func newModel(uri, db, collection string, c cache.Cache) (*Model, error) { FILE: stores/mongo/monc/cachedmodel_test.go function TestNewModel (line 18) | func TestNewModel(t *testing.T) { function TestModel_DelCache (line 26) | func TestModel_DelCache(t *testing.T) { function TestModel_DeleteOne (line 39) | func TestModel_DeleteOne(t *testing.T) { function TestModel_DeleteOneNoCache (line 60) | func TestModel_DeleteOneNoCache(t *testing.T) { function TestModel_FindOne (line 74) | func TestModel_FindOne(t *testing.T) { function TestModel_FindOneNoCache (line 95) | func TestModel_FindOneNoCache(t *testing.T) { function TestModel_FindOneAndDelete (line 115) | func TestModel_FindOneAndDelete(t *testing.T) { function TestModel_FindOneAndDeleteNoCache (line 139) | func TestModel_FindOneAndDeleteNoCache(t *testing.T) { function TestModel_FindOneAndReplace (line 154) | func TestModel_FindOneAndReplace(t *testing.T) { function TestModel_FindOneAndReplaceNoCache (line 184) | func TestModel_FindOneAndReplaceNoCache(t *testing.T) { function TestModel_FindOneAndUpdate (line 201) | func TestModel_FindOneAndUpdate(t *testing.T) { function TestModel_FindOneAndUpdateNoCache (line 231) | func TestModel_FindOneAndUpdateNoCache(t *testing.T) { function TestModel_GetCache (line 248) | func TestModel_GetCache(t *testing.T) { function TestModel_InsertOne (line 260) | func TestModel_InsertOne(t *testing.T) { function TestModel_InsertOneNoCache (line 291) | func TestModel_InsertOneNoCache(t *testing.T) { function TestModel_ReplaceOne (line 306) | func TestModel_ReplaceOne(t *testing.T) { function TestModel_ReplaceOneNoCache (line 337) | func TestModel_ReplaceOneNoCache(t *testing.T) { function TestModel_SetCache (line 352) | func TestModel_SetCache(t *testing.T) { function TestModel_UpdateByID (line 363) | func TestModel_UpdateByID(t *testing.T) { function TestModel_UpdateByIDNoCache (line 394) | func TestModel_UpdateByIDNoCache(t *testing.T) { function TestModel_UpdateMany (line 409) | func TestModel_UpdateMany(t *testing.T) { function TestModel_UpdateManyNoCache (line 442) | func TestModel_UpdateManyNoCache(t *testing.T) { function TestModel_UpdateOne (line 457) | func TestModel_UpdateOne(t *testing.T) { function TestModel_UpdateOneNoCache (line 488) | func TestModel_UpdateOneNoCache(t *testing.T) { function createModel (line 503) | func createModel(t *testing.T, mt *mtest.T) *Model { type mockedCache (line 527) | type mockedCache struct method DelCtx (line 531) | func (m mockedCache) DelCtx(_ context.Context, _ ...string) error { FILE: zrpc/registry/consul/builder.go constant schemeName (line 13) | schemeName = "consul" type builder (line 16) | type builder struct method Build (line 18) | func (b *builder) Build(url resolver.Target, cc resolver.ClientConn, o... method Scheme (line 38) | func (b *builder) Scheme() string { FILE: zrpc/registry/consul/config.go constant allEths (line 8) | allEths = "0.0.0.0" constant envPodIP (line 9) | envPodIP = "POD_IP" constant consulTags (line 10) | consulTags = "consul_tags" type Conf (line 14) | type Conf struct method Validate (line 24) | func (c Conf) Validate() error { FILE: zrpc/registry/consul/register.go function RegisterService (line 18) | func RegisterService(listenOn string, c Conf) error { function figureOutListenOn (line 98) | func figureOutListenOn(listenOn string) string { FILE: zrpc/registry/consul/resolver.go function init (line 17) | func init() { type resolvr (line 21) | type resolvr struct method ResolveNow (line 31) | func (r *resolvr) ResolveNow(resolver.ResolveNowOptions) {} method Close (line 34) | func (r *resolvr) Close() { type consulAddr (line 25) | type consulAddr struct type servicer (line 38) | type servicer interface function watchConsulService (line 42) | func watchConsulService(ctx context.Context, s servicer, tgt target, out... function populateEndpoints (line 118) | func populateEndpoints(ctx context.Context, clientConn resolver.ClientCo... type byAddressString (line 145) | type byAddressString method Len (line 147) | func (p byAddressString) Len() int { return len(p) } method Less (line 148) | func (p byAddressString) Less(i, j int) bool { return p[i].Addr < p[j]... method Swap (line 149) | func (p byAddressString) Swap(i, j int) { p[i], p[j] = p[j], p[i] } FILE: zrpc/registry/consul/target.go type target (line 15) | type target struct method String (line 34) | func (t *target) String() string { method consulConfig (line 73) | func (t *target) consulConfig() *api.Config { function parseURL (line 39) | func parseURL(rawURL url.URL) (target, error) { FILE: zrpc/registry/consul/tests/client_test.go function TestCLient (line 12) | func TestCLient(t *testing.T) { FILE: zrpc/registry/nacos/builder.go function init (line 16) | func init() { constant schemeName (line 22) | schemeName = "nacos" type builder (line 25) | type builder struct method Build (line 27) | func (b *builder) Build(url resolver.Target, conn resolver.ClientConn,... method Scheme (line 88) | func (b *builder) Scheme() string { FILE: zrpc/registry/nacos/options.go constant allEths (line 6) | allEths = "0.0.0.0" constant envPodIP (line 7) | envPodIP = "POD_IP" type Options (line 11) | type Options struct type Option (line 24) | type Option function NewNacosConfig (line 26) | func NewNacosConfig(serviceName, listenOn string, sc []constant.ServerCo... function WithPrefix (line 43) | func WithPrefix(prefix string) Option { function WithWeight (line 49) | func WithWeight(weight float64) Option { function WithCluster (line 55) | func WithCluster(cluster string) Option { function WithGroup (line 61) | func WithGroup(group string) Option { function WithMetadata (line 67) | func WithMetadata(metadata map[string]string) Option { FILE: zrpc/registry/nacos/register.go function RegisterService (line 20) | func RegisterService(opts *Options) error { function figureOutListenOn (line 77) | func figureOutListenOn(listenOn string) string { FILE: zrpc/registry/nacos/resolver.go type resolvr (line 14) | type resolvr struct method ResolveNow (line 18) | func (r *resolvr) ResolveNow(resolver.ResolveNowOptions) {} method Close (line 21) | func (r *resolvr) Close() { type watcher (line 25) | type watcher struct method CallBackHandle (line 39) | func (nw *watcher) CallBackHandle(services []model.Instance, err error) { function newWatcher (line 31) | func newWatcher(ctx context.Context, cancel context.CancelFunc, out chan... function populateEndpoints (line 55) | func populateEndpoints(ctx context.Context, clientConn resolver.ClientCo... type byAddressString (line 77) | type byAddressString method Len (line 79) | func (p byAddressString) Len() int { return len(p) } method Less (line 80) | func (p byAddressString) Less(i, j int) bool { return p[i].Addr < p[j]... method Swap (line 81) | func (p byAddressString) Swap(i, j int) { p[i], p[j] = p[j], p[i] } FILE: zrpc/registry/nacos/target.go type target (line 13) | type target struct function parseURL (line 31) | func parseURL(rawURL url.URL) (target, error) { FILE: zrpc/registry/polaris/builder.go function init (line 21) | func init() { type builder (line 26) | type builder struct method Build (line 28) | func (b *builder) Build(url resolver.Target, conn resolver.ClientConn,... method Scheme (line 78) | func (b *builder) Scheme() string { FILE: zrpc/registry/polaris/constant.go constant schemeName (line 7) | schemeName = "polaris" FILE: zrpc/registry/polaris/options.go constant allEths (line 4) | allEths = "0.0.0.0" constant envPodIP (line 5) | envPodIP = "POD_IP" type Options (line 9) | type Options struct type Option (line 21) | type Option function NewPolarisConfig (line 23) | func NewPolarisConfig(listenOn string, opts ...Option) *Options { function WithHeartbeatInervalSec (line 40) | func WithHeartbeatInervalSec(heartbeatInervalSec int) Option { function WithWeight (line 46) | func WithWeight(weight float64) Option { function WithNamespace (line 52) | func WithNamespace(namespace string) Option { function WithServiceName (line 58) | func WithServiceName(serviceName string) Option { function WithVersion (line 64) | func WithVersion(version string) Option { function WithProtocol (line 70) | func WithProtocol(protocol string) Option { function WithMetadata (line 76) | func WithMetadata(metadata map[string]string) Option { FILE: zrpc/registry/polaris/register.go function init (line 26) | func init() { function RegisterService (line 36) | func RegisterService(opts *Options) error { function addShutdownListener (line 75) | func addShutdownListener(registerReq *api.InstanceRegisterRequest, opts ... function doHeartbeat (line 95) | func doHeartbeat(ctx context.Context, req *api.InstanceRegisterRequest, ... function figureOutListenOn (line 117) | func figureOutListenOn(listenOn string) string { FILE: zrpc/registry/polaris/resolver.go type resolvr (line 15) | type resolvr struct method ResolveNow (line 19) | func (r *resolvr) ResolveNow(resolver.ResolveNowOptions) {} method Close (line 22) | func (r *resolvr) Close() { type polarisServiceWatcher (line 26) | type polarisServiceWatcher struct method startWatch (line 36) | func (watcher *polarisServiceWatcher) startWatch(ctx context.Context, ... function newWatcher (line 30) | func newWatcher(out chan<- []string) *polarisServiceWatcher { function populateEndpoints (line 105) | func populateEndpoints(ctx context.Context, clientConn resolver.ClientCo... type byAddressString (line 127) | type byAddressString method Len (line 129) | func (p byAddressString) Len() int { return len(p) } method Less (line 130) | func (p byAddressString) Less(i, j int) bool { return p[i].Addr < p[j]... method Swap (line 131) | func (p byAddressString) Swap(i, j int) { p[i], p[j] = p[j], p[i] } FILE: zrpc/registry/polaris/target.go type target (line 13) | type target struct function parseURL (line 21) | func parseURL(u string) (target, error) {