pubsub

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Added    = watch.Added
	Modified = watch.Modified
	Deleted  = watch.Deleted
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event = watch.Event

type EventType

type EventType = watch.EventType

type Interface

type Interface = watch.Interface

type PubSub

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

func New

func New() *PubSub

func (*PubSub) Publish

func (s *PubSub) Publish(evt Event)

func (*PubSub) Subscribe

func (s *PubSub) Subscribe(ctx context.Context, filter Selector) watch.Interface

type Selector

type Selector struct {
	Type      runtime.Object
	Namespace string
	Name      string
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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