Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterShutdownServiceServer(s grpc.ServiceRegistrar, srv ShutdownServiceServer)
- type ShutdownRequest
- func (*ShutdownRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ShutdownRequest) GetMessage() string
- func (x *ShutdownRequest) GetTimeout() uint32
- func (*ShutdownRequest) ProtoMessage()
- func (x *ShutdownRequest) ProtoReflect() protoreflect.Message
- func (x *ShutdownRequest) Reset()
- func (x *ShutdownRequest) String() string
- type ShutdownResponse
- type ShutdownServiceClient
- type ShutdownServiceServer
- type UnimplementedShutdownServiceServer
- type UnsafeShutdownServiceServer
Constants ¶
const (
ShutdownService_SendShutdown_FullMethodName = "/shutdown.ShutdownService/SendShutdown"
)
Variables ¶
var File_shutdown_service_proto protoreflect.FileDescriptor
var ShutdownService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "shutdown.ShutdownService", HandlerType: (*ShutdownServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "SendShutdown", Handler: _ShutdownService_SendShutdown_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "shutdown/service.proto", }
ShutdownService_ServiceDesc is the grpc.ServiceDesc for ShutdownService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterShutdownServiceServer ¶
func RegisterShutdownServiceServer(s grpc.ServiceRegistrar, srv ShutdownServiceServer)
Types ¶
type ShutdownRequest ¶
type ShutdownRequest struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` Timeout *uint32 `protobuf:"varint,2,opt,name=timeout,proto3,oneof" json:"timeout,omitempty"` // contains filtered or unexported fields }
func (*ShutdownRequest) Descriptor
deprecated
func (*ShutdownRequest) Descriptor() ([]byte, []int)
Deprecated: Use ShutdownRequest.ProtoReflect.Descriptor instead.
func (*ShutdownRequest) GetMessage ¶
func (x *ShutdownRequest) GetMessage() string
func (*ShutdownRequest) GetTimeout ¶
func (x *ShutdownRequest) GetTimeout() uint32
func (*ShutdownRequest) ProtoMessage ¶
func (*ShutdownRequest) ProtoMessage()
func (*ShutdownRequest) ProtoReflect ¶
func (x *ShutdownRequest) ProtoReflect() protoreflect.Message
func (*ShutdownRequest) Reset ¶
func (x *ShutdownRequest) Reset()
func (*ShutdownRequest) String ¶
func (x *ShutdownRequest) String() string
type ShutdownResponse ¶
type ShutdownResponse struct { Received bool `protobuf:"varint,1,opt,name=received,proto3" json:"received,omitempty"` // contains filtered or unexported fields }
func (*ShutdownResponse) Descriptor
deprecated
func (*ShutdownResponse) Descriptor() ([]byte, []int)
Deprecated: Use ShutdownResponse.ProtoReflect.Descriptor instead.
func (*ShutdownResponse) GetReceived ¶
func (x *ShutdownResponse) GetReceived() bool
func (*ShutdownResponse) ProtoMessage ¶
func (*ShutdownResponse) ProtoMessage()
func (*ShutdownResponse) ProtoReflect ¶
func (x *ShutdownResponse) ProtoReflect() protoreflect.Message
func (*ShutdownResponse) Reset ¶
func (x *ShutdownResponse) Reset()
func (*ShutdownResponse) String ¶
func (x *ShutdownResponse) String() string
type ShutdownServiceClient ¶
type ShutdownServiceClient interface {
SendShutdown(ctx context.Context, in *ShutdownRequest, opts ...grpc.CallOption) (*ShutdownResponse, error)
}
ShutdownServiceClient is the client API for ShutdownService 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 NewShutdownServiceClient ¶
func NewShutdownServiceClient(cc grpc.ClientConnInterface) ShutdownServiceClient
type ShutdownServiceServer ¶
type ShutdownServiceServer interface { SendShutdown(context.Context, *ShutdownRequest) (*ShutdownResponse, error) // contains filtered or unexported methods }
ShutdownServiceServer is the server API for ShutdownService service. All implementations must embed UnimplementedShutdownServiceServer for forward compatibility
type UnimplementedShutdownServiceServer ¶
type UnimplementedShutdownServiceServer struct { }
UnimplementedShutdownServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedShutdownServiceServer) SendShutdown ¶
func (UnimplementedShutdownServiceServer) SendShutdown(context.Context, *ShutdownRequest) (*ShutdownResponse, error)
type UnsafeShutdownServiceServer ¶
type UnsafeShutdownServiceServer interface {
// contains filtered or unexported methods
}
UnsafeShutdownServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ShutdownServiceServer will result in compilation errors.