context

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExecutionContext

type ExecutionContext interface {
	CreateSubContext(additionalFields map[string]string) ExecutionContext
	GetActionName() string
	GetCorrelationID() string
	GetDefaultLogger() *zerolog.Logger
	GetToken() *security.JwtToken
	GetUOW() *repository.UnitOfWork
	AddLoggerStrFields(strFields map[string]string)
	Logger(eventType, eventCode string) *zerolog.Logger
	LoggerEventActionCompletion() *zerolog.Event
	LogError(err error, errorMessage string)
	LogJSONParseError(err error)
}

ExecutionContext execution context

func NewExecutionContext

func NewExecutionContext(uow *repository.UnitOfWork, token *security.JwtToken, correlationID string, action string, logger zerolog.Logger) ExecutionContext

NewExecutionContext creates new execution context

Jump to

Keyboard shortcuts

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