Documentation ¶
Index ¶
- func GetCookieStringFromContext(ctx context.Context, key string) string
- func GetDialAddressByGRpcClassName(clsName string) string
- func GetStringFromContext(ctx context.Context, key string) string
- func GrpcGetRealIP(ctx context.Context) string
- func HasDiscovery(schema, serverName string) bool
- func RegisterResolver(getter discovery.Getter, logger l.Wrapper, schema string) error
- func SetHTTPCookie(ctx context.Context, key, val string, maxAge int) error
- func UnsetHTTPCookie(ctx context.Context, key string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCookieStringFromContext ¶
GetCookieStringFromContext .
func GetStringFromContext ¶
GetStringFromContext .
func GrpcGetRealIP ¶
func HasDiscovery ¶
func RegisterResolver ¶
RegisterResolver getter和schema一一对应,不应该多个schema公用一个getter,除非getter支持多次Start操作
func SetHTTPCookie ¶ added in v0.0.18
SetHTTPCookie .
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.