context

package
v0.0.0-...-1a3755f Latest Latest
Warning

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

Go to latest
Published: May 7, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLogger

func GetLogger(ctx context.Context) *logrus.Entry

GetLogger get context based logger

func GetMessage

func GetMessage(ctx context.Context) *models.Message

GetMessage get context based request id

func GetRequestID

func GetRequestID(ctx context.Context) *string

GetRequestID get context based request id

func IsOperator

func IsOperator(ctx context.Context) bool

IsOperator by context

func SetOperator

func SetOperator(ctx context.Context) context.Context

SetOperator set operatorflag to context

func WithMessage

func WithMessage(ctx context.Context, message *models.Message) context.Context

WithMessage set a message to context

func WithRequestID

func WithRequestID(ctx context.Context, id *string) context.Context

WithRequestID set a request id to context

Types

This section is empty.

Jump to

Keyboard shortcuts

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