internal

package
v0.0.0-...-cf2fc7f Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2025 License: EPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLogger

func NewLogger(verbose bool) *slog.Logger

NewLogger creates a new logger

Types

type Config

type Config struct {
	Port       int
	DBHost     string
	DBPort     int
	DBUser     string
	DBPassword string
	DBSchema   string
	Driver     string
}

func LoadConfig

func LoadConfig() (Config, error)

LoadConfig loads the configuration from the environment

func (Config) DBConf

func (c Config) DBConf() dtmcli.DBConf

DBConf returns the database configuration

func (Config) DBPortStr

func (c Config) DBPortStr() string

func (Config) DataSourceName

func (c Config) DataSourceName() string

type Transaction

type Transaction struct {
	User   string
	Amount int
}

Jump to

Keyboard shortcuts

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