config

package
v0.0.0-...-f1dfc71 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultListenAddress = "0.0.0.0:8123"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	ListenAddress string `validate:"required,hostname_port"`
}

type Configuration

type Configuration struct {
	App *App `validate:"required"`
	// contains filtered or unexported fields
}

func New

func New() (c *Configuration)

func (*Configuration) Validate

func (c *Configuration) Validate() (err error)

type Validator

type Validator interface {
	Struct(interface{}) error
}

Jump to

Keyboard shortcuts

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