Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CtlService ¶
type CtlService interface { // AddHandleFunc add ctl message handler AddHandleFunc(method pb.CmdMethod, h func(context.Context, *pb.Request, *pb.Response) error, async bool) // SendCtlMessage send ctl message to a service SendCtlMessage(ctx context.Context, serviceType metadata.ServiceType, serviceID string, req *pb.Request) (*pb.Response, error) // NewRequest new a request by cmd method NewRequest(pb.CmdMethod) *pb.Request // Release release response Release(*pb.Response) // Start start ctl service Start() error // Close close the service Close() error }
CtlService is used to send ctl request to another service or handle request from another service.
func GetCtlService ¶
func GetCtlService() CtlService
GetCtlService get ctl cluster from process level runtime
func NewCtlService ¶
NewCtlService new ctl service to send ctl message to another service or handle ctl request from other ctl service.
Click to show internal directories.
Click to hide internal directories.