events

package
v0.0.109 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2025 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const EVENT_CHANGE = "change"
View Source
const EVENT_DELETE = "delete"
View Source
const EVENT_RECREATE = "recreate"
View Source
const EVENT_RESTART = "restart"
View Source
const EVENT_STOP = "stop"

Variables

This section is empty.

Functions

func Event

func Event(shared *shared.Shared, event Events)

func Handle

func Handle(platform string, shared *shared.Shared, msg interface{})

func HandleChange

func HandleChange(shared *shared.Shared, event Events)

func HandleConnect

func HandleConnect(shared *shared.Shared, container platforms.IContainer)

func HandleDelete added in v0.0.107

func HandleDelete(shared *shared.Shared, event Events)

func HandleDie

func HandleDie(shared *shared.Shared, container platforms.IContainer)

func HandleDisconnect

func HandleDisconnect(shared *shared.Shared, container platforms.IContainer)

func HandleKill

func HandleKill(shared *shared.Shared, container platforms.IContainer)

func HandleRestart added in v0.0.107

func HandleRestart(shared *shared.Shared, event Events)

func HandleStart

func HandleStart(shared *shared.Shared, container platforms.IContainer)

func HandleStop

func HandleStop(shared *shared.Shared, container platforms.IContainer)

func NewEventsListener

func NewEventsListener(shared *shared.Shared, e chan raft.KV)

func NewPlatformEventsListener

func NewPlatformEventsListener(shared *shared.Shared, platform string)

Types

type Events added in v0.0.107

type Events struct {
	Kind  string
	Group string
	Name  string
	Data  []byte
}

func New added in v0.0.107

func New(kind string, group string, name string, data []byte) Events

func (*Events) GetKey added in v0.0.107

func (event *Events) GetKey() string

func (*Events) ToJson added in v0.0.107

func (event *Events) ToJson() ([]byte, error)

Jump to

Keyboard shortcuts

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