config

package
v0.0.0-...-db893c4 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ProjectID is gcp project id
	ProjectID = ""
	// CallerDepth is the number of stack frames to ascend
	CallerSkip = 0
	// WriteAccessLog is function that writes an access log
	WriteAccessLog types.WriteAccessLogFunc
	// ApplicationLogOut is io.Writer object for application log
	ApplicationLogOut io.Writer
	// AccessLogOut is io.Writer object for access log
	AccessLogOut io.Writer
)

Functions

func SetContextConfig

func SetContextConfig(ctx context.Context, cs *ContextConfig) context.Context

GetContextConfig sets the ContextConfig instance to context

Types

type ContextConfig

type ContextConfig struct {
	// ApplicationLogOut is io.Writer object for application log
	ApplicationLogOut io.Writer
	// AccessLogOut is io.Writer object for access log
	AccessLogOut io.Writer
}

func GetContextConfig

func GetContextConfig(ctx context.Context) *ContextConfig

GetContextConfig gets the ContextSeverity instance from context

Jump to

Keyboard shortcuts

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