server

package
v0.0.0-...-c5541d2 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cmd

type Cmd struct {
	Database struct {
		User     string `help:"PostgreSQL database username" default:"postgres" env:"ADC_DB_USER"`
		Password string `help:"PostgreSQL database password" default:"postgres" env:"ADC_DB_PASSWORD"`
		Host     string `help:"PostgreSQL database host"     default:"127.0.0.1" env:"ADC_DB_HOST"`
		Port     uint32 `help:"PostgreSQL database port"     default:"5432" env:"ADC_DB_PORT"`
		Database string `help:"PostgreSQL database name"     default:"postgres" env:"ADC_DB_NAME"`
	} `embed:"" prefix:"db."`
	Port     uint32       `help:"Port the server listens" default:"8080"`
	EnvLevel env.Level    `help:"Environment level (${enum})" default:"dev" enum:"dev," env:"ADC_ENV"`
	LogLevel logger.Level `help:"Log level (${enum})" default:"info" enum:"debug,info,warn,error" env:"ADC_LOG_LEVEL"`
}

func (*Cmd) Run

func (c *Cmd) Run(_ *kong.Kong) error

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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