helper

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromContextGetCtxTTL

func FromContextGetCtxTTL(ctx context.Context) uint64

FromContextGetCtxTTL return value of ctx TTL from context.

func FromContextGetFuncName

func FromContextGetFuncName(ctx context.Context) string

FromContextGetFuncName return value of func name from context.

func FromContextGetUUID

func FromContextGetUUID(ctx context.Context) string

FromContextGetUUID return value of uuid from context if key does not exist return new UUID4.

func GetOutboundIP

func GetOutboundIP(dnss ...string) net.IP

GetOutboundIP - Get preferred outbound ip of this machine.

func NewContextWithCtxTTL

func NewContextWithCtxTTL(ctx context.Context, ttl uint64) context.Context

NewContextWithCtxTTL return ctx which kept ctxTTL msg in values.

func NewContextWithFuncName

func NewContextWithFuncName(ctx context.Context, name string) context.Context

NewContextWithFuncName return ctx which kept func name in values.

func NewContextWithUUID

func NewContextWithUUID(ctx context.Context, uid string) context.Context

NewContextWithUUID return ctx which kept uuid msg in values.

Types

This section is empty.

Jump to

Keyboard shortcuts

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