serviceregistry

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	EventType
	Object interface{}
}

type EventHandler

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

func NewEventHandler

func NewEventHandler(seregoClient *serego.ServiceRegistry, persistentMeta map[string]string, log zerolog.Logger) *EventHandler

func (*EventHandler) WatchForEvents

func (e *EventHandler) WatchForEvents(mainCtx context.Context, eventsChannel chan *Event) error

type EventType

type EventType string
const (
	EventCreate EventType = "create"
	EventUpdate EventType = "update"
	EventDelete EventType = "delete"
)

Jump to

Keyboard shortcuts

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