context

package
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2023 License: MIT Imports: 6 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
	Clock    clockwork.Clock
	Fs       afero.Fs
	// 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

Jump to

Keyboard shortcuts

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