application

package
v0.0.0-...-f4c85b3 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

type Application struct {
	Cfg Config
}

func New

func New(config Config) *Application

func (*Application) Run

func (a *Application) Run(ctx context.Context) int

type Config

type Config struct {
	MaxGoroutines    int    `env:"MAX_GOROUTINES" env-default:"15"`
	PostgresHost     string `env:"POSTGRES_HOST" env-default:"localhost"`
	PostgresPort     string `env:"POSTGRES_PORT" env-default:"5432"`
	PostgresUser     string `env:"POSTGRES_USER" env-default:"admin"`
	PostgresPassword string `env:"POSTGRES_PASSWORD" env-default:"password"`
	PostgresDb       string `env:"POSTGRES_DB" env-default:"database"`
}

Jump to

Keyboard shortcuts

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