regs

package
v0.41.0 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultRegCatalog = newRegCatalog()
View Source
var DefaultRegKV = newRegKV()
View Source
var DefaultRegMember = newRegMember()

Functions

This section is empty.

Types

type RegCatalog

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

func (*RegCatalog) Observe

func (r *RegCatalog) Observe(of *emitter.EventOf[*entries.Entry])

func (*RegCatalog) Register

func (r *RegCatalog) Register(handler RegCatalogHandler)

type RegCatalogHandler

type RegCatalogHandler interface {
	SetCatalogEntry(entry *entries.Entry)
	RemoveCatalogEntry(entry *entries.Entry)
}

type RegKV

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

func (*RegKV) Observe

func (r *RegKV) Observe(of *emitter.EventOf[*entries.SignedEntry])

func (*RegKV) Register

func (r *RegKV) Register(handler RegKVHandler)

type RegKVHandler

type RegKVHandler interface {
	SetKVEntry(entry *entries.SignedEntry)
	RemoveKvEntry(entry *entries.SignedEntry)
}

type RegMember

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

func (*RegMember) Observe

func (r *RegMember) Observe(of *emitter.EventOf[*observe.MemberFqdn])

func (*RegMember) Register

func (r *RegMember) Register(handler RegMemberHandler)

type RegMemberHandler

type RegMemberHandler interface {
	DisableEntryIp(fqdn, ip string)
	EnableEntryIp(fqdn, ip string)
}

Jump to

Keyboard shortcuts

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