context

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context struct {
	Logger   *slog.Logger
	LogLevel *slog.LevelVar

	Config    *config.Config
	Validator *validator.Validate
	// contains filtered or unexported fields
}

func DefaultContext

func DefaultContext() *Context

func TestContext

func TestContext(logBuffer io.Writer) *Context

func (*Context) Cancel

func (c *Context) Cancel()

func (*Context) Done

func (c *Context) Done() <-chan bool

func (*Context) GetLogLevel

func (c *Context) GetLogLevel() *slog.LevelVar

func (*Context) GetLogger

func (c *Context) GetLogger() *slog.Logger

func (*Context) Signal

func (c *Context) Signal() chan os.Signal

Jump to

Keyboard shortcuts

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