contexts

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContextWrapper

type ContextWrapper interface {
	context.Context

	Log() *logrus.Entry
	GetLogId() string
	SetLogName(name string) ContextWrapper

	GetContext() context.Context
}

func NewContext

func NewContext(ctx context.Context) ContextWrapper

type IContext

type IContext struct {
	context.Context
	// contains filtered or unexported fields
}

func (*IContext) GetContext

func (s *IContext) GetContext() context.Context

func (*IContext) GetLogId

func (s *IContext) GetLogId() string

func (*IContext) Log

func (s *IContext) Log() *logrus.Entry

func (*IContext) SetLogName

func (s *IContext) SetLogName(name string) ContextWrapper

Jump to

Keyboard shortcuts

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