Documentation
¶
Index ¶
- Variables
- func GetContainer() *dig.Container
- func InitConfig(p Bootup) error
- func InitLogger(p Bootup) (*zap.Logger, error)
- func Provide(constructor ...interface{})
- func ProvideStartup(constructor ...any)
- func RegisterComponent(comp Component)
- func ToEmbedConfig(content []byte)
- type Bootup
- type Component
- type Components
- type ConfigYamlContent
- type DefaultComponent
- type Startup
Constants ¶
This section is empty.
Variables ¶
View Source
var AppName = "RFID App"
View Source
var Container = dig.New()
View Source
var StartupOptions = dig.Group("startups")
View Source
var Version = "latest"
Functions ¶
func GetContainer ¶
func InitConfig ¶
func ProvideStartup ¶ added in v0.5.1
func ProvideStartup(constructor ...any)
func RegisterComponent ¶ added in v0.4.5
func RegisterComponent(comp Component)
func ToEmbedConfig ¶ added in v0.5.4
func ToEmbedConfig(content []byte)
Types ¶
type Bootup ¶ added in v0.5.4
type Bootup struct { dig.In EmbedConfig []ConfigYamlContent `group:"config"` }
type Components ¶ added in v0.4.5
type Components struct {
Components []Component
}
func (*Components) InitAll ¶ added in v0.4.5
func (cs *Components) InitAll(r *gin.Engine)
type ConfigYamlContent ¶ added in v0.5.4
type ConfigYamlContent []byte
type DefaultComponent ¶ added in v0.4.5
type DefaultComponent struct{}
func (*DefaultComponent) Priority ¶ added in v0.4.5
func (dc *DefaultComponent) Priority() int
Click to show internal directories.
Click to hide internal directories.