apps

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2022 License: MulanPSL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitAllApp

func InitAllApp() error

func LoadGrpcApp

func LoadGrpcApp(server *grpc.Server)

LoadGrpcApp 加载所有的Grpc app

func LoadRESTfulApp

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

LoadHttpApp 装载所有的http app

func LoadedGrpcApp

func LoadedGrpcApp() (apps []string)

LoadedGrpcApp 查询加载成功的服务

func LoadedInternalApp

func LoadedInternalApp() (apps []string)

LoadedInternalApp 查询加载成功的服务

func LoadedRESTfulApp

func LoadedRESTfulApp() (apps []string)

LoadedRESTfulApp 查询加载成功的服务

func RegistryGrpcApp

func RegistryGrpcApp(app GRPCApp)

RegistryGrpcApp RegistryService 服务实例注册

func RegistryInternalApp

func RegistryInternalApp(app InternalApp)

RegistryInternalApp 服务实例注册

func RegistryRESTfulApp

func RegistryRESTfulApp(app RESTfulApp)

RegistryRESTfulApp 服务实例注册

Types

type GRPCApp

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

GRPCApp GRPCService GRPC服务的实例

func GetGrpcApp

func GetGrpcApp(name string) GRPCApp

type InternalApp

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

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

Directories

Path Synopsis
api
api
api
api
api

Jump to

Keyboard shortcuts

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