injector

package
v0.0.0-...-eb626f9 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2023 License: Apache-2.0 Imports: 34 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitGormDB

func InitGormDB() (*gorm.DB, func(), error)

func InitLogger

func InitLogger() (func(), error)

func NewGormDB

func NewGormDB() (*gorm.DB, func(), error)

func RunServer

func RunServer(ctx context.Context, opts ...api.Option) error

Types

type ApiInjector

type ApiInjector struct {
	// contains filtered or unexported fields
}

func BuildApiInjector

func BuildApiInjector() (*ApiInjector, func(), error)

func NewApiInjector

func NewApiInjector(
	engine *gin.Engine,
	auth auth.Repository,
	casbinEnforcer *casbin.SyncedEnforcer,
	seed application.Seed,
) *ApiInjector

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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