registration

package
v0.28.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChoriaFramework added in v0.24.0

type ChoriaFramework interface {
	NewMessage(payload []byte, agent string, collective string, msgType string, request inter.Message) (msg inter.Message, err error)
	Configuration() *config.Config
}

type Connection added in v0.13.0

type Connection interface {
	Publish(msg inter.Message) error
	IsConnected() bool
}

Connection provides the connection to the middleware

type Manager

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

Manager of registration plugins

func New

New creates a new instance of the registration subsystem manager

func (*Manager) RegisterProvider

func (reg *Manager) RegisterProvider(ctx context.Context, wg *sync.WaitGroup, provider RegistrationDataProvider) error

RegisterProvider creates a publisher for a new provider

func (*Manager) Start

func (reg *Manager) Start(ctx context.Context, wg *sync.WaitGroup) error

Start initializes the fully managed registration plugins and start publishing their data

type RegistrationDataProvider

type RegistrationDataProvider interface {
	StartRegistration(context.Context, *sync.WaitGroup, int, chan *data.RegistrationItem)
}

RegistrationDataProvider is a provider for data that can be registered into a running server instance using AddRegistrationProvider()

type Registrator

type Registrator interface {
	Init(cfg *config.Config, l *logrus.Entry)
	StartRegistration(context.Context, *sync.WaitGroup, int, chan *data.RegistrationItem)
}

Registrator is a full managed registration plugin

Jump to

Keyboard shortcuts

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