Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppOption ¶
type AppOption func(app *App)
App 的选项函数。
func WithGrpcServer ¶
func WithGrpcServer(grpcServerInfo GrpcServerInfo) AppOption
WithGrpcServer 用于构建向App注册Server的选项函数。
func WithHttpServer ¶
WithHttpServer 用于构建向App注册Server的选项函数。
type GrpcServerInfo ¶
GrpcServerInfo 存放Grpc服务信息。
func NewGrpcServerInfo ¶
func NewGrpcServerInfo(grpcServer *grpc.Server, endPoint string) GrpcServerInfo
NewGrpcServerInfo 用于创建供App托管生命周期的Grpc服务信息。
Click to show internal directories.
Click to hide internal directories.