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 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
Click to show internal directories.
Click to hide internal directories.