Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { ServiceName string `yaml:"serviceName"` HttpServer *httpserver.Config `yaml:"httpServer"` Gin *xgin.Config `yaml:"gin"` DB *db.Config `yaml:"db"` Redis *xredis.Config `yaml:"redis"` Log *xlog.Config `yaml:"log"` RabbitMq *xrabbitmq.Config `yaml:"rabbitMq"` Kafka *xkafka.Config `yaml:"kafka"` KafkaTopic *ConfigKafkaTopicOne `yaml:"kafkaTopic"` // 如果使用kafka,请配置Topic名称到这个字段 Email *ConfigEmail `yaml:"email"` }
type ConfigEmail ¶
type ConfigEmail struct { Smtp ConfigSmtp `yaml:"smtp"` Driver string `yaml:"driver"` Consumer int `yaml:"consumer"` BatchNumber int `yaml:"batchNumber"` UploadFile ConfigUploadFile `yaml:"uploadFile"` }
func (ConfigEmail) MarshalEasyJSON ¶
func (v ConfigEmail) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (ConfigEmail) MarshalJSON ¶
func (v ConfigEmail) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*ConfigEmail) UnmarshalEasyJSON ¶
func (v *ConfigEmail) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*ConfigEmail) UnmarshalJSON ¶
func (v *ConfigEmail) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type ConfigKafkaTopicOne ¶
type ConfigSmtp ¶
type ConfigSmtp struct { Port int `yaml:"port"` Tls bool `yaml:"tls"` FromAddr string `yaml:"fromAddr"` User string `yaml:"user"` Password string `yaml:"password"` Host string `yaml:"host"` }
func (ConfigSmtp) MarshalEasyJSON ¶
func (v ConfigSmtp) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (ConfigSmtp) MarshalJSON ¶
func (v ConfigSmtp) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*ConfigSmtp) UnmarshalEasyJSON ¶
func (v *ConfigSmtp) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*ConfigSmtp) UnmarshalJSON ¶
func (v *ConfigSmtp) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type ConfigUploadFile ¶
type ConfigUploadFile struct {
Dir string `yaml:"dir"`
}
func (ConfigUploadFile) MarshalEasyJSON ¶
func (v ConfigUploadFile) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (ConfigUploadFile) MarshalJSON ¶
func (v ConfigUploadFile) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*ConfigUploadFile) UnmarshalEasyJSON ¶
func (v *ConfigUploadFile) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*ConfigUploadFile) UnmarshalJSON ¶
func (v *ConfigUploadFile) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type Smtp ¶
type Smtp struct { Subject string `json:"subject"` SenderName string `json:"sender_name"` Body string `json:"body"` Receiver []string `json:"receiver"` ReceiverName []string `json:"receiver_name"` Attachment []string `json:"attachment"` Remark []string `json:"remark"` }
func (Smtp) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Smtp) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Smtp) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Smtp) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface