config

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SaveConfigToFile

func SaveConfigToFile(cfg Config, filePath string) error

Types

type Config

type Config struct {
	Logger     logger.LoggerConfig        `json:"Logger"`
	Webhooks   webhook.WebHookConfig      `json:"Webhooks"`
	Clients    clients.ClientsConfig      `json:"Clients"`
	LevelDB    db.LevelDBConfig           `json:"LevelDB"`
	Listener   listener.ListenerConfig    `json:"Listener"`
	Processors processor.ProcessorsConfig `json:"Processors"`
}

func DefaultConfig

func DefaultConfig() Config

func LoadConfigFromFile

func LoadConfigFromFile(filePath string) (*Config, error)

LoadConfigFromFile creates a new Config from the given file.

func (Config) IsValid

func (cfg Config) IsValid() (bool, error)

Jump to

Keyboard shortcuts

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