package
Version:
v0.1.5
Opens a new window with list of versions in this module.
Published: Mar 7, 2023
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type App struct {
Name string `mapstructure:"name"`
Version string `mapstructure:"version"`
}
type Config struct {
App `mapstructure:"app"`
HTTP `mapstructure:"http"`
Logger `mapstructure:"logger"`
WeCom `mapstructure:"wecom"`
GPT `mapstructure:"gpt"`
Database `mapstructure:"database"`
Conversation `mapstructure:"conversation"`
}
type Conversation struct {
CloseSessionFlag string `mapstructure:"closeSessionFlag"`
CloseSessionReply string `mapstructure:"closeSessionReply"`
EnableEnterEvent bool `mapstructure:"enableEnterEvent"`
EnterEventReply string `mapstructure:"enterEventReply"`
}
type Database struct {
Driver string `mapstructure:"driver"`
DataSource string `mapstructure:"dataSource"`
}
type GPT struct {
ApiKey string `mapstructure:"api_key"`
}
type HTTP struct {
Port string `mapstructure:"port"`
}
type Logger struct {
Level string `mapstructure:"level"`
FileLoggingEnabled bool `mapstructure:"file_enabled"`
ConsoleLoggingEnabled bool `mapstructure:"console_enabled"`
Filename string `mapstructure:"filename"`
}
type WeCom struct {
CorpId string `mapstructure:"corp_id"`
CorpSecret string `mapstructure:"corp_secret"`
AgentId int64 `mapstructure:"agent_id"`
EncodingAESKey string `mapstructure:"encoding_aes_key"`
Token string `mapstructure:"token"`
Url string `mapstructure:"url"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.