config

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CmdRoleDesc

type CmdRoleDesc struct {
	Cmd   string
	Name  string
	Group string
}

type Config

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

func Read

func Read() Config

func (Config) GetChatResponsesConfig

func (c Config) GetChatResponsesConfig() (string, map[string]string)

func (Config) GetCommandConfig

func (c Config) GetCommandConfig() map[string][2]string

func (Config) GetDelayMins

func (c Config) GetDelayMins(valuesConfName string) []time.Duration

func (Config) GetDurationSec

func (c Config) GetDurationSec(valueConfName string) time.Duration

func (Config) GetIdSet

func (c Config) GetIdSet(namesConfName string, nameToId map[string]string) common.StringSet

func (Config) GetPath

func (c Config) GetPath(pathConfName string) string

func (Config) GetPrefixConfig

func (c Config) GetPrefixConfig() (map[string]string, []string, []CmdRoleDesc, []string)

func (Config) GetSlice

func (c Config) GetSlice(valuesConfName string) []any

func (Config) GetString

func (c Config) GetString(valueConfName string) string

func (Config) GetStringSlice

func (c Config) GetStringSlice(valuesConfName string) []string

func (Config) Require

func (c Config) Require(valueConfName string) string

Jump to

Keyboard shortcuts

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