logcontext

package
v1.1.14-test2 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SelectPath        = "selectPath"
	EstablishPath     = "establishPath"
	MaskSelectPath    = uint32(1)
	MaskEstablishPath = uint32(2)
)

Variables

This section is empty.

Functions

func GetChannelMask

func GetChannelMask(s string) uint32

Types

type Context

type Context interface {
	pfxlog.Wirer
	SetChannelsMask(s uint32)
	GetChannelsMask() uint32
	GetFields() map[string]interface{}
	GetStringFields() map[string]string
	WithFields(fields map[string]interface{}) Context
	WithField(field string, value interface{}) Context
	Clone() Context
}

func NewContext

func NewContext() Context

func NewContextWith

func NewContextWith(channelMask uint32, fields map[string]string) Context

Jump to

Keyboard shortcuts

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