configuration

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultConfig = Holder{}

Functions

func SetupConfig

func SetupConfig(fileName string)

Types

type HTTPSServer

type HTTPSServer struct {
	Enabled          bool                  `toml:"enabled"`
	Address          string                `toml:"address"`
	Port             int                   `toml:"port"`
	APIUserAgent     string                `toml:"api_user_agent"`
	TlsConfiguration HttpsTlsConfiguration `toml:"tls_configuration"`
}

HTTPSServer -------------- HTTPS config holders --------------

type Holder

type Holder struct {
	Debug                bool                 `toml:"debug"`
	HTTPSServer          HTTPSServer          `toml:"https_server"`
	SQLLiteConfiguration SQLLiteConfiguration `toml:"database"`
	Tokenizer            Tokenizer            `toml:"tokenizer"`
}
var ConfigHolder Holder

type HttpsTlsConfiguration

type HttpsTlsConfiguration struct {
	Enable   bool   `toml:"enable"`
	CertFile string `toml:"cert_file"`
	KeyFile  string `toml:"key_file"`
}

type SQLLiteConfiguration

type SQLLiteConfiguration struct {
	Enabled              bool   `toml:"enabled"`
	DatabaseFileLocation string `toml:"file_location"`
}

SQLLiteConfiguration -------------- SQLLite config holders --------------

type Tokenizer

type Tokenizer struct {
	TokenizerSecret string `toml:"tokenizer_secret"`
	TokenExpiration int    `toml:"token_expiration"`
}

Jump to

Keyboard shortcuts

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