apps

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetImpl

func GetImpl(name string) interface{}

返回一个对象, 任何类型都可以, 使用时, 由使用方进行断言

func InitGin

func InitGin(r gin.IRouter)

注册到Ioc容器里面的所有gin路由

func InitImpl

func InitImpl()

app初始化

func LoadedGinApps

func LoadedGinApps() (names []string)

已经加载完成的Gin App由哪些

func RegistryGin

func RegistryGin(svc GinService)

func RegistryImpl

func RegistryImpl(svc ImplService)

Types

type GinService

type GinService interface {
	Registry(r gin.IRouter)
	Config()
	Name() string
}

注册Gin编写的Handler

type ImplService

type ImplService interface {
	Config()
	Name() string
}

注册所有的app

Directories

Path Synopsis
api

Jump to

Keyboard shortcuts

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