rtm

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2017 License: MIT Imports: 9 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DirectProvider

type DirectProvider struct{}

func (DirectProvider) Init

func (provider DirectProvider) Init() error

func (DirectProvider) PublishMessage

func (provider DirectProvider) PublishMessage(mi *MessagingInfo) error

type MessagingInfo

type MessagingInfo struct {
	Message string
}

type NotUseProvider

type NotUseProvider struct{}

func (NotUseProvider) Init

func (provider NotUseProvider) Init() error

func (NotUseProvider) PublishMessage

func (provider NotUseProvider) PublishMessage(mi *MessagingInfo) error

type NsqProvider

type NsqProvider struct{}

func (NsqProvider) Init

func (provider NsqProvider) Init() error

func (NsqProvider) PublishMessage

func (provider NsqProvider) PublishMessage(mi *MessagingInfo) error

type Provider

type Provider interface {
	Init() error
	PublishMessage(*MessagingInfo) error
}

func GetMessagingProvider

func GetMessagingProvider() Provider

Jump to

Keyboard shortcuts

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