cc

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CC

type CC struct {
	Context    context.Context
	Config     *config.Config
	Log        *zerolog.Logger
	ErrGroup   *errgroup.Group
	CancelFunc context.CancelFunc
}

CC contains dependencies that are cross cutting and are needed in most of the providers that make up this application.

func NewCC

func NewCC(logOutput io.Writer, errOutput io.Writer, configPath config.Path, overrides config.Overrider) (*CC, func(), error)

NewCC creates a singleton CC.

type ErrGroupAndContext added in v0.3.3

type ErrGroupAndContext struct {
	Ctx      context.Context
	ErrGroup *errgroup.Group
	Cancel   context.CancelFunc
}

ErrGroupAndContext wraps a context and an error group.

func NewContext added in v0.3.3

func NewContext() *ErrGroupAndContext

NewContext creates a context that responds to user signals.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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