context_enum

package
v1.0.1-0...-bd443ad Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContextEnum

type ContextEnum string
const (
	AppName         ContextEnum = "app_name"
	AppVersion      ContextEnum = "app_version"
	AppHost         ContextEnum = "app_host"
	TraceId         ContextEnum = "trace_id"
	ClientId        ContextEnum = "client_id"
	UserId          ContextEnum = "user_id"
	Module          ContextEnum = "module"
	Function        ContextEnum = "function"
	Stack           ContextEnum = "stack"
	RemoteIp        ContextEnum = "remote_ip"
	CommitSha       ContextEnum = "commit_sha"
	CustomerTraceId ContextEnum = "customer_trace_id"
	Err             ContextEnum = "err"
)

func (ContextEnum) Str

func (c ContextEnum) Str() string

type ContextValues

type ContextValues struct {
	AppName         string
	AppVersion      string
	AppHost         string
	TraceId         string
	ClientId        string
	UserId          string
	Module          string
	Function        string
	Stack           string
	RemoteIp        string
	CommitSha       string
	CustomerTraceId string
}

type IntEnum

type IntEnum int

func (IntEnum) ToInt

func (enum IntEnum) ToInt() int

func (IntEnum) ToStr

func (enum IntEnum) ToStr() string

Jump to

Keyboard shortcuts

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