registry

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2024 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package registry is used to register subsystems from other packages.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Deregister

func Deregister(name string)

func GetDefaultConfig added in v0.1.0

func GetDefaultConfig(name string) *pb.DeviceSubsystemConfig

func List added in v0.1.0

func List() []string

func Register

func Register(name string, creator CreatorFunc, defaultCfg *pb.DeviceSubsystemConfig)

Types

type CreatorFunc

type CreatorFunc func(ctx context.Context, logger logging.Logger, updateConf *pb.DeviceSubsystemConfig) (subsystems.Subsystem, error)

func GetCreator

func GetCreator(name string) CreatorFunc

Jump to

Keyboard shortcuts

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