Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetupGRpcApi ¶
func SetupGRpcApi(ai GRpcInitializer)
Types ¶
type GRpcApiStarter ¶
type GRpcApiStarter struct {
infra.BaseStarter
}
func (*GRpcApiStarter) Start ¶
func (w *GRpcApiStarter) Start(ctx context.Context)
type GRpcInitializeRegister ¶
type GRpcInitializeRegister struct { Initializers []GRpcInitializer SetupApis []GRpcInitializer }
初始化注册器
func (*GRpcInitializeRegister) Register ¶
func (i *GRpcInitializeRegister) Register(ai GRpcInitializer)
注册一个初始化对象
func (*GRpcInitializeRegister) Setup ¶
func (i *GRpcInitializeRegister) Setup(ai GRpcInitializer)
type GRpcInitializer ¶
type GRpcInitializer interface { //用于对象实例化后的初始化操作 Init(grpcName, grpcPort string) Setup(grpcName, grpcPort string) }
func GetGRpcSetupApis ¶
func GetGRpcSetupApis() []GRpcInitializer
Click to show internal directories.
Click to hide internal directories.