core

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CoordinatorObject  = kv.HeaderType('C')
	NotificationObject = kv.HeaderType('N')
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseCoordinator

type BaseCoordinator struct {
	plugins.Config
	coordinator.KeyCoder
	*time.Ticker
}

func NewBaseCoordinator

func NewBaseCoordinator() *BaseCoordinator

NewBaseCoordinator returns a new base coordinator instance.

func (*BaseCoordinator) ServiceType added in v1.0.0

func (coord *BaseCoordinator) ServiceType() plugins.ServiceType

ServiceType returns the plug-ing service type.

func (*BaseCoordinator) SetKeyCoder added in v1.0.0

func (coord *BaseCoordinator) SetKeyCoder(coder coordinator.KeyCoder)

SetKeyCoder sets the key coder.

type CoordinatorService

type CoordinatorService interface {
	coordinator.Store
	plugins.Service
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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