dependencies

package
v0.0.0-...-be915d5 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Base

type Base struct {
	AppName      string `ignored:"true"`
	LogLevel     string `envconfig:"LOG_LEVEL" default:"info" desc:"Log level"`
	InternalPort string `envconfig:"INTERNAL_PORT" default:":7001" desc:"Internal port"`
}

func (Base) GetBaseConfig

func (bc Base) GetBaseConfig() Base

func (*Base) SetBaseConfig

func (bc *Base) SetBaseConfig(in Base)

type Builder

type Builder[Conf Config, Dep Locator] func(cnf Conf) (Dep, error)

type Config

type Config interface {
	GetBaseConfig() Base
	Validate() error
}

type ConfigSetter

type ConfigSetter interface {
	SetBaseConfig(in Base)
}

type Locator

type Locator interface {
	HealthCheck(ctx context.Context) map[string]error
	Ready(ctx context.Context) bool
	Close() error
}

Jump to

Keyboard shortcuts

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