config

package
v0.0.0-...-301f07c Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2021 License: MIT Imports: 5 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 {
	Token string `yaml:"token"`
	DbURL string `yaml:"db_url"`

	CallH int `yaml:"call_h"`
	CallM int `yaml:"call_m"`
	CallS int `yaml:"call_s"`

	// preset message
	MessageSignUp   string `yaml:"message_sign_up"`
	MessageSignOut  string `yaml:"message_sign_out"`
	MessageDefault  string `yaml:"message_default"`
	MessageNonTrain string `yaml:"message_non_train"`
	MessageSpecFor0 string `yaml:"message_spec_for_0"`

	MessageNotice []string `yaml:"message_notice"`

	// keyboard
	CountTrain   int `yaml:"count_train"` // count training
	MainKeyboard []struct {
		Label  string `yaml:"label"`
		Coach  string `yaml:"coach"`
		NotDay string `yaml:"not_day"`
	} `yaml:"main_keyboard"`
	Schedule string `yaml:"schedule"` // расписание
	SchPhoto string `yaml:"sch_photo"`
	MyTrain  string `yaml:"my_train"`
}

Config project template

func GetProjectConfig

func GetProjectConfig() (c *Config)

GetProjectConfig from dir config if err exit with status 1

Jump to

Keyboard shortcuts

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