config

package
v0.3.0-alpha1 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(configFilePath string) error

Types

type BadgerConfig

type BadgerConfig struct {
	DataDirPath string
	GCPeriodMin int
}

type Config

type Config struct {
	Badger BadgerConfig
	Server ServerConfig
	Logger LoggerConfig
}

func Get

func Get() Config

type LoggerConfig

type LoggerConfig struct {
	Sinks map[string]any
}

type ServerConfig

type ServerConfig struct {
	Port             uint16
	MaxRecvMsgSizeMb int
}

Jump to

Keyboard shortcuts

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