SYMBOL INDEX (739 symbols across 93 files) FILE: app/loader/loader.go function Load (line 34) | func Load() (err error) { function loadLogger (line 77) | func loadLogger() (err error) { function loadMysql (line 93) | func loadMysql(db string) (err error) { function loadRedis (line 122) | func loadRedis(db string) (err error) { function loadRabbitMQ (line 151) | func loadRabbitMQ(service string) (err error) { function loadLock (line 164) | func loadLock() (err error) { function loadCache (line 169) | func loadCache() (err error) { function loadJaeger (line 174) | func loadJaeger() (err error) { function loadEtcd (line 188) | func loadEtcd() (err error) { function loadRegistry (line 205) | func loadRegistry() (err error) { function loadClientHTTP (line 240) | func loadClientHTTP() (err error) { FILE: app/main.go function main (line 30) | func main() { function startHTTP (line 58) | func startHTTP(port int) { function startGRPC (line 77) | func startGRPC(port int) { FILE: app/module/goods/api/conn.go function Do (line 19) | func Do(c *gin.Context) { type Data (line 65) | type Data struct function GetDataA (line 69) | func GetDataA(ctx context.Context, _data interface{}) (err error) { FILE: app/module/goods/respository/respository.go type Test (line 3) | type Test struct method TableName (line 9) | func (Test) TableName() string { FILE: app/module/goods/service/service.go type GoodsInterface (line 16) | type GoodsInterface interface type GoodsService (line 23) | type GoodsService struct method GetGoodsName (line 34) | func (gs *GoodsService) GetGoodsName(ctx context.Context, id int) (str... method CrudGoods (line 45) | func (gs *GoodsService) CrudGoods(ctx context.Context) (goods resposit... function init (line 25) | func init() { constant GOODS_NAME_KEY (line 30) | GOODS_NAME_KEY = "goods::name::" constant GOODS_PRICE_KEY (line 31) | GOODS_PRICE_KEY = "goods::price::" FILE: app/module/ping/api/ping.go function Ping (line 11) | func Ping(c *gin.Context) { function RPC (line 15) | func RPC(c *gin.Context) { FILE: app/module/test/api/test.go function Rpc (line 14) | func Rpc(c *gin.Context) { type RPC1Request (line 25) | type RPC1Request struct function Rpc1 (line 29) | func Rpc1(c *gin.Context) { function Panic (line 46) | func Panic(c *gin.Context) { FILE: app/module/test/job/grpc/job.go function Start (line 14) | func Start(ctx context.Context) (err error) { function call (line 19) | func call() { FILE: app/module/test/service/grpc/grpc.go type Server (line 12) | type Server struct method SayHello (line 16) | func (s *Server) SayHello(ctx context.Context, in *pb.HelloRequest) (*... function RegisterServer (line 20) | func RegisterServer(s *grpc.Server) { function NewService (line 24) | func NewService() serverGRPC.Register { FILE: app/module/test/service/grpc/helloworld/hello_world.pb.go constant _ (line 19) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 21) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) type HelloRequest (line 25) | type HelloRequest struct method Reset (line 33) | func (x *HelloRequest) Reset() { method String (line 42) | func (x *HelloRequest) String() string { method ProtoMessage (line 46) | func (*HelloRequest) ProtoMessage() {} method ProtoReflect (line 48) | func (x *HelloRequest) ProtoReflect() protoreflect.Message { method Descriptor (line 61) | func (*HelloRequest) Descriptor() ([]byte, []int) { method GetName (line 65) | func (x *HelloRequest) GetName() string { type HelloReply (line 73) | type HelloReply struct method Reset (line 81) | func (x *HelloReply) Reset() { method String (line 90) | func (x *HelloReply) String() string { method ProtoMessage (line 94) | func (*HelloReply) ProtoMessage() {} method ProtoReflect (line 96) | func (x *HelloReply) ProtoReflect() protoreflect.Message { method Descriptor (line 109) | func (*HelloReply) Descriptor() ([]byte, []int) { method GetMessage (line 113) | func (x *HelloReply) GetMessage() string { function file_helloworld_hello_world_proto_rawDescGZIP (line 148) | func file_helloworld_hello_world_proto_rawDescGZIP() []byte { function init (line 170) | func init() { file_helloworld_hello_world_proto_init() } function file_helloworld_hello_world_proto_init (line 171) | func file_helloworld_hello_world_proto_init() { FILE: app/module/test/service/grpc/helloworld/hello_world.pb.gw.go function request_Greeter_SayHello_0 (line 38) | func request_Greeter_SayHello_0(ctx context.Context, marshaler runtime.M... function local_request_Greeter_SayHello_0 (line 54) | func local_request_Greeter_SayHello_0(ctx context.Context, marshaler run... function RegisterGreeterHandlerServer (line 74) | func RegisterGreeterHandlerServer(ctx context.Context, mux *runtime.Serv... function RegisterGreeterHandlerFromEndpoint (line 104) | func RegisterGreeterHandlerFromEndpoint(ctx context.Context, mux *runtim... function RegisterGreeterHandler (line 129) | func RegisterGreeterHandler(ctx context.Context, mux *runtime.ServeMux, ... function RegisterGreeterHandlerClient (line 138) | func RegisterGreeterHandlerClient(ctx context.Context, mux *runtime.Serv... FILE: app/module/test/service/grpc/helloworld/hello_world_grpc.pb.go constant _ (line 15) | _ = grpc.SupportPackageIsVersion7 type GreeterClient (line 20) | type GreeterClient interface type greeterClient (line 25) | type greeterClient struct method SayHello (line 33) | func (c *greeterClient) SayHello(ctx context.Context, in *HelloRequest... function NewGreeterClient (line 29) | func NewGreeterClient(cc grpc.ClientConnInterface) GreeterClient { type GreeterServer (line 45) | type GreeterServer interface type UnimplementedGreeterServer (line 52) | type UnimplementedGreeterServer struct method SayHello (line 55) | func (UnimplementedGreeterServer) SayHello(context.Context, *HelloRequ... method mustEmbedUnimplementedGreeterServer (line 58) | func (UnimplementedGreeterServer) mustEmbedUnimplementedGreeterServer(... type UnsafeGreeterServer (line 63) | type UnsafeGreeterServer interface function RegisterGreeterServer (line 67) | func RegisterGreeterServer(s grpc.ServiceRegistrar, srv GreeterServer) { function _Greeter_SayHello_Handler (line 71) | func _Greeter_SayHello_Handler(srv interface{}, ctx context.Context, dec... FILE: app/response/response.go constant CodeSuccess (line 12) | CodeSuccess response.Code = 0 constant CodeParams (line 13) | CodeParams response.Code = 1 constant CodeUriNotFound (line 14) | CodeUriNotFound response.Code = http.StatusNotFound constant CodeServer (line 15) | CodeServer response.Code = http.StatusInternalServerError constant CodeUnavailable (line 16) | CodeUnavailable response.Code = http.StatusServiceUnavailable constant CodeTimeout (line 17) | CodeTimeout response.Code = http.StatusGatewayTimeout function ResponseJSON (line 29) | func ResponseJSON(c *gin.Context, code response.Code, data interface{}, ... FILE: app/router/router.go function RegisterRouter (line 11) | func RegisterRouter(server *gin.Engine) { FILE: app/rpc/gin-api/test.go constant serviceName (line 17) | serviceName = "gin-api-dev" function RPC (line 20) | func RPC(ctx context.Context) (resp *httpClient.Response, err error) { function RPC1 (line 41) | func RPC1(ctx context.Context) (resp *httpClient.Response, err error) { function Ping (line 63) | func Ping(ctx context.Context) (resp *httpClient.Response, err error) { FILE: bootstrap/app.go type Option (line 18) | type Option struct function defaultOption (line 20) | func defaultOption() *Option { type OptionFunc (line 24) | type OptionFunc type App (line 26) | type App struct method Start (line 52) | func (app *App) Start() error { method start (line 69) | func (a *App) start() error { method registerSignal (line 73) | func (a *App) registerSignal() (err error) { method registerService (line 85) | func (a *App) registerService() (err error) { method shutdown (line 93) | func (a *App) shutdown() (err error) { function NewApp (line 34) | func NewApp(srv server.Server, registrar registry.Registrar, opts ...Opt... FILE: bootstrap/init.go function Init (line 11) | func Init(env string, load func() error) (err error) { FILE: client/grpc/conn.go function Conn (line 11) | func Conn(ctx context.Context, target string) (cc *grpc.ClientConn, err ... FILE: client/http/client.go type Request (line 11) | type Request struct type Response (line 20) | type Response struct type Client (line 26) | type Client interface FILE: client/http/plugin.go type BeforeRequestPlugin (line 11) | type BeforeRequestPlugin interface type AfterRequestPlugin (line 15) | type AfterRequestPlugin interface type JaegerBeforePlugin (line 19) | type JaegerBeforePlugin struct method Handle (line 23) | func (*JaegerBeforePlugin) Handle(ctx context.Context, req *http.Reque... FILE: client/http/transport/transport.go type RPC (line 23) | type RPC struct method Send (line 53) | func (r *RPC) Send(ctx context.Context, serviceName string, request cl... method getClient (line 177) | func (r *RPC) getClient(ctx context.Context, serviceName string, servi... type Option (line 29) | type Option function WithLogger (line 31) | func WithLogger(logger *loggerRPC.RPCLogger) Option { function WithBeforePlugins (line 35) | func WithBeforePlugins(plugins ...client.BeforeRequestPlugin) Option { function WithAfterPlugins (line 39) | func WithAfterPlugins(plugins ...client.AfterRequestPlugin) Option { function New (line 43) | func New(opts ...Option) *RPC { FILE: library/apollo/agollo/agollo.go constant envIP (line 21) | envIP = "APOLLO_IP" constant envSecret (line 22) | envSecret = "APOLLO_SECRET" constant envCluster (line 23) | envCluster = "APOLLO_CLUSTER" constant defaultBackupConfigFileMode (line 27) | defaultBackupConfigFileMode fs.FileMode = 0744 constant defaultIsBackupConfig (line 28) | defaultIsBackupConfig = true constant defaultBackupConfigPath (line 29) | defaultBackupConfigPath = ".apollo_config" type Option (line 32) | type Option function WithIsBackupConfig (line 34) | func WithIsBackupConfig(isBackup bool) Option { function WithBackupConfigPath (line 38) | func WithBackupConfigPath(backupPath string) Option { function WithSyncServerTimeout (line 42) | func WithSyncServerTimeout(syncServerTimeout int) Option { function WithCustomListeners (line 46) | func WithCustomListeners(listeners []listener.CustomListener) Option { function WithLogger (line 50) | func WithLogger(logger log.LoggerInterface) Option { function WithCache (line 54) | func WithCache(cache agcache.CacheFactory) Option { function WithAuth (line 58) | func WithAuth(auth auth.HTTPAuth) Option { function WithLoadBalance (line 62) | func WithLoadBalance(loadBalance cluster.LoadBalance) Option { function WithFileHandler (line 66) | func WithFileHandler(fileHandler file.FileHandler) Option { type ApolloClient (line 70) | type ApolloClient struct method setHandler (line 133) | func (ac *ApolloClient) setHandler() { function New (line 94) | func New(ctx context.Context, appID string, namespaces []string, opts ..... FILE: library/apollo/agollo/agollo_test.go type Conf (line 13) | type Conf struct function TestNew (line 17) | func TestNew(t *testing.T) { FILE: library/apollo/agollo/listener/listener.go type CustomListener (line 8) | type CustomListener struct type Listener (line 14) | type Listener interface FILE: library/apollo/agollo/listener/mock/listener.go type MockListener (line 16) | type MockListener struct method EXPECT (line 34) | func (m *MockListener) EXPECT() *MockListenerMockRecorder { method GetNamespace (line 39) | func (m *MockListener) GetNamespace(namespace string) (interface{}, bo... method InitConfig (line 54) | func (m *MockListener) InitConfig(client agollo.Client, namespaceStruc... method OnChange (line 66) | func (m *MockListener) OnChange(event *storage.ChangeEvent) { method OnNewestChange (line 78) | func (m *MockListener) OnNewestChange(event *storage.FullChangeEvent) { type MockListenerMockRecorder (line 22) | type MockListenerMockRecorder struct method GetNamespace (line 48) | func (mr *MockListenerMockRecorder) GetNamespace(namespace interface{}... method InitConfig (line 60) | func (mr *MockListenerMockRecorder) InitConfig(client, namespaceStruct... method OnChange (line 72) | func (mr *MockListenerMockRecorder) OnChange(event interface{}) *gomoc... method OnNewestChange (line 84) | func (mr *MockListenerMockRecorder) OnNewestChange(event interface{}) ... function NewMockListener (line 27) | func NewMockListener(ctrl *gomock.Controller) *MockListener { FILE: library/apollo/agollo/listener/structlistener/listener.go type StructChangeListener (line 14) | type StructChangeListener struct method OnChange (line 20) | func (c *StructChangeListener) OnChange(changeEvent *storage.ChangeEve... method OnNewestChange (line 22) | func (c *StructChangeListener) OnNewestChange(event *storage.FullChang... method InitConfig (line 46) | func (c *StructChangeListener) InitConfig(client agollo.Client, namesp... method GetNamespace (line 62) | func (c *StructChangeListener) GetNamespace(namespace string) (interfa... FILE: library/apollo/agollo/util/util.go function ExtractConf (line 21) | func ExtractConf(namespace, content string, conf interface{}) error { FILE: library/apollo/http/apollo.go type AppoloConf (line 26) | type AppoloConf struct function DoLoadApolloConf (line 37) | func DoLoadApolloConf(host, service, cluster, token string, space []stri... function LoadApolloConf (line 79) | func LoadApolloConf(service string, space []string) (map[string]string, ... FILE: library/app/app.go function InitApp (line 20) | func InitApp() (err error) { function Name (line 24) | func Name() string { function Port (line 28) | func Port() int { function Pprof (line 32) | func Pprof() bool { function Debug (line 36) | func Debug() bool { function ContextTimeout (line 40) | func ContextTimeout() time.Duration { function ConnectTimeout (line 47) | func ConnectTimeout() time.Duration { function WriteTimeout (line 54) | func WriteTimeout() time.Duration { function ReadTimeout (line 61) | func ReadTimeout() time.Duration { FILE: library/cache/cache.go type CacheData (line 12) | type CacheData struct type LoadFunc (line 18) | type LoadFunc type Cacher (line 21) | type Cacher interface type panicError (line 34) | type panicError struct method Error (line 40) | func (p *panicError) Error() string { function newPanicError (line 45) | func newPanicError(v interface{}) error { function HandleLoad (line 58) | func HandleLoad(ctx context.Context, f LoadFunc, data interface{}) (err ... FILE: library/cache/redis/redis_cache.go type RedisCache (line 18) | type RedisCache struct method GetData (line 40) | func (rc *RedisCache) GetData(ctx context.Context, key string, ttl tim... method FlushCache (line 67) | func (rc *RedisCache) FlushCache(ctx context.Context, key string, ttl ... method getCache (line 107) | func (rc *RedisCache) getCache(ctx context.Context, key string) (data ... method setCache (line 130) | func (rc *RedisCache) setCache(ctx context.Context, key, val string, t... function New (line 25) | func New(c *redis.Client, locker lock.Locker) (*RedisCache, error) { FILE: library/config/viper.go type Viper (line 11) | type Viper struct method ReadConfig (line 66) | func (v *Viper) ReadConfig(file, typ string, data interface{}) (err er... method Path (line 76) | func (v *Viper) Path() string { function ReadConfig (line 25) | func ReadConfig(file, typ string, data interface{}) (err error) { function Path (line 29) | func Path() string { function Dir (line 33) | func Dir() (string, error) { function Config (line 37) | func Config() *Viper { function Init (line 41) | func Init(env string) { function New (line 45) | func New(env string) *Viper { FILE: library/cron/cron.go type Cron (line 30) | type Cron struct method AddJob (line 100) | func (c *Cron) AddJob(spec string, cmd func()) (cron.EntryID, error) { method Start (line 104) | func (c *Cron) Start() { method Stop (line 108) | func (c *Cron) Stop() { method Name (line 112) | func (c *Cron) Name() string { method addJob (line 116) | func (c *Cron) addJob(spec string, cmd cron.Job) (cron.EntryID, error) { method handle (line 128) | func (c *Cron) handle(ctx context.Context, cmd cron.Job, funcName, spe... method getLockDuration (line 182) | func (c *Cron) getLockDuration(schedule cron.Schedule) time.Duration { method getLockKey (line 193) | func (c *Cron) getLockKey(funcName string) string { method setFuncEntity (line 197) | func (c *Cron) setFuncEntity(funcName string, entityID cron.EntryID) { method getFuncEntity (line 204) | func (c *Cron) getFuncEntity(funcName string) cron.Entry { type Options (line 40) | type Options struct function defaultOptions (line 47) | func defaultOptions() *Options { type Option (line 54) | type Option function WithLocker (line 56) | func WithLocker(l lock.Locker) Option { function WithErrCallback (line 60) | func WithErrCallback(f func(error)) Option { function WithMiniLockTTL (line 64) | func WithMiniLockTTL(ttl time.Duration) Option { function WithLockFormat (line 68) | func WithLockFormat(lockFormat string) Option { function NewCron (line 72) | func NewCron(name string, l logger.Logger, options ...Option) (c *Cron, ... type FuncJob (line 211) | type FuncJob method Run (line 213) | func (f FuncJob) Run() { f() } method Function (line 215) | func (f FuncJob) Function() func() { return f } method FunctionName (line 217) | func (f FuncJob) FunctionName() string { FILE: library/cron/cron_test.go function JobFunc (line 15) | func JobFunc() { function TestCron_AddJob (line 19) | func TestCron_AddJob(t *testing.T) { FILE: library/endless/endless.go constant PRE_SIGNAL (line 22) | PRE_SIGNAL = iota constant POST_SIGNAL (line 23) | POST_SIGNAL constant STATE_INIT (line 25) | STATE_INIT constant STATE_RUNNING (line 26) | STATE_RUNNING constant STATE_SHUTTING_DOWN (line 27) | STATE_SHUTTING_DOWN constant STATE_TERMINATE (line 28) | STATE_TERMINATE function init (line 49) | func init() { type endlessServer (line 71) | type endlessServer struct method getState (line 167) | func (srv *endlessServer) getState() uint8 { method setState (line 174) | func (srv *endlessServer) setState(st uint8) { method Serve (line 191) | func (srv *endlessServer) Serve() (err error) { method ListenAndServe (line 206) | func (srv *endlessServer) ListenAndServe() (err error) { method ListenAndServeTLS (line 242) | func (srv *endlessServer) ListenAndServeTLS(certFile, keyFile string) ... method getListener (line 285) | func (srv *endlessServer) getListener(laddr string) (l net.Listener, e... method handleSignals (line 315) | func (srv *endlessServer) handleSignals() { method signalHooks (line 354) | func (srv *endlessServer) signalHooks(ppFlag int, sig os.Signal) { method shutdown (line 369) | func (srv *endlessServer) shutdown() { method hammerTime (line 397) | func (srv *endlessServer) hammerTime(d time.Duration) { method fork (line 420) | func (srv *endlessServer) fork() (err error) { method RegisterSignalHook (line 549) | func (srv *endlessServer) RegisterSignalHook(prePost int, sig os.Signa... function NewServer (line 88) | func NewServer(addr string, handler http.Handler) (srv *endlessServer) { function ListenAndServe (line 150) | func ListenAndServe(addr string, handler http.Handler) error { function ListenAndServeTLS (line 162) | func ListenAndServeTLS(addr string, certFile string, keyFile string, han... type endlessListener (line 482) | type endlessListener struct method Accept (line 488) | func (el *endlessListener) Accept() (c net.Conn, err error) { method Close (line 515) | func (el *endlessListener) Close() error { method File (line 524) | func (el *endlessListener) File() *os.File { function newEndlessListener (line 506) | func newEndlessListener(l net.Listener, srv *endlessServer) (el *endless... type endlessConn (line 531) | type endlessConn struct method Close (line 536) | func (w endlessConn) Close() error { FILE: library/etcd/etcd.go type Config (line 9) | type Config struct type Etcd (line 15) | type Etcd struct type Option (line 21) | type Option function WithEndpoints (line 23) | func WithEndpoints(endpoints []string) Option { function WithDialTimeout (line 27) | func WithDialTimeout(duration time.Duration) Option { function NewClient (line 32) | func NewClient(opts ...Option) (*Etcd, error) { FILE: library/jaeger/gorm/gorm.go constant componentGorm (line 15) | componentGorm = "Gorm" constant gormSpanKey (line 16) | gormSpanKey = "gorm_span" constant callBackBeforeName (line 17) | callBackBeforeName = "opentracing:before" constant callBackAfterName (line 18) | callBackAfterName = "opentracing:after" function before (line 22) | func before(db *gorm.DB) { function after (line 32) | func after(db *gorm.DB) { type opentracingPlugin (line 57) | type opentracingPlugin struct method Name (line 61) | func (op *opentracingPlugin) Name() string { method Initialize (line 65) | func (op *opentracingPlugin) Initialize(db *gorm.DB) (err error) { FILE: library/jaeger/gorm/gorm_test.go type TestTable (line 15) | type TestTable struct method TableName (line 21) | func (TestTable) TableName() string { function Test_before (line 25) | func Test_before(t *testing.T) { function Test_after (line 56) | func Test_after(t *testing.T) { function TestOpentracingPlugin_Name (line 135) | func TestOpentracingPlugin_Name(t *testing.T) { function TestOpentracingPlugin_Initialize (line 144) | func TestOpentracingPlugin_Initialize(t *testing.T) { FILE: library/jaeger/http/http.go constant httpClientComponentPrefix (line 16) | httpClientComponentPrefix = "HTTP-Client-" constant httpServerComponentPrefix (line 17) | httpServerComponentPrefix = "HTTP-Server-" function ExtractHTTP (line 23) | func ExtractHTTP(ctx context.Context, req *http.Request, logID string) (... function InjectHTTP (line 50) | func InjectHTTP(ctx context.Context, req *http.Request, logID string) er... function SetHTTPLog (line 64) | func SetHTTPLog(span opentracing.Span, req, resp string) { FILE: library/jaeger/http/http_test.go function TestExtractHTTP (line 17) | func TestExtractHTTP(t *testing.T) { function TestInjectHTTP (line 66) | func TestInjectHTTP(t *testing.T) { function TestSetHTTPLog (line 96) | func TestSetHTTPLog(t *testing.T) { FILE: library/jaeger/jaeger.go constant FieldLogID (line 14) | FieldLogID = "Log-Id" constant FieldTraceID (line 15) | FieldTraceID = "Trace-Id" constant FieldSpanID (line 16) | FieldSpanID = "Span-Id" constant LogFieldsRequest (line 20) | LogFieldsRequest = "request" constant LogFieldsResponse (line 21) | LogFieldsResponse = "response" constant LogFieldsArgs (line 22) | LogFieldsArgs = "args" type Config (line 27) | type Config struct function NewJaegerTracer (line 32) | func NewJaegerTracer(connCfg *Config, serviceName string) (opentracing.T... function SetError (line 56) | func SetError(span opentracing.Span, err error) { function SetRequest (line 60) | func SetRequest(span opentracing.Span, request string) { function SetResponse (line 64) | func SetResponse(span opentracing.Span, resp string) { function SetCommonTag (line 68) | func SetCommonTag(ctx context.Context, span opentracing.Span) { function GetTraceID (line 74) | func GetTraceID(span opentracing.Span) string { function GetSpanID (line 79) | func GetSpanID(span opentracing.Span) string { function spanContextToJaegerContext (line 84) | func spanContextToJaegerContext(spanContext opentracing.SpanContext) jae... FILE: library/jaeger/redis/redis.go constant operationRedis (line 17) | operationRedis = "Redis-" constant logCmdName (line 18) | logCmdName = "command" constant logCmdArgs (line 19) | logCmdArgs = "args" constant logCmdResult (line 20) | logCmdResult = "result" type contextKey (line 23) | type contextKey constant cmdStart (line 26) | cmdStart contextKey = iota type jaegerHook (line 30) | type jaegerHook struct method BeforeProcess (line 38) | func (jh *jaegerHook) BeforeProcess(ctx context.Context, cmd redis.Cmd... method AfterProcess (line 51) | func (jh *jaegerHook) AfterProcess(ctx context.Context, cmd redis.Cmde... method BeforeProcessPipeline (line 74) | func (jh *jaegerHook) BeforeProcessPipeline(ctx context.Context, cmds ... method AfterProcessPipeline (line 87) | func (jh *jaegerHook) AfterProcessPipeline(ctx context.Context, cmds [... method getPipeLineLogKey (line 114) | func (jh *jaegerHook) getPipeLineLogKey(logField string, idx int) stri... function NewJaegerHook (line 33) | func NewJaegerHook() redis.Hook { function isRedisError (line 118) | func isRedisError(err error) bool { FILE: library/jaeger/redis/redis_test.go function TestNewJaegerHook (line 16) | func TestNewJaegerHook(t *testing.T) { function Test_jaegerHook_BeforeProcess (line 24) | func Test_jaegerHook_BeforeProcess(t *testing.T) { function Test_jaegerHook_AfterProcess (line 47) | func Test_jaegerHook_AfterProcess(t *testing.T) { function Test_jaegerHook_BeforeProcessPipeline (line 97) | func Test_jaegerHook_BeforeProcessPipeline(t *testing.T) { function Test_jaegerHook_AfterProcessPipeline (line 120) | func Test_jaegerHook_AfterProcessPipeline(t *testing.T) { function Test_jaegerHook_getPipeLineLogKey (line 170) | func Test_jaegerHook_getPipeLineLogKey(t *testing.T) { function Test_isRedisError (line 178) | func Test_isRedisError(t *testing.T) { FILE: library/job/job.go type HandleFunc (line 15) | type HandleFunc function Handle (line 19) | func Handle(job string, l logger.Logger) { FILE: library/lock/lock.go type Locker (line 18) | type Locker interface FILE: library/lock/mock/lock.go type MockLocker (line 16) | type MockLocker struct method EXPECT (line 34) | func (m *MockLocker) EXPECT() *MockLockerMockRecorder { method Lock (line 39) | func (m *MockLocker) Lock(ctx context.Context, key string, random inte... method Unlock (line 53) | func (m *MockLocker) Unlock(ctx context.Context, key string, random in... type MockLockerMockRecorder (line 22) | type MockLockerMockRecorder struct method Lock (line 47) | func (mr *MockLockerMockRecorder) Lock(ctx, key, random, duration inte... method Unlock (line 61) | func (mr *MockLockerMockRecorder) Unlock(ctx, key, random interface{})... function NewMockLocker (line 27) | func NewMockLocker(ctrl *gomock.Controller) *MockLocker { FILE: library/lock/redis/redis_lock.go constant lockSuccess (line 13) | lockSuccess = 1 constant lockFail (line 14) | lockFail = 0 constant lockLua (line 15) | lockLua = `if redis.call("GET", KEYS[1]) == ARGV[1] then redis.call(... type RedisLock (line 20) | type RedisLock struct method Lock (line 34) | func (rl *RedisLock) Lock(ctx context.Context, key string, random inte... method Unlock (line 47) | func (rl *RedisLock) Unlock(ctx context.Context, key string, random in... function New (line 24) | func New(c *redis.Client) (*RedisLock, error) { FILE: library/lock/redis/redis_lock_test.go function TestNew (line 22) | func TestNew(t *testing.T) { function TestRedisLock_Lock (line 41) | func TestRedisLock_Lock(t *testing.T) { function TestRedisLock_Unlock (line 66) | func TestRedisLock_Unlock(t *testing.T) { FILE: library/logger/context.go type contextKey (line 7) | type contextKey constant contextLogID (line 10) | contextLogID contextKey = iota constant contextHTTPLogFields (line 11) | contextHTTPLogFields constant contextTraceID (line 12) | contextTraceID function WithLogID (line 16) | func WithLogID(ctx context.Context, val interface{}) context.Context { function ValueLogID (line 21) | func ValueLogID(ctx context.Context) string { function WithTraceID (line 31) | func WithTraceID(ctx context.Context, val interface{}) context.Context { function ValueTraceID (line 36) | func ValueTraceID(ctx context.Context) string { function WithFields (line 46) | func WithFields(ctx context.Context, fields []Field) context.Context { function ValueFields (line 51) | func ValueFields(ctx context.Context) []Field { function AddField (line 60) | func AddField(ctx context.Context, fields ...Field) context.Context { FILE: library/logger/fields.go constant LogHeader (line 9) | LogHeader = "Log-Id" constant ModuleHTTP (line 13) | ModuleHTTP = "HTTP" constant ModuleRPC (line 14) | ModuleRPC = "RPC" constant ModuleMySQL (line 15) | ModuleMySQL = "MySQL" constant ModuleRedis (line 16) | ModuleRedis = "Redis" constant ModuleQueue (line 17) | ModuleQueue = "Queue" constant ModuleCron (line 18) | ModuleCron = "Cron" constant AppName (line 22) | AppName = "app_name" constant Module (line 23) | Module = "module" constant ServiceName (line 24) | ServiceName = "service_name" constant LogID (line 25) | LogID = "log_id" constant TraceID (line 26) | TraceID = "trace_id" constant Header (line 27) | Header = "header" constant Method (line 28) | Method = "method" constant Request (line 29) | Request = "request" constant Response (line 30) | Response = "response" constant Code (line 31) | Code = "code" constant ClientIP (line 32) | ClientIP = "client_ip" constant ClientPort (line 33) | ClientPort = "client_port" constant ServerIP (line 34) | ServerIP = "server_ip" constant ServerPort (line 35) | ServerPort = "server_port" constant API (line 36) | API = "api" constant Cost (line 37) | Cost = "cost" constant Timeout (line 38) | Timeout = "timeout" constant Trace (line 39) | Trace = "trace" type Fields (line 42) | type Fields struct type Field (line 63) | type Field interface type field (line 68) | type field struct method Key (line 73) | func (f *field) Key() string { method Value (line 77) | func (f *field) Value() interface{} { function Reflect (line 81) | func Reflect(key string, value interface{}) Field { function Error (line 85) | func Error(err error) Field { function Find (line 89) | func Find(key string, fields []Field) interface{} { FILE: library/logger/http.go function ExtractLogID (line 13) | func ExtractLogID(req *http.Request) string { function GetRequestBody (line 26) | func GetRequestBody(req *http.Request) map[string]interface{} { FILE: library/logger/level.go type Level (line 3) | type Level method String (line 19) | func (l Level) String() string { constant UnknownLevel (line 6) | UnknownLevel Level = iota - 1 constant DebugLevel (line 8) | DebugLevel constant InfoLevel (line 10) | InfoLevel constant WarnLevel (line 12) | WarnLevel constant ErrorLevel (line 14) | ErrorLevel constant FatalLevel (line 16) | FatalLevel function StringToLevel (line 36) | func StringToLevel(l string) Level { FILE: library/logger/logger.go type Logger (line 7) | type Logger interface FILE: library/logger/logid.go type ObjectId (line 19) | type ObjectId method Hex (line 113) | func (id ObjectId) Hex() string { method Time (line 119) | func (id ObjectId) Time() time.Time { method Machine (line 127) | func (id ObjectId) Machine() []byte { method Pid (line 133) | func (id ObjectId) Pid() uint16 { method Counter (line 139) | func (id ObjectId) Counter() int32 { function StrToObjectId (line 32) | func StrToObjectId(str string) (ObjectId, error) { function initMachineId (line 54) | func initMachineId() []byte { function NewObjectId (line 72) | func NewObjectId() ObjectId { function NewObjectIdWithTime (line 97) | func NewObjectIdWithTime(t time.Time) ObjectId { function NewObjectIdWithHexString (line 103) | func NewObjectIdWithHexString(s string) (o ObjectId, err error) { FILE: library/logger/rotate.go function RotateWriter (line 11) | func RotateWriter(infoFile, errFile string) (infoWriter io.Writer, errWr... function rotateWriter (line 23) | func rotateWriter(filename string) (io.Writer, error) { FILE: library/logger/rotate_test.go function TestRotateWriter (line 10) | func TestRotateWriter(t *testing.T) { function Test_rotateWriter (line 19) | func Test_rotateWriter(t *testing.T) { FILE: library/logger/zap/gorm/gorm.go type GormConfig (line 21) | type GormConfig struct type GormLogger (line 31) | type GormLogger struct method LogMode (line 91) | func (l *GormLogger) LogMode(level gormLogger.LogLevel) gormLogger.Int... method Info (line 101) | func (l *GormLogger) Info(ctx context.Context, msg string, args ...int... method Warn (line 103) | func (l *GormLogger) Warn(ctx context.Context, msg string, args ...int... method Error (line 105) | func (l *GormLogger) Error(ctx context.Context, msg string, args ...in... method Trace (line 107) | func (l *GormLogger) Trace(ctx context.Context, begin time.Time, fc fu... method logger (line 144) | func (l *GormLogger) logger() *zap.Logger { method Close (line 158) | func (l *GormLogger) Close() error { type GormOption (line 40) | type GormOption function NewGorm (line 44) | func NewGorm(config *GormConfig, opts ...GormOption) (gl *GormLogger, er... FILE: library/logger/zap/redis/redis.go type contextKey (line 16) | type contextKey constant cmdStart (line 19) | cmdStart contextKey = iota type RedisConfig (line 24) | type RedisConfig struct type RedisLogger (line 34) | type RedisLogger struct method BeforeProcess (line 71) | func (rl *RedisLogger) BeforeProcess(ctx context.Context, cmd redis.Cm... method AfterProcess (line 77) | func (rl *RedisLogger) AfterProcess(ctx context.Context, cmd redis.Cmd... method BeforeProcessPipeline (line 94) | func (rl *RedisLogger) BeforeProcessPipeline(ctx context.Context, cmds... method AfterProcessPipeline (line 100) | func (rl *RedisLogger) AfterProcessPipeline(ctx context.Context, cmds ... method Info (line 122) | func (rl *RedisLogger) Info(ctx context.Context, isPipeline bool, cmds... method Error (line 127) | func (rl *RedisLogger) Error(ctx context.Context, isPipeline bool, cmd... method fields (line 140) | func (rl *RedisLogger) fields(ctx context.Context, isPipeline bool, cm... method logger (line 176) | func (rl *RedisLogger) logger() *zapLogger.ZapLogger { method setCmdStart (line 180) | func (rl *RedisLogger) setCmdStart(ctx context.Context) context.Context { method getCmdCost (line 184) | func (rl *RedisLogger) getCmdCost(ctx context.Context) int64 { type RedisOption (line 39) | type RedisOption function NewRedisLogger (line 42) | func NewRedisLogger(config *RedisConfig, opts ...RedisOption) (rl *Redis... FILE: library/logger/zap/rpc/rpc.go type RPCConfig (line 12) | type RPCConfig struct type RPCLogger (line 19) | type RPCLogger struct method Info (line 54) | func (rl *RPCLogger) Info(ctx context.Context, msg string, fields ...l... method Error (line 59) | func (rl *RPCLogger) Error(ctx context.Context, msg string, fields ...... method logger (line 64) | func (rl *RPCLogger) logger() *zapLogger.ZapLogger { type RPCOption (line 24) | type RPCOption function NewRPCLogger (line 27) | func NewRPCLogger(config *RPCConfig, opts ...RPCOption) (rl *RPCLogger, ... FILE: library/logger/zap/service/service.go type Config (line 8) | type Config struct type ServiceLogger (line 14) | type ServiceLogger struct function NewServiceLogger (line 19) | func NewServiceLogger(serviceName string, config *Config) (*ServiceLogge... FILE: library/logger/zap/zap.go type ZapLogger (line 16) | type ZapLogger struct method infoEnabler (line 105) | func (l *ZapLogger) infoEnabler() zap.LevelEnablerFunc { method errorEnabler (line 114) | func (l *ZapLogger) errorEnabler() zap.LevelEnablerFunc { method formatEncoder (line 123) | func (l *ZapLogger) formatEncoder() zapcore.Encoder { method GetLevel (line 142) | func (l *ZapLogger) GetLevel() logger.Level { method Debug (line 163) | func (l *ZapLogger) Debug(ctx context.Context, msg string, fields ...l... method Info (line 167) | func (l *ZapLogger) Info(ctx context.Context, msg string, fields ...lo... method Warn (line 171) | func (l *ZapLogger) Warn(ctx context.Context, msg string, fields ...lo... method Error (line 175) | func (l *ZapLogger) Error(ctx context.Context, msg string, fields ...l... method Fatal (line 179) | func (l *ZapLogger) Fatal(ctx context.Context, msg string, fields ...l... method extractFields (line 184) | func (l *ZapLogger) extractFields(ctx context.Context, fields ...logge... method Close (line 203) | func (l *ZapLogger) Close() error { type Options (line 21) | type Options struct type Option (line 32) | type Option function defaultOptions (line 34) | func defaultOptions() *Options { function WithCallerSkip (line 45) | func WithCallerSkip(skip int) Option { function WithModule (line 49) | func WithModule(module string) Option { function WithServiceName (line 53) | func WithServiceName(serviceName string) Option { function WithInfoWriter (line 57) | func WithInfoWriter(w io.Writer) Option { function WithErrorWriter (line 61) | func WithErrorWriter(w io.Writer) Option { function WithLevel (line 65) | func WithLevel(l string) Option { function NewLogger (line 69) | func NewLogger(options ...Option) (l *ZapLogger, err error) { function zapLevel (line 146) | func zapLevel(level logger.Level) zapcore.Level { FILE: library/orm/orm.go type Config (line 13) | type Config struct type instanceConfig (line 19) | type instanceConfig struct type Orm (line 30) | type Orm struct method UseWrite (line 89) | func (orm *Orm) UseWrite() *gorm.DB { method UseRead (line 93) | func (orm *Orm) UseRead() *gorm.DB { type Option (line 36) | type Option function WithTrace (line 38) | func WithTrace(tracer gorm.Plugin) Option { function WithLogger (line 44) | func WithLogger(logger logger.Interface) Option { function NewOrm (line 50) | func NewOrm(cfg *Config, opts ...Option) (orm *Orm, err error) { function getDSN (line 97) | func getDSN(cfg *instanceConfig) string { FILE: library/queue/queue.go type ProduceOption (line 7) | type ProduceOption struct type ProduceOptionFunc (line 9) | type ProduceOptionFunc type ConsumeOption (line 11) | type ConsumeOption struct type ConsumeOptionFunc (line 13) | type ConsumeOptionFunc type Consumer (line 15) | type Consumer type Queue (line 17) | type Queue interface FILE: library/queue/rabbitmq/rabbitmq.go constant ExchangeTypeDirect (line 15) | ExchangeTypeDirect = "direct" constant ExchangeTypeFanout (line 16) | ExchangeTypeFanout = "fanout" constant ExchangeTypeTopic (line 17) | ExchangeTypeTopic = "topic" constant ExchangeTypeHeaders (line 18) | ExchangeTypeHeaders = "headers" type Config (line 21) | type Config struct type Option (line 34) | type Option struct type OptionFunc (line 41) | type OptionFunc function defaultOption (line 43) | func defaultOption() *Option { function WithDeclareExchange (line 52) | func WithDeclareExchange(turn bool) OptionFunc { function WithDeclareQueue (line 56) | func WithDeclareQueue(turn bool) OptionFunc { function WithBindQueue (line 60) | func WithBindQueue(turn bool) OptionFunc { function WithQos (line 64) | func WithQos(qos int) OptionFunc { type RabbitMQ (line 68) | type RabbitMQ struct method Produce (line 101) | func (q *RabbitMQ) Produce(ctx context.Context, msg interface{}, opts ... method Consume (line 128) | func (q *RabbitMQ) Consume(consumer queue.Consumer) { method Shutdown (line 176) | func (q *RabbitMQ) Shutdown() (err error) { method connect (line 188) | func (q *RabbitMQ) connect() (err error) { function New (line 80) | func New(cfg *Config, opts ...OptionFunc) (*RabbitMQ, error) { FILE: library/redis/conn.go type Config (line 9) | type Config struct function NewClient (line 24) | func NewClient(cfg *Config) *redis.Client { FILE: library/registry/etcd/discovery.go constant defaultRefreshDuration (line 17) | defaultRefreshDuration = time.Second * 10 type EtcdDiscovery (line 20) | type EtcdDiscovery struct method GetNodes (line 83) | func (s *EtcdDiscovery) GetNodes() []*registry.Node { method GetUpdateTime (line 95) | func (s *EtcdDiscovery) GetUpdateTime() time.Time { method Close (line 100) | func (s *EtcdDiscovery) Close() error { method init (line 111) | func (s *EtcdDiscovery) init() error { method loadKVs (line 125) | func (s *EtcdDiscovery) loadKVs() (kvs []*mvccpb.KeyValue) { method watcher (line 139) | func (s *EtcdDiscovery) watcher() { method refresh (line 168) | func (s *EtcdDiscovery) refresh() { method setNodes (line 185) | func (s *EtcdDiscovery) setNodes() { method setNode (line 207) | func (s *EtcdDiscovery) setNode(key string, node *registry.Node) { method delNode (line 215) | func (s *EtcdDiscovery) delNode(key string) { method logErr (line 222) | func (s *EtcdDiscovery) logErr(action, key, val string, err error) { method log (line 226) | func (s *EtcdDiscovery) log(action, key string) { method context (line 230) | func (s *EtcdDiscovery) context() (context.Context, context.CancelFunc) { type DiscoverOption (line 34) | type DiscoverOption function WithServierName (line 36) | func WithServierName(serviceName string) DiscoverOption { function WithDiscoverClient (line 40) | func WithDiscoverClient(cli *clientv3.Client) DiscoverOption { function WithRefreshDuration (line 44) | func WithRefreshDuration(d int) DiscoverOption { function WithCmdTimeOut (line 48) | func WithCmdTimeOut(t time.Duration) DiscoverOption { function NewDiscovery (line 53) | func NewDiscovery(opts ...DiscoverOption) (registry.Discovery, error) { function JSONDecode (line 234) | func JSONDecode(val string) (*registry.Node, error) { FILE: library/registry/etcd/registrar.go type EtcdRegistrar (line 15) | type EtcdRegistrar struct method Register (line 76) | func (s *EtcdRegistrar) Register(ctx context.Context) error { method putKeyWithRegistrarLease (line 93) | func (s *EtcdRegistrar) putKeyWithRegistrarLease(ctx context.Context, ... method listenLeaseRespChan (line 115) | func (s *EtcdRegistrar) listenLeaseRespChan() { method DeRegister (line 123) | func (s *EtcdRegistrar) DeRegister(ctx context.Context) error { type RegistrarOption (line 30) | type RegistrarOption function WithRegistrarClient (line 32) | func WithRegistrarClient(cli *clientv3.Client) RegistrarOption { function WithRegistrarServiceName (line 36) | func WithRegistrarServiceName(serviceName string) RegistrarOption { function WithRegistarHost (line 40) | func WithRegistarHost(host string) RegistrarOption { function WithRegistarPort (line 44) | func WithRegistarPort(port int) RegistrarOption { function WithRegistrarLease (line 48) | func WithRegistrarLease(lease int64) RegistrarOption { function NewRegistry (line 53) | func NewRegistry(opts ...RegistrarOption) (*EtcdRegistrar, error) { function JSONEncode (line 131) | func JSONEncode(node *registry.Node) (string, error) { FILE: library/registry/registry.go type Node (line 8) | type Node struct type RegistryConfig (line 14) | type RegistryConfig struct type Registrar (line 19) | type Registrar interface type Discovery (line 25) | type Discovery interface type Encode (line 32) | type Encode type Decode (line 35) | type Decode FILE: library/reliablequeue/reliablequeue.go type ReliableQueue (line 25) | type ReliableQueue struct method Publish (line 82) | func (rq *ReliableQueue) Publish(ctx context.Context, tx *gorm.DB, msg... method generateMessage (line 116) | func (rq *ReliableQueue) generateMessage(ctx context.Context, tx *gorm... method getDistributeList (line 146) | func (rq *ReliableQueue) getDistributeList(ctx context.Context, tx *go... method Retry (line 157) | func (rq *ReliableQueue) Retry(ctx context.Context, tx *gorm.DB, recor... method Republish (line 180) | func (rq *ReliableQueue) Republish(ctx context.Context, tx *gorm.DB) (... method getUnsuccessRecords (line 189) | func (rq *ReliableQueue) getUnsuccessRecords(ctx context.Context, tx *... method publish (line 203) | func (rq *ReliableQueue) publish(ctx context.Context, records []Reliab... method SetSuccess (line 215) | func (rq *ReliableQueue) SetSuccess(ctx context.Context, tx *gorm.DB, ... type Option (line 30) | type Option struct type ReliableQueueOption (line 35) | type ReliableQueueOption function defaultOption (line 37) | func defaultOption() *Option { function WithFirstDelaySecond (line 44) | func WithFirstDelaySecond(t time.Duration) ReliableQueueOption { function WithRetryDelaySecondMultiple (line 50) | func WithRetryDelaySecondMultiple(i int64) ReliableQueueOption { function NewReliableQueue (line 56) | func NewReliableQueue(q queue.Queue, opts ...ReliableQueueOption) (*Reli... type PublishParams (line 75) | type PublishParams struct FILE: library/reliablequeue/reliablequeue_test.go type Queue (line 17) | type Queue struct method Produce (line 19) | func (*Queue) Produce(ctx context.Context, msg interface{}, opts ...qu... method Consume (line 23) | func (*Queue) Consume(consumer queue.Consumer) {} method Shutdown (line 25) | func (*Queue) Shutdown() error { return nil } function createTable (line 27) | func createTable() (db *gorm.DB, err error) { function Test_defaultOption (line 41) | func Test_defaultOption(t *testing.T) { function TestNewReliableQueue (line 51) | func TestNewReliableQueue(t *testing.T) { function TestReliableQueue_Publish (line 66) | func TestReliableQueue_Publish(t *testing.T) { function TestReliableQueue_generateMessage (line 114) | func TestReliableQueue_generateMessage(t *testing.T) { function TestReliableQueue_getDistributeList (line 148) | func TestReliableQueue_getDistributeList(t *testing.T) { function TestReliableQueue_Retry (line 183) | func TestReliableQueue_Retry(t *testing.T) { function TestReliableQueue_Republish (line 234) | func TestReliableQueue_Republish(t *testing.T) { function TestReliableQueue_getUnsuccessRecords (line 259) | func TestReliableQueue_getUnsuccessRecords(t *testing.T) { function TestReliableQueue_publish (line 287) | func TestReliableQueue_publish(t *testing.T) { function TestReliableQueue_SetSuccess (line 310) | func TestReliableQueue_SetSuccess(t *testing.T) { FILE: library/reliablequeue/table.go constant RecordStatusUnsuccess (line 6) | RecordStatusUnsuccess uint8 = 0 constant RecordStatusSuccess (line 7) | RecordStatusSuccess uint8 = 1 type ReliableMqMessage (line 11) | type ReliableMqMessage struct method TableName (line 23) | func (ReliableMqMessage) TableName() string { type ReliableMqMessageDistribute (line 28) | type ReliableMqMessageDistribute struct method TableName (line 43) | func (ReliableMqMessageDistribute) TableName() string { type ReliableMqMessageRecord (line 48) | type ReliableMqMessageRecord struct method TableName (line 70) | func (ReliableMqMessageRecord) TableName() string { FILE: library/reliablequeue/table.sql type `reliable_mq_message` (line 1) | CREATE TABLE `reliable_mq_message` ( type `reliable_mq_message_distribute` (line 15) | CREATE TABLE `reliable_mq_message_distribute` ( type `reliable_mq_message_record` (line 33) | CREATE TABLE `reliable_mq_message_record` ( FILE: library/selector/selector.go constant TypeWR (line 10) | TypeWR = "wr" constant TypeWrr (line 11) | TypeWrr = "wrr" constant TypeDwrr (line 12) | TypeDwrr = "dwrr" constant TypeP2C (line 13) | TypeP2C = "p2c" constant TypeICMP (line 14) | TypeICMP = "icmp" type Statistics (line 17) | type Statistics struct type Meta (line 22) | type Meta struct type Node (line 24) | type Node interface type NewNodeFunc (line 31) | type NewNodeFunc type HandleInfo (line 33) | type HandleInfo struct type Selector (line 38) | type Selector interface function GenerateAddress (line 48) | func GenerateAddress(host string, port int) string { function ExtractAddress (line 52) | func ExtractAddress(address string) (string, int) { FILE: library/selector/wr/wr.go type Node (line 13) | type Node struct method Address (line 35) | func (n *Node) Address() string { method Meta (line 39) | func (n *Node) Meta() selector.Meta { method Statistics (line 43) | func (n *Node) Statistics() selector.Statistics { method Weight (line 49) | func (n *Node) Weight() int { method incrSuccess (line 53) | func (n *Node) incrSuccess() { method incrFail (line 59) | func (n *Node) incrFail() { function NewNode (line 26) | func NewNode(host string, port, weight int, meta selector.Meta) selector... type nodeOffset (line 65) | type nodeOffset struct type Selector (line 72) | type Selector struct method ServiceName (line 105) | func (s *Selector) ServiceName() string { method AddNode (line 109) | func (s *Selector) AddNode(node selector.Node) (err error) { method DeleteNode (line 148) | func (s *Selector) DeleteNode(host string, port int) (err error) { method GetNodes (line 187) | func (s *Selector) GetNodes() (nodes []selector.Node, err error) { method GetNode (line 198) | func (s *Selector) GetNode(host string, port int) (node selector.Node,... method Select (line 206) | func (s *Selector) Select() (node selector.Node, err error) { method AfterHandle (line 234) | func (s *Selector) AfterHandle(address string, err error) { method checkSameWeight (line 252) | func (s *Selector) checkSameWeight() { method sortOffset (line 271) | func (s *Selector) sortOffset() { method node2WRNode (line 277) | func (s *Selector) node2WRNode(node selector.Node) *Node { type SelectorOption (line 85) | type SelectorOption function WithServiceName (line 87) | func WithServiceName(name string) SelectorOption { function NewSelector (line 91) | func NewSelector(opts ...SelectorOption) *Selector { FILE: library/selector/wr/wr_test.go function TestNewNode (line 15) | func TestNewNode(t *testing.T) { function TestNode_Address (line 30) | func TestNode_Address(t *testing.T) { function TestNode_Meta (line 33) | func TestNode_Meta(t *testing.T) { function TestNode_Statistics (line 36) | func TestNode_Statistics(t *testing.T) { function TestNode_Weight (line 39) | func TestNode_Weight(t *testing.T) { function TestNode_incrSuccess (line 42) | func TestNode_incrSuccess(t *testing.T) { function TestNode_incrFail (line 45) | func TestNode_incrFail(t *testing.T) { function TestWithServiceName (line 48) | func TestWithServiceName(t *testing.T) { function TestNewSelector (line 51) | func TestNewSelector(t *testing.T) { function TestSelector_ServiceName (line 54) | func TestSelector_ServiceName(t *testing.T) { function TestSelector_AddNode (line 64) | func TestSelector_AddNode(t *testing.T) { function TestSelector_DeleteNode (line 67) | func TestSelector_DeleteNode(t *testing.T) { function TestSelector_GetNodes (line 70) | func TestSelector_GetNodes(t *testing.T) { function TestSelector_Select (line 73) | func TestSelector_Select(t *testing.T) { function TestSelector_AfterHandle (line 76) | func TestSelector_AfterHandle(t *testing.T) { function TestSelector_checkSameWeight (line 79) | func TestSelector_checkSameWeight(t *testing.T) { function TestSelector_sortOffset (line 82) | func TestSelector_sortOffset(t *testing.T) { function TestSelector_node2WRNode (line 85) | func TestSelector_node2WRNode(t *testing.T) { function TestWR (line 88) | func TestWR(t *testing.T) { function testNoDeleteHandle (line 171) | func testNoDeleteHandle(t *testing.T, nodes []*Node) []selector.Node { function testDeleteHandle (line 198) | func testDeleteHandle(t *testing.T, nodes []*Node) []selector.Node { FILE: library/servicer/service/service.go function LoadGlobPattern (line 25) | func LoadGlobPattern(path, suffix string, etcd *etcd.Etcd) (err error) { function LoadService (line 72) | func LoadService(config *Config, opts ...Option) (err error) { type Config (line 83) | type Config struct type Service (line 95) | type Service struct method Name (line 138) | func (s *Service) Name() string { method Pick (line 142) | func (s *Service) Pick(ctx context.Context) (node *servicer.Node, err ... method initSelector (line 174) | func (s *Service) initSelector() (err error) { method adjustSelectorNode (line 194) | func (s *Service) adjustSelectorNode() { method Done (line 242) | func (s *Service) Done(ctx context.Context, node *servicer.Node, err e... method GetCaCrt (line 250) | func (s *Service) GetCaCrt() []byte { method GetClientPem (line 254) | func (s *Service) GetClientPem() []byte { method GetClientKey (line 258) | func (s *Service) GetClientKey() []byte { type Option (line 108) | type Option function WithDiscovery (line 110) | func WithDiscovery(discovery registry.Discovery) Option { function NewService (line 114) | func NewService(config *Config, opts ...Option) (*Service, error) { FILE: library/servicer/servicer.go constant TypeRegistry (line 9) | TypeRegistry uint8 = 1 constant TypeIPPort (line 10) | TypeIPPort uint8 = 2 constant TypeDomain (line 11) | TypeDomain uint8 = 3 type Node (line 14) | type Node struct type DoneInfo (line 19) | type DoneInfo struct function SetServicer (line 29) | func SetServicer(s Servicer) { function DelServicer (line 35) | func DelServicer(s Servicer) { function GetServicer (line 41) | func GetServicer(serviceName string) (Servicer, bool) { type Servicer (line 46) | type Servicer interface FILE: server/grpc/cmux/cmux.go type RegisterHTTP (line 20) | type RegisterHTTP type Option (line 23) | type Option struct type OptionFunc (line 29) | type OptionFunc function WithHTTP (line 31) | func WithHTTP(httpServer *http.Server, registerHTTP RegisterHTTP) Option... type CMUXServer (line 38) | type CMUXServer struct method Start (line 68) | func (s *CMUXServer) Start() (err error) { method startGRPC (line 81) | func (s *CMUXServer) startGRPC() { method startHTTP (line 99) | func (s *CMUXServer) startHTTP() (err error) { method Close (line 144) | func (s *CMUXServer) Close() (err error) { function NewCMUX (line 48) | func NewCMUX(endpoint string, registers []serverGRPC.Register, opts ...O... FILE: server/grpc/h2c/h2c.go type Option (line 20) | type Option struct type OptionFunc (line 24) | type OptionFunc function WithLogger (line 26) | func WithLogger(l logger.Logger) OptionFunc { type H2CServer (line 30) | type H2CServer struct method Start (line 61) | func (s *H2CServer) Start() (err error) { method Close (line 97) | func (s *H2CServer) Close() (err error) { function NewH2C (line 41) | func NewH2C(endpoint string, registers []serverGRPC.Register, opts ...Op... FILE: server/grpc/middleware/log/log.go function LogIDFromMD (line 16) | func LogIDFromMD(md metadata.MD) string { function GetPeerAddr (line 25) | func GetPeerAddr(ctx context.Context) string { function UnaryServerInterceptor (line 37) | func UnaryServerInterceptor(l logger.Logger) grpc.UnaryServerInterceptor { function UnaryClientInterceptor (line 71) | func UnaryClientInterceptor() grpc.UnaryClientInterceptor { FILE: server/grpc/option.go type DialOption (line 44) | type DialOption struct type DialOptionFunc (line 46) | type DialOptionFunc function NewDialOption (line 48) | func NewDialOption(opts ...DialOptionFunc) []grpc.DialOption { type ServerOption (line 76) | type ServerOption struct type ServerOptionFunc (line 80) | type ServerOptionFunc function ServerOptionLogger (line 82) | func ServerOptionLogger(l logger.Logger) ServerOptionFunc { function NewServerOption (line 86) | func NewServerOption(opts ...ServerOptionFunc) []grpc.ServerOption { type CallOption (line 124) | type CallOption struct type CallOptionFunc (line 126) | type CallOptionFunc function NewCallOption (line 128) | func NewCallOption(opts ...CallOption) []grpc.CallOption { FILE: server/grpc/server.go type RegisterGRPC (line 13) | type RegisterGRPC type RegisterMux (line 14) | type RegisterMux type Register (line 17) | type Register struct function NewRegister (line 22) | func NewRegister(registerGRPC RegisterGRPC, registerMux RegisterMux) Reg... function RegisterTools (line 29) | func RegisterTools(s *grpc.Server) { FILE: server/http/middleware/cors/cors.go function CORS (line 20) | func CORS(c cors.Config) gin.HandlerFunc { FILE: server/http/middleware/csrf/csrf.go function CSRF (line 11) | func CSRF(authKey []byte, domain string) gin.HandlerFunc { FILE: server/http/middleware/limiter/limiter.go function Limiter (line 14) | func Limiter(maxBurstSize int, l logger.Logger) gin.HandlerFunc { FILE: server/http/middleware/log/log.go function LoggerMiddleware (line 21) | func LoggerMiddleware(l logger.Logger) gin.HandlerFunc { FILE: server/http/middleware/panic/panic.go function ThrowPanic (line 13) | func ThrowPanic(l logger.Logger) gin.HandlerFunc { FILE: server/http/middleware/timeout/timeout.go constant TimeoutKey (line 13) | TimeoutKey = "Timeout-Millisecond" constant startKey (line 14) | startKey = "Timeout-StartAt" function TimeoutMiddleware (line 18) | func TimeoutMiddleware(timeout time.Duration) func(c *gin.Context) { function SetStart (line 38) | func SetStart(ctx context.Context, timeout int64) context.Context { function CalcRemainTimeout (line 43) | func CalcRemainTimeout(ctx context.Context) (int64, error) { function nowMillisecond (line 62) | func nowMillisecond() int64 { FILE: server/http/response/error.go type ResponseError (line 9) | type ResponseError struct method Toast (line 15) | func (r *ResponseError) Toast() string { return r.toast } method SetToast (line 18) | func (r *ResponseError) SetToast(toast string) { r.toast = toast } method Error (line 21) | func (r *ResponseError) Error() string { return r.err.Error() } method SetError (line 24) | func (r *ResponseError) SetError(err error) { r.err = err } method Unwrap (line 27) | func (r *ResponseError) Unwrap() error { return r.err } method Cause (line 30) | func (r *ResponseError) Cause() error { return r.err } function WrapToast (line 33) | func WrapToast(err error, toast string) *ResponseError { function WrapToastf (line 48) | func WrapToastf(err error, toast string, args ...interface{}) *ResponseE... FILE: server/http/response/response.go type Code (line 12) | type Code type response (line 14) | type response struct function ResponseJSON (line 22) | func ResponseJSON(c *gin.Context, code Code, data interface{}, err *Resp... FILE: server/http/server.go type Server (line 16) | type Server struct method Start (line 79) | func (s *Server) Start() (err error) { method Close (line 87) | func (s *Server) Close() (err error) { method initHandler (line 92) | func (s *Server) initHandler() *gin.Engine { method startPprof (line 115) | func (s *Server) startPprof(server *gin.Engine) { type RegisterRouter (line 27) | type RegisterRouter type Option (line 29) | type Option function WithReadTimeout (line 31) | func WithReadTimeout(timeout time.Duration) Option { function WithWriteTimeout (line 35) | func WithWriteTimeout(timeout time.Duration) Option { function WithMiddlewares (line 39) | func WithMiddlewares(middlewares ...gin.HandlerFunc) Option { function WithRegisterRouter (line 43) | func WithRegisterRouter(r RegisterRouter) Option { function WithPprof (line 47) | func WithPprof(pprofTurn bool) Option { function WithDebug (line 51) | func WithDebug(isDebug bool) Option { function WithOnShutDown (line 55) | func WithOnShutDown(onShutdown []func()) Option { function New (line 59) | func New(addr string, opts ...Option) *Server { FILE: server/http/util/util.go type BodyWriter (line 11) | type BodyWriter struct method Write (line 18) | func (w BodyWriter) Write(b []byte) (int, error) { FILE: server/server.go type Server (line 8) | type Server interface function RegisterCloseFunc (line 17) | func RegisterCloseFunc(cf interface{}) error {