Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterServiceLifecycleServer(s grpc.ServiceRegistrar, srv ServiceLifecycleServer)
- type ServiceLifecycleClient
- type ServiceLifecycleServer
- type UnimplementedServiceLifecycleServer
- func (UnimplementedServiceLifecycleServer) CheckProcessStarted(context.Context, *common.Empty) (*common.Empty, error)
- func (UnimplementedServiceLifecycleServer) CheckProcessStopped(context.Context, *common.Empty) (*common.Empty, error)
- func (UnimplementedServiceLifecycleServer) RestartProcess(context.Context, *common.Empty) (*common.Empty, error)
- func (UnimplementedServiceLifecycleServer) StartProcess(context.Context, *common.Empty) (*common.Empty, error)
- func (UnimplementedServiceLifecycleServer) StopProcess(context.Context, *common.Empty) (*common.Empty, error)
- type UnsafeServiceLifecycleServer
Constants ¶
const ( ServiceLifecycle_StartProcess_FullMethodName = "/service.ServiceLifecycle/StartProcess" ServiceLifecycle_StopProcess_FullMethodName = "/service.ServiceLifecycle/StopProcess" ServiceLifecycle_RestartProcess_FullMethodName = "/service.ServiceLifecycle/RestartProcess" ServiceLifecycle_CheckProcessStarted_FullMethodName = "/service.ServiceLifecycle/CheckProcessStarted" ServiceLifecycle_CheckProcessStopped_FullMethodName = "/service.ServiceLifecycle/CheckProcessStopped" )
Variables ¶
var File_pkg_agent_app_slm_pb_slm_proto protoreflect.FileDescriptor
var ServiceLifecycle_ServiceDesc = grpc.ServiceDesc{ ServiceName: "service.ServiceLifecycle", HandlerType: (*ServiceLifecycleServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "StartProcess", Handler: _ServiceLifecycle_StartProcess_Handler, }, { MethodName: "StopProcess", Handler: _ServiceLifecycle_StopProcess_Handler, }, { MethodName: "RestartProcess", Handler: _ServiceLifecycle_RestartProcess_Handler, }, { MethodName: "CheckProcessStarted", Handler: _ServiceLifecycle_CheckProcessStarted_Handler, }, { MethodName: "CheckProcessStopped", Handler: _ServiceLifecycle_CheckProcessStopped_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "pkg/agent/app/slm/pb/slm.proto", }
ServiceLifecycle_ServiceDesc is the grpc.ServiceDesc for ServiceLifecycle service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterServiceLifecycleServer ¶
func RegisterServiceLifecycleServer(s grpc.ServiceRegistrar, srv ServiceLifecycleServer)
Types ¶
type ServiceLifecycleClient ¶
type ServiceLifecycleClient interface {
StartProcess(ctx context.Context, in *common.Empty, opts ...grpc.CallOption) (*common.Empty, error)
StopProcess(ctx context.Context, in *common.Empty, opts ...grpc.CallOption) (*common.Empty, error)
RestartProcess(ctx context.Context, in *common.Empty, opts ...grpc.CallOption) (*common.Empty, error)
CheckProcessStarted(ctx context.Context, in *common.Empty, opts ...grpc.CallOption) (*common.Empty, error)
CheckProcessStopped(ctx context.Context, in *common.Empty, opts ...grpc.CallOption) (*common.Empty, error)
}
ServiceLifecycleClient is the client API for ServiceLifecycle service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewServiceLifecycleClient ¶
func NewServiceLifecycleClient(cc grpc.ClientConnInterface) ServiceLifecycleClient
type ServiceLifecycleServer ¶
type ServiceLifecycleServer interface {
StartProcess(context.Context, *common.Empty) (*common.Empty, error)
StopProcess(context.Context, *common.Empty) (*common.Empty, error)
RestartProcess(context.Context, *common.Empty) (*common.Empty, error)
CheckProcessStarted(context.Context, *common.Empty) (*common.Empty, error)
CheckProcessStopped(context.Context, *common.Empty) (*common.Empty, error)
// contains filtered or unexported methods
}
ServiceLifecycleServer is the server API for ServiceLifecycle service. All implementations must embed UnimplementedServiceLifecycleServer for forward compatibility.
type UnimplementedServiceLifecycleServer ¶
type UnimplementedServiceLifecycleServer struct{}
UnimplementedServiceLifecycleServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedServiceLifecycleServer) CheckProcessStarted ¶
func (UnimplementedServiceLifecycleServer) CheckProcessStopped ¶
func (UnimplementedServiceLifecycleServer) RestartProcess ¶
func (UnimplementedServiceLifecycleServer) StartProcess ¶
func (UnimplementedServiceLifecycleServer) StopProcess ¶
type UnsafeServiceLifecycleServer ¶
type UnsafeServiceLifecycleServer interface {
// contains filtered or unexported methods
}
UnsafeServiceLifecycleServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ServiceLifecycleServer will result in compilation errors.