registration

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2021 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 Connection added in v0.13.0

type Connection interface {
	Publish(msg *choria.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

func New(c *choria.Framework, conn Connection, logger *logrus.Entry) *Manager

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