grpce

package
v0.0.37 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 20, 2024 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCookieStringFromContext

func GetCookieStringFromContext(ctx context.Context, key string) string

GetCookieStringFromContext .

func GetDialAddressByGRpcClassName

func GetDialAddressByGRpcClassName(clsName string) string

func GetStringFromContext

func GetStringFromContext(ctx context.Context, key string) string

GetStringFromContext .

func GrpcGetRealIP

func GrpcGetRealIP(ctx context.Context) string

func HasDiscovery

func HasDiscovery(schema, serverName string) bool

func RegisterResolver

func RegisterResolver(getter discovery.Getter, logger l.Wrapper, schema string) error

RegisterResolver getter和schema一一对应,不应该多个schema公用一个getter,除非getter支持多次Start操作

func SetHTTPCookie added in v0.0.18

func SetHTTPCookie(ctx context.Context, key, val string, maxAge int) error

SetHTTPCookie .

func UnsetHTTPCookie added in v0.0.18

func UnsetHTTPCookie(ctx context.Context, key string) error

UnsetHTTPCookie .

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL