app

package
v1.8.10 Latest Latest
Warning

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

Go to latest
Published: May 29, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

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

func LoadGinApp(pathPrefix string, root gin.IRouter)

LoadGinApp 装载所有的gin app

func LoadGrpcApp

func LoadGrpcApp(server *grpc.Server)

LoadGrpcApp 加载所有的Grpc app

func LoadHttpApp

func LoadHttpApp(pathPrefix string, root router.Router)

LoadHttpApp 装载所有的http app

func LoadRESTfulApp added in v1.8.0

func LoadRESTfulApp(pathPrefix string, root *restful.Container)

LoadHttpApp 装载所有的http app

func LoadedGinApp added in v1.7.2

func LoadedGinApp() (apps []string)

LoadedGinApp 查询加载成功的服务

func LoadedGrpcApp

func LoadedGrpcApp() (apps []string)

LoadedGrpcApp 查询加载成功的服务

func LoadedHttpApp

func LoadedHttpApp() (apps []string)

LoadedHttpApp 查询加载成功的服务

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 RegistryGinApp added in v1.6.9

func RegistryGinApp(app GinApp)

RegistryGinApp 服务实例注册

func RegistryGrpcApp

func RegistryGrpcApp(app GRPCApp)

RegistryService 服务实例注册

func RegistryHttpApp

func RegistryHttpApp(app HTTPApp)

RegistryHttpApp 服务实例注册

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 GRPCApp

type GRPCApp interface {
	Registry(*grpc.Server)
	Config() error
	Name() string
}

GRPCService GRPC服务的实例

func GetGrpcApp

func GetGrpcApp(name string) GRPCApp

type GinApp added in v1.6.9

type GinApp interface {
	Registry(gin.IRouter)
	Config() error
	Name() string
	Version() string
}

HTTPService Http服务的实例

func GetGinApp added in v1.6.9

func GetGinApp(name string) GinApp

type HTTPApp

type HTTPApp interface {
	Registry(router.SubRouter)
	Config() error
	Name() string
}

HTTPService Http服务的实例

func GetHttpApp

func GetHttpApp(name string) HTTPApp

type InternalApp added in v1.5.1

type InternalApp interface {
	Config() error
	Name() string
}

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

Jump to

Keyboard shortcuts

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