informer

package
v0.0.0-...-5fda629 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2022 License: MulanPSL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventLabel

type EventLabel string

type PublisherLabel

type PublisherLabel string

type SubscriberLabel

type SubscriberLabel string

type SupbInformer

type SupbInformer struct {
	SubscribeTable map[EventLabel]map[SubscriberLabel]chan interface{}
	// contains filtered or unexported fields
}

func NewInformer

func NewInformer(ctx context.Context, prefix string) *SupbInformer

func (*SupbInformer) Publish

func (r *SupbInformer) Publish(label SubscriberLabel, event EventLabel, data interface{})

func (*SupbInformer) Subscribe

func (r *SupbInformer) Subscribe(label SubscriberLabel, event EventLabel) <-chan interface{}

func (*SupbInformer) UnSubscribe

func (r *SupbInformer) UnSubscribe(label SubscriberLabel, event EventLabel)

Jump to

Keyboard shortcuts

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