cc

package
v0.32.36 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: Apache-2.0 Imports: 10 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
}

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 logger.Writer, errOutput logger.ErrWriter, configPath config.Path, overrides config.Overrider) (*CC, func(), error)

NewCC creates a singleton CC.

func NewTestCC

func NewTestCC(logOutput logger.Writer, errOutput logger.ErrWriter, configPath config.Path, overrides config.Overrider) (*CC, func(), error)

NewTestCC creates a singleton CC to be used for testing. It uses a fake context (context.Background).

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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