Documentation ¶
Index ¶
- func InitAllApp() error
- func LoadGrpcApp(server *grpc.Server)
- func LoadRESTfulApp(pathPrefix string, root *restful.Container)
- func LoadedGrpcApp() (apps []string)
- func LoadedInternalApp() (apps []string)
- func LoadedRESTfulApp() (apps []string)
- func RegistryGrpcApp(app GRPCApp)
- func RegistryInternalApp(app InternalApp)
- func RegistryRESTfulApp(app RESTfulApp)
- type GRPCApp
- type InternalApp
- type RESTfulApp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitAllApp ¶
func InitAllApp() error
func LoadRESTfulApp ¶
func LoadRESTfulApp(pathPrefix string, root *restful.Container)
LoadHttpApp 装载所有的http app
Types ¶
type InternalApp ¶
InternalApp 内部服务实例, 不需要暴露
func GetInternalApp ¶
func GetInternalApp(name string) InternalApp
type RESTfulApp ¶
type RESTfulApp interface { Registry(*restful.WebService) Config() error Name() string Version() string }
HTTPService Http服务的实例
func GetRESTfulApp ¶
func GetRESTfulApp(name string) RESTfulApp
Click to show internal directories.
Click to hide internal directories.