service

package
v0.0.0-...-1af453a Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2018 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RouterKeys = []string{""}

Functions

func RunService

func RunService(url, exchange, retryExchange, qName string, sender common.Sender, logger common.Logger, maxRetry int)

RunService run a mail sender consumer

Types

type Worker

type Worker struct {
	Sender common.Sender
	Logger common.Logger
}

func (*Worker) Do

func (w *Worker) Do(payload []byte, routerKey string) (error, bool)

Jump to

Keyboard shortcuts

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