core

package
v0.4.9 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2022 License: MIT Imports: 8 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AppName = "RFID App"
View Source
var Container = dig.New()
View Source
var Version = "latest"

Functions

func GetContainer

func GetContainer() *dig.Container

func InitConfig

func InitConfig()

func InitLogger

func InitLogger() (*zap.Logger, error)

func RegisterComponent added in v0.4.5

func RegisterComponent(comp Component)

Types

type Component added in v0.4.5

type Component interface {
	Priority() int
	OnEngineInited(r *gin.Engine) error
}

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 DefaultComponent added in v0.4.5

type DefaultComponent struct{}

func (*DefaultComponent) Priority added in v0.4.5

func (dc *DefaultComponent) Priority() int

Jump to

Keyboard shortcuts

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