config

package
v0.0.0-...-9a318e1 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2022 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Debug      bool
	AuthSecret string
	Version    string `mapstructure:"version"`
	Port       string `mapstructure:"port"`
	Messages   Messages
}

func Init

func Init() (*Config, error)

type Errors

type Errors struct {
	UnknownCommand string `mapstructure:"unknown_command"`
}

type IniConf

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

func (*IniConf) CheckAndLoadConf

func (c *IniConf) CheckAndLoadConf(path string)

func (*IniConf) CheckSection

func (c *IniConf) CheckSection(section string) *ini.Section

func (*IniConf) GetBoolKey

func (c *IniConf) GetBoolKey(section, key string) bool

func (*IniConf) GetStringKey

func (c *IniConf) GetStringKey(section, key string) string

type Messages

type Messages struct {
	Responses
	Errors
}

type Responses

type Responses struct {
	InlineContentTitle       string `mapstructure:"inline_content_title"`
	InlineContentDescription string `mapstructure:"inline_content_description"`
	NoStats                  string `mapstructure:"no_stats"`
}

Jump to

Keyboard shortcuts

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