Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { ServerHost string `json:"server_host"` AccessToken string `json:"access_token"` LogPath string `json:"log_path"` InstructSwitch types.KV `json:"instruct_switch"` }
func DefaultConfig ¶
func DefaultConfig() Config
type ConfigStore ¶
type ConfigStore struct {
// contains filtered or unexported fields
}
func NewConfigStore ¶
func NewConfigStore() (*ConfigStore, error)
func (*ConfigStore) Config ¶
func (s *ConfigStore) Config() (Config, error)
func (*ConfigStore) Load ¶
func (s *ConfigStore) Load() (err error)
func (*ConfigStore) Save ¶
func (s *ConfigStore) Save(cfg Config) error
Click to show internal directories.
Click to hide internal directories.