config

package
v0.0.0-...-023d5f2 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoDbDSN = errors.New("no db dsn")
)
View Source
var ErrNoNotificationAddr = errors.New("no notification address")
View Source
var (
	ErrNoServerAddr = errors.New("no server address")
)

Functions

This section is empty.

Types

type Config

type Config struct {
	Server Server
	Notify Notify
	DB     DB
}

func (Config) Load

func (c Config) Load() error

type DB

type DB struct {
	Driver string
	DSN    string
}

func (*DB) Load

func (db *DB) Load(envPrefix string) error

type Notify

type Notify struct {
	Addr string
}

type Server

type Server struct {
	Addr string
}

Jump to

Keyboard shortcuts

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