config

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package config provide struct that are representatio of service configuration. Also it provide function MustLoad which load variable from ENV

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// PeerName               string `env:"PEER_NAME"`
	// PeerPort               int    `env:"PEER_PORT" env-default:"8001"`
	LogLevel   slog.Level `yaml:"log-level"`
	WebSocket  webSocket  `yaml:"websocket"`
	Explorer   explorer   `yaml:"explorer"`
	IP         *net.IP    `yaml:"ip,omitempty"`
	IsPublicIP bool       `yaml:"is-public-ip"`
	ConfigDir  string     `yaml:"-"`
	HistoryDir string     `yaml:"-"`
}

func MustLoad

func MustLoad() *Config

Jump to

Keyboard shortcuts

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