factory

package
v1.9.11 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2023 License: MIT Imports: 8 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotFound = errors.New("404")
)

Functions

func Add added in v1.9.10

func Add[T any](o *T, name ...string)

func Get added in v1.9.10

func Get[T any](ptrType *T, name ...string) (err error)

func GetAmqp

func GetAmqp() (session rabbit.Session)

func GetCache

func GetCache() (c cache.C)

func GetCtx

func GetCtx() (ctx context.Context)

func GetNamedOrm

func GetNamedOrm(aliaName string) *persistence.OrmContext

func GetOrm

func GetOrm() *persistence.OrmContext

func RegisterAmqp

func RegisterAmqp(session rabbit.Session)

func RegisterCache

func RegisterCache(c cache.C)

func RegisterCtx

func RegisterCtx(ctx context.Context)

Types

This section is empty.

Jump to

Keyboard shortcuts

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