container

package
v0.21.1 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2024 License: GPL-3.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildContainer

func BuildContainer() (container *dig.Container)

BuildContainer ...

func NewAuthenticator added in v0.21.1

func NewAuthenticator() plugins.Authorization

func NewBackupConfig

func NewBackupConfig(cfg *models.AppConfig) *backup.Config

NewBackupConfig ...

func NewHttpAccessFilter added in v0.21.1

func NewHttpAccessFilter() plugins.HttpAccessFilter

func NewLoggerConfig added in v0.13.0

func NewLoggerConfig() *logging.Config

func NewMigrationsConfig

func NewMigrationsConfig() *migrations.Config

NewMigrationsConfig ...

func NewMqttConfig

func NewMqttConfig(cfg *models.AppConfig) *mqtt.Config

NewMqttConfig ...

func NewOrmConfig

func NewOrmConfig(cfg *models.AppConfig) *orm.Config

NewOrmConfig ...

func NewZigbee2mqttConfig

func NewZigbee2mqttConfig(_ *models.AppConfig) *zigbee2mqtt.Config

NewZigbee2mqttConfig ...

func ReadConfig added in v0.13.0

func ReadConfig() (conf *models.AppConfig)

Types

type Authenticator added in v0.21.1

type Authenticator struct {
}

func (Authenticator) AuthPlain added in v0.21.1

func (a Authenticator) AuthPlain(login, pass string) (*m.User, error)

func (Authenticator) AuthREST added in v0.21.1

func (a Authenticator) AuthREST(ctx context.Context, accessToken string, requestURI *url.URL, method string) (*m.User, bool, error)

type FxNull

type FxNull struct {
}

FxNull ...

func (FxNull) Append

func (FxNull) Append(hook fx.Hook)

Append ...

type HttpAccessFilter added in v0.21.1

type HttpAccessFilter struct {
}

func (HttpAccessFilter) Auth added in v0.21.1

func (h HttpAccessFilter) Auth(next http.Handler) http.Handler

Jump to

Keyboard shortcuts

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