Documentation
¶
Index ¶
- Constants
- Variables
- func GenerateEmbedConfigfile() error
- func GetContainer() *dig.Container
- func Ignored() bool
- func InitConfig(p Bootup) error
- func InitLogger(p Bootup) (*zap.Logger, error)
- func NotifyStarted()
- func Provide(constructor ...interface{})
- func ProvideStartup(constructor ...any)
- func ToEmbedConfig(content []byte, keys ...string)
- type Bootup
- type OptionalParam
- type ServiceParam
- type Startup
Constants ¶
View Source
const ( EventError = "event.error" EventTracing = "event.tracing" EventInit = "event.gin.inited" //trigger when gin ready to service. EventStopping = "event.gin.stopping" EventStarted = "sys.started" //trigger when all inited done. )
View Source
const (
NO_INIT = "SCM_MUTED"
)
Variables ¶
View Source
var AppName = "RFID App"
View Source
var Bus EventBus.Bus
View Source
var ConfigFolder = "config"
View Source
var Container = dig.New()
View Source
var EmbedConfigFile = "embed" // for init function can't guarantee embed config be load before startup, so write all content to file.
View Source
var StartupOptions = dig.Group("startups")
View Source
var Version = "latest"
Functions ¶
func GenerateEmbedConfigfile ¶ added in v0.7.4
func GenerateEmbedConfigfile() error
func GetContainer ¶
func InitConfig ¶
func NotifyStarted ¶ added in v0.7.8
func NotifyStarted()
func ProvideStartup ¶ added in v0.5.1
func ProvideStartup(constructor ...any)
func ToEmbedConfig ¶ added in v0.5.4
Types ¶
type OptionalParam ¶ added in v0.5.7
type ServiceParam ¶ added in v0.8.3
Click to show internal directories.
Click to hide internal directories.