config

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckConfigValidity

func CheckConfigValidity() error

CheckConfigValidity check bot config validity

func CheckEnvironment

func CheckEnvironment()

CheckEnvironment check existence of sub-directories and files required for the operation of the program and creates them otherwise

func ClearData

func ClearData() error

ClearData remove all IGopher data sub-folder and their content. It will recreate the necessary environment at the end no matter if an error has occurred or not.

func ExportConfig

func ExportConfig(c types.BotConfigYaml)

ExportConfig export BotConfigYaml instance to config.yaml config file

func ImportConfig

func ImportConfig() types.BotConfigYaml

ImportConfig read config.yaml, parse it in BotConfigYaml instance and finally return it

func ResetBotConfig

func ResetBotConfig() types.BotConfigYaml

ResetBotConfig return default bot configuration instance

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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