cfg

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: MIT Imports: 17 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFromCtx

func GetFromCtx[T ModelCfg](ctx context.Context) (T, bool)

func GetFromEnv

func GetFromEnv(obj any) error

func GetFromGinCtx

func GetFromGinCtx[T ModelCfg](ctx *gin.Context) (T, bool)

Types

type ModelCfg

type ModelCfg interface {
	Close() error
	Init(uuid string, di di.DI) error
	Copy() ModelCfg
}

type ModelCfgMgr

type ModelCfgMgr interface {
	mid.GinMiddle
	interceptor.Interceptor
}

func NewFixModelCfgGinMid

func NewFixModelCfgGinMid[T ModelCfg](cfg T) ModelCfgMgr

Jump to

Keyboard shortcuts

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