Documentation ¶
Index ¶
- Constants
- func DestKey(key string) string
- func GetUserKey(key string) string
- func IsIncomming(key string) (ok bool)
- func IsLinkKey(key string) (ok bool)
- func IsOutgoing(key string) (ok bool)
- func IsUserKey(key string) bool
- func RangeSys(ctx context.Context, f func(key string, value interface{}))
- func RangeUser(ctx context.Context, f func(key string, value string))
- func SourceKey(key string) string
- func Sys(ctx context.Context, key string) (res interface{})
- func User(ctx context.Context, key string) (res string)
- func UserKey(key string) string
- func WithSys(ctx context.Context, pairs ...SysPair) context.Context
- func WithUser(ctx context.Context, pairs ...UserPair) context.Context
- type Context
- type SysMeta
- type SysPair
- type UserMeta
- type UserPair
Constants ¶
View Source
const ( PrefixDest = "destination." PrefixSource = "source." PrefixUser = "user_def." )
View Source
const ( ApplicationID = "application.id" GroupID = "group.id" ConnnectionIP = "connection.ip" ApplicationVersion = "application.version" ServiceName = "service.name" Interface = "interface" RequestHTTPMethod = "request.http.method" ServiceNamespace = "service.namespace" Namespace = "namespace" Tracer = "tsf.tracer" LaneID = "lane.id" )
Variables ¶
This section is empty.
Functions ¶
func GetUserKey ¶
func IsIncomming ¶
func IsOutgoing ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.