config

package
v0.0.0-...-784c0f6 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ConfigFile = "./lime.toml"
)

Variables

This section is empty.

Functions

func LoadConfig

func LoadConfig() error

LoadConfig is ...

func SaveConfig

func SaveConfig(config *Config) error

SaveConfig is ...

Types

type Admin

type Admin struct {
	Email    string `toml:"email"`
	Password string `toml:"password"`
}

Admin is ...

type Config

type Config struct {
	HTTPAddr    string           `` /* 281-byte string literal not displayed */
	DevMode     bool             `toml:"dev-mode" comment:"Active develop mode"`
	Admin       Admin            `toml:"admin" comment:"Admin section"`
	Keys        Keys             `toml:"keys" comment:"Keys section"`
	GeoDatabase geo.Database     `toml:"geo-database" comment:"Geo database section"`
	Database    storage.Database `toml:"database" comment:"Database section"`
}

Config is ...

func Data

func Data() *Config

Data is ...

func DefaultConfig

func DefaultConfig() *Config

DefaultConfig is ...

type JWT

type JWT struct {
	PublicKey  string `toml:"public-key"`
	PrivateKey string `toml:"private-key"`
	Expire     string `toml:"expire"`
}

JWT is ...

type Keys

type Keys struct {
	KeyDir  string  `toml:"key-dir"`
	JWT     JWT     `toml:"jwt"`
	License License `toml:"license"`
}

Keys is ...

type License

type License struct {
	PublicKey  string `toml:"public-key"`
	PrivateKey string `toml:"private-key"`
}

License is ...

Jump to

Keyboard shortcuts

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