endpoint

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EndpointEvent

type EndpointEvent struct {
	// Type is the type of the event.
	Type EventType
	// Obj is the object that the event is about.
	Obj interface{}
}

func NewEndpointEvent

func NewEndpointEvent(t EventType, obj interface{}) *EndpointEvent

type EndpointWatcher

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

func Watcher

func Watcher() *EndpointWatcher

NewEndpointWatcher creates a new endpoint watcher.

func (*EndpointWatcher) Init

func (e *EndpointWatcher) Init(ctx context.Context) error

func (*EndpointWatcher) Refresh

func (e *EndpointWatcher) Refresh(ctx context.Context) error

func (*EndpointWatcher) Stop

func (e *EndpointWatcher) Stop(ctx context.Context) error

type EventType

type EventType int
const (
	EndpointCreated EventType = iota
	EndpointDeleted
)

func (EventType) String

func (e EventType) String() string

Jump to

Keyboard shortcuts

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