metadata

package
v0.0.0-...-05f333e Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package metadata implement the metadata events watcher.

Index

Constants

View Source
const (
	// WatcherID is the metadata watcher's ID.
	WatcherID = "metadata-watcher"
	// LongpollEvent is the metadata's longpoll event type ID.
	LongpollEvent = "metadata-watcher,longpoll"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Watcher

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

Watcher is the metadata event watcher implementation.

func New

func New() *Watcher

New allocates and initializes a new Watcher.

func (*Watcher) Events

func (mp *Watcher) Events() []string

Events returns an slice with all implemented events.

func (*Watcher) ID

func (mp *Watcher) ID() string

ID returns the metadata event watcher id.

func (*Watcher) Run

func (mp *Watcher) Run(ctx context.Context, evType string) (bool, interface{}, error)

Run listens to metadata changes and report back the event.

Jump to

Keyboard shortcuts

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