rcontext

package
v1.3.4 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RequestContext

type RequestContext struct {
	context.Context

	// These are also stored on the context object itself
	Log     *logrus.Entry           // common.ContextLogger
	Config  config.DomainRepoConfig // common.ContextServerConfig
	Request *http.Request           // common.ContextRequest
}

func Initial

func Initial() RequestContext

func InitialNoConfig

func InitialNoConfig() RequestContext

func (RequestContext) LogWithFields

func (c RequestContext) LogWithFields(fields logrus.Fields) RequestContext

func (RequestContext) ReplaceLogger

func (c RequestContext) ReplaceLogger(log *logrus.Entry) RequestContext

Jump to

Keyboard shortcuts

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