distribution

package
v3.1.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2018 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrWaitTimeout   = fmt.Errorf("wait timeout")
	ErrProcessExists = fmt.Errorf("process exists")
)

Err define

View Source
var MsgChan = make(chan string, 3)

Functions

func Start

func Start(cache *redis.Client, db storage.DI) error

func SubscribeChannel

func SubscribeChannel(redisCli *redis.Client) (err error)

Types

type DistHandler

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

func (*DistHandler) SendCallback

func (dh *DistHandler) SendCallback(receiver *metadata.Subscription, event string) (err error)

func (*DistHandler) StartDistribute

func (dh *DistHandler) StartDistribute() (err error)

type EventHandler

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

func (*EventHandler) GetDistInst

func (eh *EventHandler) GetDistInst(e *metadata.EventInst) []metadata.DistInst

func (*EventHandler) SaveEventDone

func (eh *EventHandler) SaveEventDone(event *metadata.EventInstCtx) (err error)

func (*EventHandler) StartHandleInsts

func (eh *EventHandler) StartHandleInsts() (err error)

Jump to

Keyboard shortcuts

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