factory

package
v1.23.8 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2026 License: MIT Imports: 8 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCache

func GetCache() (c cache.C)

func GetCtx

func GetCtx() (ctx context.Context)

func GetMqtt added in v1.10.0

func GetMqtt() (session mqtt.Session)

func GetNamedOrm

func GetNamedOrm(aliaName string) *persistence.OrmContext

func GetOrm

func GetOrm() *persistence.OrmContext

func GetRedisClient added in v1.23.0

func GetRedisClient() (c *redis.Client)

func GetWebServer added in v1.12.6

func GetWebServer() (s *server.Server)

func RegisterCache

func RegisterCache(c cache.C)

func RegisterCtx

func RegisterCtx(ctx context.Context)

func RegisterMqtt added in v1.10.0

func RegisterMqtt(session mqtt.Session)

func RegisterRedis added in v1.21.13

func RegisterRedis(opts redis.Options)

RegisterRedis creates and registers a shared redis.Client; closes on app ctx done.

func RegisterWebServer added in v1.12.6

func RegisterWebServer(s server.Server)

Types

This section is empty.

Jump to

Keyboard shortcuts

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