config

package
v0.0.0-...-44f5dd3 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2023 License: GPL-3.0 Imports: 5 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 {
	HttpPort int            `koanf:"http_port"`
	Logging  *LoggingConfig `koanf:"logging"`
	Torrent  *TorrentConfig `koanf:"torrent"`
}

func NewConfig

func NewConfig(i *do.Injector) (*Config, error)

for some reason doesn't take into account config file content at all

type LoggingConfig

type LoggingConfig struct {
	LogLevel string `koanf:"log_level"`
}

type TorrentConfig

type TorrentConfig struct {
	PeerId   string `koanf:"peer_id"`
	PeerPort uint16 `koanf:"peer_port"`
}

Jump to

Keyboard shortcuts

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