Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { System System `mapstructure:"system" json:"system" yaml:"system"` Mysql Mysql `mapstructure:"mysql" json:"mysql" yaml:"mysql"` Gin Gin `mapstructure:"gin" json:"gin" yaml:"gin"` Jwt Jwt `mapstructure:"jwt" json:"jwt" yaml:"jwt"` Redis Redis `mapstructure:"redis" json:"redis" yaml:"redis"` GPT GPT `mapstructure:"gpt" json:"gpt" yaml:"gpt"` // contains filtered or unexported fields }
var Conf *Config
type GPT ¶
type GPT struct { Prompt string `mapstructure:"prompt" json:"prompt" yaml:"prompt"` ChatGPTPlatform model.ModelType `mapstructure:"chat_gpt_platform" json:"chat_gpt_platform" yaml:"chat_gpt_platform"` Temperature float64 `mapstructure:"temperature" json:"temperature" yaml:"temperature"` Kimi GPTModel `mapstructure:"kimi" json:"kimi" yaml:"kimi"` DeepSeek GPTModel `mapstructure:"deep_seek" json:"deep_seek" yaml:"deep_seek"` }
type Mysql ¶
type Mysql struct { Host string `mapstructure:"host" json:"host" yaml:"host"` Port int `mapstructure:"port" json:"port" yaml:"port"` User string `mapstructure:"user" json:"user" yaml:"user"` Password string `mapstructure:"password" json:"password" yaml:"password"` Database string `mapstructure:"database" json:"database" yaml:"database"` MaxIdleConns int `mapstructure:"max_idle_conns" json:"max_idle_conns" yaml:"max_idle_conns"` MaxOpenConns int `mapstructure:"max_open_conns" json:"max_open_conns" yaml:"max_open_conns"` LogLevel int `mapstructure:"Log_level" json:"Log_level" yaml:"Log_level"` Charset string `mapstructure:"charset" json:"charset" yaml:"charset"` TimeZone string `mapstructure:"time_zone" json:"time_zone" yaml:"time_zone"` ParseTime bool `mapstructure:"parse_time" json:"parse_time" yaml:"parse_time"` Colorful bool `mapstructure:"colorful" json:"colorful" yaml:"colorful"` IgnoreRecordNotFoundError bool `mapstructure:"ignore_record_not_found_error" json:"ignore_record_not_found_error" yaml:"ignore_record_not_found_error"` ParameterizedQueries bool `mapstructure:"parameterized_queries" json:"parameterized_queries" yaml:"parameterized_queries"` }
type Redis ¶
type Redis struct { UserName string `mapstructure:"user_name" json:"user_name" yaml:"user_name"` Password string `mapstructure:"password" json:"password" yaml:"password"` Addr string `mapstructure:"addr" json:"addr" yaml:"addr"` DB int `mapstructure:"db" json:"db" yaml:"db"` ReadTimeout time.Duration `mapstructure:"read_timeout" json:"read_timeout" yaml:"read_timeout"` WriteTimeout time.Duration `mapstructure:"write_timeout" json:"write_timeout" yaml:"write_timeout"` }
Click to show internal directories.
Click to hide internal directories.