Versions in this module Expand all Collapse all v1 v1.0.0 Jan 22, 2026 Changes in this version + func Inject(db *gorm.DB, deps *HostEnv) *gorm.DB + func RegisterFactory(f Factory) + type AccessLogJSONFormatter struct + func (f *AccessLogJSONFormatter) Format(entry *logrus.Entry) ([]byte, error) + type Factory interface + New func(id string, cfg InstanceConfig) (Instance, error) + Type func() string + func AllFactories() []Factory + func GetFactory(t string) (Factory, bool) + type HostEnv struct + Conf *config.Config + DB *gorm.DB + Logger *ReopenLogger + MQTT *mqtt.Server + PluginLog logrus.FieldLogger + WG *sync.WaitGroup + func FromEnv(tx *gorm.DB) *HostEnv + type Instance interface + Close func() error + Get func() any + ID func() string + Init func(parent context.Context, env *HostEnv) error + Type func() string + UpdateConfig func(cfg InstanceConfig) error + type InstanceConfig any + type ReopenLogger struct + AccessLogger *logrus.Logger + AccesslogPath string + AccesslogPathFile *os.File + MU sync.Mutex + MqttLogger *logrus.Logger + MqttlogPath string + MqttlogPathFile *os.File + RunLogger *logrus.Logger + RunlogPath string + RunlogPathFile *os.File + SqlLogger *logrus.Logger + SqllogPath string + SqllogPathFile *os.File + func NewReopenLogger(path string, debug bool) (*ReopenLogger, error) + func (l *ReopenLogger) Close() + func (l *ReopenLogger) Reopen() error