Documentation ¶
Index ¶
- func AutoMigrate(db *gorm.DB) error
- func BuildContainer() (*dig.Container, func())
- func Init(ctx context.Context, opts ...Option) func()
- func InitHTTPServer(ctx context.Context, container *dig.Container) func()
- func InitStore(container *dig.Container) (func(), error)
- func InitWeb(container *dig.Container) *gin.Engine
- func SetTablePrefix(prefix string)
- type Config
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildContainer ¶
BuildContainer Create a dependency injection container
func InitHTTPServer ¶
InitHTTPServer - Initialize HTTP service
Types ¶
type Option ¶
type Option func(*options)
Option - Defining configuration items
func SetModelFile ¶
SetModelFile - Set the casbin model configuration file
func SetPermissionFile ¶
SetPermissionFile - Setting Permission data file
Directories ¶
Path | Synopsis |
---|---|
test
Package test Interface test How to use: go test -v
|
Package test Interface test How to use: go test -v |
test
Package test Interface test How to use: go test -v
|
Package test Interface test How to use: go test -v |
test
Package test Interface test How to use: go test -v
|
Package test Interface test How to use: go test -v |
Click to show internal directories.
Click to hide internal directories.