MCPcopy Create free account

hub / github.com/chenhg5/ko / functions

Functions56 in github.com/chenhg5/ko

↓ 6 callersMethodSet
(key string, value interface{}, expiration time.Duration)
services/connections/redis/redis.go:25
↓ 4 callersFunctionGetConfig
()
gateway/config.go:15
↓ 3 callersFunctionGetConfig
()
services/config.go:21
↓ 3 callersFunctionSetColVarType
(colVar *[]interface{}, i int, typeName string)
services/connections/database/mysql/mysql.go:267
↓ 3 callersFunctionSetResultValue
(result *map[string]interface{}, index string, colVar interface{}, typeName string)
services/connections/database/mysql/mysql.go:329
↓ 2 callersMethodGetUser
(string)
services/service.go:9
↓ 2 callersFunctionMakeHandler
( logger log.Logger, ins *etcdv3.Instancer, method string, path string, middlewares ...endpoint.Middlewar
gateway/transport.go:69
↓ 2 callersFunctionMakeJwtHandler
( logger log.Logger, ins *etcdv3.Instancer, method string, path string, middlewares ...endpoint.Middlewar
gateway/transport.go:97
↓ 2 callersMethodQuery
(query string, args ...interface{})
services/connections/database/mysql/mysql.go:221
↓ 2 callersMethodService
(prefix string, etcdClient etcdv3.Client)
gateway/transport.go:149
↓ 2 callersFunctionSvcFactory
Api设计关键类,restful/json转换/数据格式指定/错误编码列表 数据转换 POST/PUT/DELETE/GET 请求与响应关系 client -> gatewayProxy -> svc -> gatewayProxy -> client server
gateway/transport.go:39
↓ 1 callersMethodExec
(query string, args ...interface{})
services/connections/database/mysql/mysql.go:213
↓ 1 callersFunctionGetEtcdInstancer
(prefix string, etcdClient etcdv3.Client, logger log.Logger)
gateway/etcd.go:44
↓ 1 callersMethodJwtGet
(path string, middlewares ...endpoint.Middleware)
gateway/transport.go:183
↓ 1 callersMethodPost
(path string, middlewares ...endpoint.Middleware)
gateway/transport.go:153
↓ 1 callersFunctionaccessControl
(h http.Handler)
services/server.go:53
↓ 1 callersFunctionmakeGetUserEndpoint
(s UcenterServiceInterface)
services/endpoint.go:19
FunctionBeginTransactions
()
services/connections/database/mysql/mysql.go:203
FunctionBeginTransactionsByLevel
()
services/connections/database/mysql/mysql.go:183
FunctionDecodeGetRequest
内部服务到客户端:解码Get请求
gateway/transport.go:238
FunctionDecodeGetResponse
内部服务到客户端:解码Get响应
gateway/transport.go:219
FunctionDecodeJsonRequest
内部服务到客户端:解码Json请求
gateway/transport.go:251
MethodDel
(key string)
services/connections/redis/redis.go:47
FunctionEncodeGetRequest
客户端到内部服务:转换Get请求
gateway/transport.go:194
FunctionEncodeJSONResponse
客户端到内部服务:转换Json响应
gateway/transport.go:213
FunctionEncodeJsonRequest
客户端到内部服务:转换Json请求
gateway/transport.go:202
FunctionExec
(query string, args ...interface{})
services/connections/database/mysql/mysql.go:174
MethodGet
(key string)
services/connections/redis/redis.go:33
MethodGet
(path string, middlewares ...endpoint.Middleware)
gateway/transport.go:163
FunctionGetCons
()
services/config.go:34
FunctionGetJwtMiddleware
()
gateway/auth.go:9
MethodGetUser
(s string)
services/service.go:14
MethodGetUser
(s string)
services/middleware/instrumentation.go:47
FunctionInitConfig
()
services/config.go:5
FunctionInitConfig
()
gateway/config.go:5
FunctionInitEtcd
(ctx context.Context)
services/etcd.go:10
FunctionInitEtcd
(ctx context.Context)
gateway/etcd.go:10
FunctionInitLogger
()
services/logger.go:9
FunctionInitLogger
()
gateway/logger.go:9
FunctionInitRouter
(logger log.Logger)
gateway/transport.go:142
FunctionInstrumentingMiddleware
()
services/middleware/instrumentation.go:34
MethodJwtPost
(path string, middlewares ...endpoint.Middleware)
gateway/transport.go:173
FunctionMakeHandler
MakeHandler returns a handler for the booking service.
services/transport.go:29
FunctionQuery
(query string, args ...interface{})
services/connections/database/mysql/mysql.go:119
FunctionQueryWithConnection
(con string, query string, args ...interface{})
services/connections/database/mysql/mysql.go:63
FunctionRegisterSvc
(etcdClient etcdv3.Client, httpLogger log.Logger)
services/etcd.go:44
FunctionRunServer
(mux *http.ServeMux, logger kitlog.Logger, httpAddr string)
services/server.go:16
FunctionRunServer
(logger kitlog.Logger, httpAddr string, router *Router)
gateway/server.go:15
FunctiondecodeGetuserRequest
(_ context.Context, r *http.Request)
services/transport.go:14
FunctionencodeError
encode errors from business-logic
services/transport.go:51
FunctionencodeError
encode errors from business-logic svc panic
gateway/transport.go:128
FunctionencodeResponse
(_ context.Context, w http.ResponseWriter, response interface{})
services/transport.go:24
Functioninit
只会执行一次在执行程序启动的时候
services/connections/database/mysql/mysql.go:21
Functioninit
()
services/connections/redis/redis.go:15
Functionmain
()
services/cmd/services/main.go:10
Functionmain
()
gateway/cmd/gateway/main.go:8