context

package
v0.0.0-...-7df1e21 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetEvent

func GetEvent(ctx context.Context) *models.Event

GetEvent return the event from context

func GetLogger

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

GetLogger return a log object from context

func GetRequestID

func GetRequestID(ctx context.Context) string

GetRequestID return a request id from context

func IsOperator

func IsOperator(ctx context.Context) bool

IsOperator return the operator status from context

func SetOperator

func SetOperator(ctx context.Context) context.Context

SetOperator add a operator status to context

func WithEvent

func WithEvent(ctx context.Context, event *models.Event) context.Context

WithEvent add a event 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