distribution

package
v3.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: May 7, 2019 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