Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { DebugMode bool `yaml:"DebugMode"` LineChannelToken string `yaml:"LineChannelToken"` LineChannelSecret string `yaml:"LineChannelSecret"` ChatGptApiUrl string `yaml:"ChatGptApiUrl"` ChatGptAccessToken string `yaml:"ChatGptAccessToken"` SessionExpirePeriod time.Duration `yaml:"SessionExpirePeriod"` SessionClearInterval time.Duration `yaml:"SessionClearInterval"` NotPushExpireMessage bool `yaml:"NotPushExpireMessage"` DefaultRole string `yaml:"DefaultRole"` Roles Roles `yaml:"Roles"` ServePort int `yaml:"ServePort"` MaxTaskQueueCap int `yaml:"MaxTaskQueueCap"` LogPath string `yaml:"LogPath"` CmdsTalkToAI []string `yaml:"CmdsTalkToAI"` CmdsClearSession []string `yaml:"CmdsClearSession"` CmdsChangeRole []string `yaml:"CmdsChangeRole"` }
func DefaultConfig ¶
func DefaultConfig() *Config
func LoadConfig ¶
func (*Config) MergeDefault ¶
func (*Config) SaveConfig ¶
type Roles ¶
func DefaultRoles ¶
func DefaultRoles() Roles
Click to show internal directories.
Click to hide internal directories.