config

package
v0.0.0-...-f49c50f Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppConfig

type AppConfig struct {
	// contains filtered or unexported fields
}

AppConfig holds the server configuration

func NewAppConfig

func NewAppConfig() *AppConfig

Gets the app configuration from svault.toml with default values if absent

func (*AppConfig) GetNotifConfig

func (ac *AppConfig) GetNotifConfig() *config.NotifConfig

GetNotifConfig returns the notification configuration

func (*AppConfig) GetSeverConfig

func (ac *AppConfig) GetSeverConfig() *config.ServerConfig

GetSeverConfig returns the server configuration

func (*AppConfig) Save

func (ac *AppConfig) Save() error

Save saves the server configuration to svault.toml

func (*AppConfig) ToJson

func (ac *AppConfig) ToJson() map[string]interface{}

ToJson returns the server configuration as json

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳