proto

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_modules_supervisor_proto_supervisor_proto protoreflect.FileDescriptor
View Source
var Supervisor_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "proto.Supervisor",
	HandlerType: (*SupervisorServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Restart",
			Handler:    _Supervisor_Restart_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "modules/supervisor/proto/supervisor.proto",
}

Supervisor_ServiceDesc is the grpc.ServiceDesc for Supervisor service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterSupervisorServer

func RegisterSupervisorServer(s grpc.ServiceRegistrar, srv SupervisorServer)

Types

type Response

type Response struct {
	Status int32  `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"`
	Reason string `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"`
	// contains filtered or unexported fields
}

func (*Response) Descriptor deprecated

func (*Response) Descriptor() ([]byte, []int)

Deprecated: Use Response.ProtoReflect.Descriptor instead.

func (*Response) GetReason

func (x *Response) GetReason() string

func (*Response) GetStatus

func (x *Response) GetStatus() int32

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) ProtoReflect

func (x *Response) ProtoReflect() protoreflect.Message

func (*Response) Reset

func (x *Response) Reset()

func (*Response) String

func (x *Response) String() string

type RestartReq

type RestartReq struct {
	Image    string `protobuf:"bytes,1,opt,name=Image,proto3" json:"Image,omitempty"`
	NewImage string `protobuf:"bytes,2,opt,name=NewImage,proto3" json:"NewImage,omitempty"`
	// contains filtered or unexported fields
}

func (*RestartReq) Descriptor deprecated

func (*RestartReq) Descriptor() ([]byte, []int)

Deprecated: Use RestartReq.ProtoReflect.Descriptor instead.

func (*RestartReq) GetImage

func (x *RestartReq) GetImage() string

func (*RestartReq) GetNewImage

func (x *RestartReq) GetNewImage() string

func (*RestartReq) ProtoMessage

func (*RestartReq) ProtoMessage()

func (*RestartReq) ProtoReflect

func (x *RestartReq) ProtoReflect() protoreflect.Message

func (*RestartReq) Reset

func (x *RestartReq) Reset()

func (*RestartReq) String

func (x *RestartReq) String() string

type SupervisorClient

type SupervisorClient interface {
	Restart(ctx context.Context, in *RestartReq, opts ...grpc.CallOption) (*Response, error)
}

SupervisorClient is the client API for Supervisor 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 NewSupervisorClient

func NewSupervisorClient(cc grpc.ClientConnInterface) SupervisorClient

type SupervisorServer

type SupervisorServer interface {
	Restart(context.Context, *RestartReq) (*Response, error)
	// contains filtered or unexported methods
}

SupervisorServer is the server API for Supervisor service. All implementations must embed UnimplementedSupervisorServer for forward compatibility

type UnimplementedSupervisorServer

type UnimplementedSupervisorServer struct {
}

UnimplementedSupervisorServer must be embedded to have forward compatible implementations.

func (UnimplementedSupervisorServer) Restart

type UnsafeSupervisorServer

type UnsafeSupervisorServer interface {
	// contains filtered or unexported methods
}

UnsafeSupervisorServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SupervisorServer will result in compilation errors.

Jump to

Keyboard shortcuts

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