Documentation ¶
Index ¶
- type Queue
- type QueueEngineKafka
- type QueueEngineRabbitMq
- type Service
- func (s *Service) Close()
- func (s *Service) DoMessagePull() error
- func (s *Service) DoMessagePush(smtp *bo.Smtp) error
- func (s *Service) GetEmailQueue() (q Queue)
- func (s *Service) SmtpDeleteAttachmentList(smtp *bo.Smtp)
- func (s *Service) SmtpGetAttachmentList(smtp *bo.Smtp) map[string]string
- func (s *Service) SmtpSend(smtp *bo.Smtp) (err error)
- func (s *Service) Start()
- func (s *Service) UploadCheckFile(filePath string) bool
- func (s *Service) UploadCreateTmpFile() (string, string)
- func (s *Service) UploadDeleteTmpFile(name string)
- func (s *Service) UploadGetTmpFilePath(name string) string
- func (s *Service) UploadGetUploadDir() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type QueueEngineKafka ¶
type QueueEngineKafka struct{}
func (*QueueEngineKafka) Close ¶
func (q *QueueEngineKafka) Close(s *Service)
func (*QueueEngineKafka) Pull ¶
func (q *QueueEngineKafka) Pull(s *Service, callback func([]byte) error) error
func (*QueueEngineKafka) Push ¶
func (q *QueueEngineKafka) Push(s *Service, payload []byte) (err error)
func (*QueueEngineKafka) Start ¶
func (q *QueueEngineKafka) Start(s *Service)
type QueueEngineRabbitMq ¶
type QueueEngineRabbitMq struct{}
func (*QueueEngineRabbitMq) Close ¶
func (q *QueueEngineRabbitMq) Close(s *Service)
func (*QueueEngineRabbitMq) Pull ¶
func (q *QueueEngineRabbitMq) Pull(s *Service, callback func([]byte) error) error
func (*QueueEngineRabbitMq) Push ¶
func (q *QueueEngineRabbitMq) Push(s *Service, payload []byte) error
func (*QueueEngineRabbitMq) Start ¶
func (q *QueueEngineRabbitMq) Start(s *Service)
type Service ¶
type Service struct { DB *dao.Dao // 消息驱动配置 RabbitMQ *xrabbitmq.AMQP KafkaEmailConsumer *xkafka.Consumer KafkaEmailProducer *xkafka.Producer // contains filtered or unexported fields }
func (*Service) DoMessagePull ¶
func (*Service) SmtpDeleteAttachmentList ¶
func (*Service) SmtpGetAttachmentList ¶
func (*Service) UploadCheckFile ¶
func (*Service) UploadCreateTmpFile ¶
func (*Service) UploadDeleteTmpFile ¶
func (*Service) UploadGetTmpFilePath ¶
func (*Service) UploadGetUploadDir ¶
Click to show internal directories.
Click to hide internal directories.