config

package
v0.0.0-...-b1029ed Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2025 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Server   Server   `mapstructure:"SERVER"`
	Redis    Redis    `mapstructure:"REDIS"`
	WALogger WALogger `mapstructure:"WALOGGER"`
}

func New

func New() (*Config, error)

type Redis

type Redis struct {
	Host     string `mapstructure:"HOST"`
	Port     string `mapstructure:"PORT"`
	Password string `mapstructure:"PASSWORD"`
}

type Server

type Server struct {
	Address string `mapstructure:"ADDRESS"`
}

type WALogger

type WALogger struct {
	Scheme string `mapstructure:"SCHEME"`
	Host   string `mapstructure:"HOST"`
}

Jump to

Keyboard shortcuts

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