container

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2022 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	VersionCmd = "version"
	RunCommand = "run"
)

Variables

View Source
var AvailableCommands = []string{VersionCmd, RunCommand}

Functions

This section is empty.

Types

type AppContainer

type AppContainer struct {
	Log          logging.Logger
	Config       *Config
	EmailStorage *templatemanager.EmailStorage
}

func NewAppContainer

func NewAppContainer(config *Config, log logging.Logger) (*AppContainer, error)

func (*AppContainer) Run

func (cnt *AppContainer) Run(ctx context.Context)

type Config

type Config struct {
	Command   string
	LogLvl    string         `yaml:"logLvl"`
	APIConfig apiConfig      `yaml:"api"`
	Sendgrid  sendgridConfig `yaml:"sendgrid"`
}

func NewConfig

func NewConfig(args []string) (*Config, error)

Jump to

Keyboard shortcuts

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