slm

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
var File_pkg_agent_app_slm_pb_slm_proto protoreflect.FileDescriptor
View Source
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.

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.

Jump to

Keyboard shortcuts

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