cluster_events

package
v0.0.0-...-ecf5411 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitClusterEvents

func InitClusterEvents(daoDeps []interface{}, pullInterval int) error

Types

type ClusterEventManager

type ClusterEventManager struct {
	Dao *dao.ClusterEventDao
	// contains filtered or unexported fields
}

func (*ClusterEventManager) Init

func (c *ClusterEventManager) Init(daoDeps []interface{}) error

@daoDeps: dao 实例依赖

func (*ClusterEventManager) RegisterEventExecutor

func (c *ClusterEventManager) RegisterEventExecutor(channel string, exec EventExecutor)

func (*ClusterEventManager) StartPullEvents

func (c *ClusterEventManager) StartPullEvents()

type EventExecutor

type EventExecutor interface {
	Create(channel string, data string) error
	Delete(channel string, data string) error
	Update(channel string, data string) error
}

集群更新事件相关

Jump to

Keyboard shortcuts

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