bo

package
v0.0.0-...-7705b48 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 21, 2021 License: MIT Imports: 11 Imported by: 0

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 ConfigKafkaTopicOne struct {
	Group     string   `yaml:"group"`     // 消费者组名称
	TopicList []string `yaml:"topicList"` // Topic 列表
}

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

func (v Smtp) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Smtp) MarshalJSON

func (v Smtp) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Smtp) UnmarshalEasyJSON

func (v *Smtp) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Smtp) UnmarshalJSON

func (v *Smtp) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL