config

package
v0.0.0-...-51aff30 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2020 License: MIT Imports: 3 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 {
	Server string `yaml:"server"`

	VK struct {
		ConfirmationResponse string `yaml:"confirmation_response"`
		Token                string `yaml:"token"`
		VKServer             string `yaml:"vkserver"`
		APIVersion           string `yaml:"apiversion"`
		Secret               string `yaml:"secret"`
	} `yaml:"vk"`

	DB DBConfig `yaml:"storage"`
}

func LoadConfig

func LoadConfig(filename string) (*Config, error)

type DBConfig

type DBConfig struct {
	Kind     string `yaml:"kind"`
	Filename string `yaml:"filename"`
}

type Lang

type Lang uint8
const (
	Ru Lang = iota
	En
)

func (*Lang) UnmarshalYAML

func (ll *Lang) UnmarshalYAML(unmarshal func(interface{}) error) error

type LogLevel

type LogLevel uint8
const (
	Errors LogLevel = iota
	Debugs
)

func (*LogLevel) UnmarshalYAML

func (ll *LogLevel) UnmarshalYAML(unmarshal func(interface{}) error) error

Jump to

Keyboard shortcuts

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