Documentation ¶
Index ¶
- func InitAllApp() error
- func LoadGinApp(pathPrefix string, root gin.IRouter)
- func LoadGrpcApp(server *grpc.Server)
- func LoadHttpApp(pathPrefix string, root router.Router)
- func LoadRESTfulApp(pathPrefix string, root *restful.Container)
- func LoadedGinApp() (apps []string)
- func LoadedGrpcApp() (apps []string)
- func LoadedHttpApp() (apps []string)
- func LoadedInternalApp() (apps []string)
- func LoadedRESTfulApp() (apps []string)
- func RegistryGinApp(app GinApp)
- func RegistryGrpcApp(app GRPCApp)
- func RegistryHttpApp(app HTTPApp)
- func RegistryInternalApp(app InternalApp)
- func RegistryRESTfulApp(app RESTfulApp)
- type GRPCApp
- type GinApp
- type HTTPApp
- type InternalApp
- type RESTfulApp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitAllApp ¶ added in v1.5.3
func InitAllApp() error
func LoadGinApp ¶ added in v1.6.9
LoadGinApp 装载所有的gin app
func LoadHttpApp ¶
LoadHttpApp 装载所有的http app
func LoadRESTfulApp ¶ added in v1.8.0
func LoadRESTfulApp(pathPrefix string, root *restful.Container)
LoadHttpApp 装载所有的http app
func LoadedInternalApp ¶ added in v1.5.1
func LoadedInternalApp() (apps []string)
LoadedInternalApp 查询加载成功的服务
func LoadedRESTfulApp ¶ added in v1.8.0
func LoadedRESTfulApp() (apps []string)
LoadedHttpApp 查询加载成功的服务
func RegistryInternalApp ¶ added in v1.5.1
func RegistryInternalApp(app InternalApp)
RegistryInternalApp 服务实例注册
func RegistryRESTfulApp ¶ added in v1.8.0
func RegistryRESTfulApp(app RESTfulApp)
RegistryRESTfulApp 服务实例注册
Types ¶
type InternalApp ¶ added in v1.5.1
InternalApp 内部服务实例, 不需要暴露
func GetInternalApp ¶ added in v1.5.1
func GetInternalApp(name string) InternalApp
type RESTfulApp ¶ added in v1.8.0
type RESTfulApp interface { Registry(*restful.WebService) Config() error Name() string Version() string }
HTTPService Http服务的实例
func GetRESTfulApp ¶ added in v1.8.0
func GetRESTfulApp(name string) RESTfulApp
Click to show internal directories.
Click to hide internal directories.