handler

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: May 31, 2020 License: MIT Imports: 8 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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