Documentation ¶
Index ¶
- func InitAllApp() error
- func LoadGinApp(pathPrefix string, root gin.IRouter)
- func LoadGrpcApp(server *grpc.Server)
- func LoadHertzApp(pathPrefix string, root route.IRouter)
- func LoadHttpApp(pathPrefix string, root router.Router)
- func LoadRESTfulApp(pathPrefix string, root *restful.Container)
- func LoadedGinApp() (apps []string)
- func LoadedGrpcApp() (apps []string)
- func LoadedHertzApp() (apps []string)
- func LoadedHttpApp() (apps []string)
- func LoadedInternalApp() (apps []string)
- func LoadedRESTfulApp() (apps []string)
- func RegistryGRPCApp(app GRPCApp)
- func RegistryGinApp(app GinApp)
- func RegistryHertzApp(app HertzApp)
- func RegistryHttpApp(app HTTPApp)
- func RegistryInternalApp(app InternalApp)
- func RegistryRESTfulApp(app RESTfulApp)
- type GRPCApp
- type GinApp
- type HTTPApp
- type HertzApp
- type InternalApp
- type RESTfulApp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitAllApp ¶
func InitAllApp() error
func LoadHertzApp ¶
LoadHertzApp 装载所有的 hertz app
func LoadHttpApp ¶
LoadHttpApp 装载所有的 http app
func LoadRESTfulApp ¶
func LoadRESTfulApp(pathPrefix string, root *restful.Container)
LoadHttpApp 装载所有的 restful app
Types ¶
type GRPCApp ¶
type GRPCApp interface { InternalApp Registry(*grpc.Server) }
GrpcApp GRPC服务的实例
func GetGRPCApp ¶
type GinApp ¶
type GinApp interface { InternalApp Registry(gin.IRouter) Version() string }
GinApp Gin 服务的实例
type HTTPApp ¶
type HTTPApp interface { InternalApp Registry(router.SubRouter) }
HTTPService Http服务的实例
func GetHttpApp ¶
type HertzApp ¶
type HertzApp interface { InternalApp Registry(route.IRouter) Version() string }
HertzApp Hertz服务的实例
func GetHertzApp ¶
type InternalApp ¶
InternalApp 内部服务实例, 不需要暴露
func GetInternalApp ¶
func GetInternalApp(name string) InternalApp
type RESTfulApp ¶
type RESTfulApp interface { InternalApp Registry(*restful.WebService) Version() string }
RESTfulApp RESTful 服务的实例
func GetRESTfulApp ¶
func GetRESTfulApp(name string) RESTfulApp
Click to show internal directories.
Click to hide internal directories.