Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/chenhg5/ko
/ functions
Functions
56 in github.com/chenhg5/ko
⨍
Functions
56
◇
Types & classes
14
↓ 6 callers
Method
Set
(key string, value interface{}, expiration time.Duration)
services/connections/redis/redis.go:25
↓ 4 callers
Function
GetConfig
()
gateway/config.go:15
↓ 3 callers
Function
GetConfig
()
services/config.go:21
↓ 3 callers
Function
SetColVarType
(colVar *[]interface{}, i int, typeName string)
services/connections/database/mysql/mysql.go:267
↓ 3 callers
Function
SetResultValue
(result *map[string]interface{}, index string, colVar interface{}, typeName string)
services/connections/database/mysql/mysql.go:329
↓ 2 callers
Method
GetUser
(string)
services/service.go:9
↓ 2 callers
Function
MakeHandler
( logger log.Logger, ins *etcdv3.Instancer, method string, path string, middlewares ...endpoint.Middlewar
gateway/transport.go:69
↓ 2 callers
Function
MakeJwtHandler
( logger log.Logger, ins *etcdv3.Instancer, method string, path string, middlewares ...endpoint.Middlewar
gateway/transport.go:97
↓ 2 callers
Method
Query
(query string, args ...interface{})
services/connections/database/mysql/mysql.go:221
↓ 2 callers
Method
Service
(prefix string, etcdClient etcdv3.Client)
gateway/transport.go:149
↓ 2 callers
Function
SvcFactory
Api设计关键类,restful/json转换/数据格式指定/错误编码列表 数据转换 POST/PUT/DELETE/GET 请求与响应关系 client -> gatewayProxy -> svc -> gatewayProxy -> client server
gateway/transport.go:39
↓ 1 callers
Method
Exec
(query string, args ...interface{})
services/connections/database/mysql/mysql.go:213
↓ 1 callers
Function
GetEtcdInstancer
(prefix string, etcdClient etcdv3.Client, logger log.Logger)
gateway/etcd.go:44
↓ 1 callers
Method
JwtGet
(path string, middlewares ...endpoint.Middleware)
gateway/transport.go:183
↓ 1 callers
Method
Post
(path string, middlewares ...endpoint.Middleware)
gateway/transport.go:153
↓ 1 callers
Function
accessControl
(h http.Handler)
services/server.go:53
↓ 1 callers
Function
makeGetUserEndpoint
(s UcenterServiceInterface)
services/endpoint.go:19
Function
BeginTransactions
()
services/connections/database/mysql/mysql.go:203
Function
BeginTransactionsByLevel
()
services/connections/database/mysql/mysql.go:183
Function
DecodeGetRequest
内部服务到客户端:解码Get请求
gateway/transport.go:238
Function
DecodeGetResponse
内部服务到客户端:解码Get响应
gateway/transport.go:219
Function
DecodeJsonRequest
内部服务到客户端:解码Json请求
gateway/transport.go:251
Method
Del
(key string)
services/connections/redis/redis.go:47
Function
EncodeGetRequest
客户端到内部服务:转换Get请求
gateway/transport.go:194
Function
EncodeJSONResponse
客户端到内部服务:转换Json响应
gateway/transport.go:213
Function
EncodeJsonRequest
客户端到内部服务:转换Json请求
gateway/transport.go:202
Function
Exec
(query string, args ...interface{})
services/connections/database/mysql/mysql.go:174
Method
Get
(key string)
services/connections/redis/redis.go:33
Method
Get
(path string, middlewares ...endpoint.Middleware)
gateway/transport.go:163
Function
GetCons
()
services/config.go:34
Function
GetJwtMiddleware
()
gateway/auth.go:9
Method
GetUser
(s string)
services/service.go:14
Method
GetUser
(s string)
services/middleware/instrumentation.go:47
Function
InitConfig
()
services/config.go:5
Function
InitConfig
()
gateway/config.go:5
Function
InitEtcd
(ctx context.Context)
services/etcd.go:10
Function
InitEtcd
(ctx context.Context)
gateway/etcd.go:10
Function
InitLogger
()
services/logger.go:9
Function
InitLogger
()
gateway/logger.go:9
Function
InitRouter
(logger log.Logger)
gateway/transport.go:142
Function
InstrumentingMiddleware
()
services/middleware/instrumentation.go:34
Method
JwtPost
(path string, middlewares ...endpoint.Middleware)
gateway/transport.go:173
Function
MakeHandler
MakeHandler returns a handler for the booking service.
services/transport.go:29
Function
Query
(query string, args ...interface{})
services/connections/database/mysql/mysql.go:119
Function
QueryWithConnection
(con string, query string, args ...interface{})
services/connections/database/mysql/mysql.go:63
Function
RegisterSvc
(etcdClient etcdv3.Client, httpLogger log.Logger)
services/etcd.go:44
Function
RunServer
(mux *http.ServeMux, logger kitlog.Logger, httpAddr string)
services/server.go:16
Function
RunServer
(logger kitlog.Logger, httpAddr string, router *Router)
gateway/server.go:15
Function
decodeGetuserRequest
(_ context.Context, r *http.Request)
services/transport.go:14
Function
encodeError
encode errors from business-logic
services/transport.go:51
Function
encodeError
encode errors from business-logic svc panic
gateway/transport.go:128
Function
encodeResponse
(_ context.Context, w http.ResponseWriter, response interface{})
services/transport.go:24
Function
init
只会执行一次在执行程序启动的时候
services/connections/database/mysql/mysql.go:21
Function
init
()
services/connections/redis/redis.go:15
Function
main
()
services/cmd/services/main.go:10
Function
main
()
gateway/cmd/gateway/main.go:8