registrar

package
v0.0.0-...-cdf0fd8 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2022 License: CC0-1.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetModules

func GetModules(mods modules.Modules, names []string, logger logging.Logger) []modules.Module

GetModules returns the list of module implementations based on the given module names. For each module name that is specified but not found, a warning log is printed.

Types

type DefaultRegistrar

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

DefaultRegistrar represents a registrar that allows to handle the default egldjuno modules

func NewDefaultRegistrar

func NewDefaultRegistrar(parser messages.MessageAddressesParser) *DefaultRegistrar

NewDefaultRegistrar builds a new DefaultRegistrar

func (*DefaultRegistrar) BuildModules

func (r *DefaultRegistrar) BuildModules(
	cfg types.Config, encodingCfg *params.EncodingConfig, db db.Database, _ *client.Proxy,
) modules.Modules

BuildModules implements Registrar

type EmptyRegistrar

type EmptyRegistrar struct{}

EmptyRegistrar represents a Registrar which does not register any custom module

func (*EmptyRegistrar) BuildModules

BuildModules implements Registrar

type Registrar

type Registrar interface {
	BuildModules(types.Config, *params.EncodingConfig, db.Database, *client.Proxy) modules.Modules
}

Registrar represents a modules registrar. This allows to build a list of modules that can later be used by specifying their names inside the TOML configuration file.

Jump to

Keyboard shortcuts

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