handler

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Copyright 2019-2020 Axetroy. All rights reserved. MIT license.

Copyright 2019-2020 Axetroy. All rights reserved. MIT license.

Copyright 2019-2020 Axetroy. All rights reserved. MIT license.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EmailHandler

type EmailHandler struct {
	// contains filtered or unexported fields
}

func (*EmailHandler) GetChannel

func (h *EmailHandler) GetChannel() message_queue.Chanel

func (*EmailHandler) GetTopic

func (h *EmailHandler) GetTopic() message_queue.Topic

func (*EmailHandler) OnMessage

func (h *EmailHandler) OnMessage(message *nsq.Message) error

type Handler

type Handler interface {
	GetTopic() message_queue.Topic
	GetChannel() message_queue.Chanel
	OnMessage(message *nsq.Message) error
}

type NotifyHandler

type NotifyHandler struct {
	// contains filtered or unexported fields
}

func NewEmailHandler

func NewEmailHandler(topic message_queue.Topic, chanel message_queue.Chanel) *NotifyHandler

func NewNotifyHandler

func NewNotifyHandler(topic message_queue.Topic, chanel message_queue.Chanel) *NotifyHandler

func (*NotifyHandler) GetChannel

func (h *NotifyHandler) GetChannel() message_queue.Chanel

func (*NotifyHandler) GetTopic

func (h *NotifyHandler) GetTopic() message_queue.Topic

func (*NotifyHandler) OnMessage

func (h *NotifyHandler) OnMessage(message *nsq.Message) error

Jump to

Keyboard shortcuts

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