Documentation
¶
Index ¶
- func FromContextGetCtxTTL(ctx context.Context) uint64
- func FromContextGetFuncName(ctx context.Context) string
- func FromContextGetUUID(ctx context.Context) string
- func GetOutboundIP(dnss ...string) net.IP
- func NewContextWithCtxTTL(ctx context.Context, ttl uint64) context.Context
- func NewContextWithFuncName(ctx context.Context, name string) context.Context
- func NewContextWithUUID(ctx context.Context, uid string) context.Context
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromContextGetCtxTTL ¶
FromContextGetCtxTTL return value of ctx TTL from context.
func FromContextGetFuncName ¶
FromContextGetFuncName return value of func name from context.
func FromContextGetUUID ¶
FromContextGetUUID return value of uuid from context if key does not exist return new UUID4.
func GetOutboundIP ¶
GetOutboundIP - Get preferred outbound ip of this machine.
func NewContextWithCtxTTL ¶
NewContextWithCtxTTL return ctx which kept ctxTTL msg in values.
func NewContextWithFuncName ¶
NewContextWithFuncName return ctx which kept func name in values.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.