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
Click to show internal directories.
Click to hide internal directories.