app

package
v1.9.6 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2022 License: MIT Imports: 10 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 {
	InternalApp
	Registry(*grpc.Server)
}

GRPCService GRPC服务的实例

func GetGrpcApp

func GetGrpcApp(name string) GRPCApp

type GinApp added in v1.6.9

type GinApp interface {
	InternalApp
	Registry(gin.IRouter)
	Version() string
}

HTTPService Http服务的实例

func GetGinApp added in v1.6.9

func GetGinApp(name string) GinApp

type HTTPApp

type HTTPApp interface {
	InternalApp
	Registry(router.SubRouter)
}

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 {
	InternalApp
	Registry(*restful.WebService)
	Version() string
}

HTTPService Http服务的实例

func GetRESTfulApp added in v1.8.0

func GetRESTfulApp(name string) RESTfulApp

Directories

Path Synopsis
api

Jump to

Keyboard shortcuts

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