Documentation ¶
Index ¶
- Variables
- func RegisterCommandServer(s *grpc.Server, srv CommandServer)
- type CommandClient
- type CommandServer
- type StartServerRequest
- type StartServerResponse
- func (*StartServerResponse) Descriptor() ([]byte, []int)deprecated
- func (x *StartServerResponse) GetId() string
- func (x *StartServerResponse) GetListenPort() int32
- func (*StartServerResponse) ProtoMessage()
- func (x *StartServerResponse) ProtoReflect() protoreflect.Message
- func (x *StartServerResponse) Reset()
- func (x *StartServerResponse) String() string
- type UnimplementedCommandServer
Constants ¶
This section is empty.
Variables ¶
View Source
var File_control_proto protoreflect.FileDescriptor
Functions ¶
func RegisterCommandServer ¶
func RegisterCommandServer(s *grpc.Server, srv CommandServer)
Types ¶
type CommandClient ¶
type CommandClient interface {
GrpcRequestServer(ctx context.Context, in *StartServerRequest, opts ...grpc.CallOption) (*StartServerResponse, error)
}
CommandClient is the client API for Command service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewCommandClient ¶
func NewCommandClient(cc grpc.ClientConnInterface) CommandClient
type CommandServer ¶
type CommandServer interface {
GrpcRequestServer(context.Context, *StartServerRequest) (*StartServerResponse, error)
}
CommandServer is the server API for Command service.
type StartServerRequest ¶
type StartServerRequest struct {
// contains filtered or unexported fields
}
func (*StartServerRequest) Descriptor
deprecated
func (*StartServerRequest) Descriptor() ([]byte, []int)
Deprecated: Use StartServerRequest.ProtoReflect.Descriptor instead.
func (*StartServerRequest) ProtoMessage ¶
func (*StartServerRequest) ProtoMessage()
func (*StartServerRequest) ProtoReflect ¶
func (x *StartServerRequest) ProtoReflect() protoreflect.Message
func (*StartServerRequest) Reset ¶
func (x *StartServerRequest) Reset()
func (*StartServerRequest) String ¶
func (x *StartServerRequest) String() string
type StartServerResponse ¶
type StartServerResponse struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` ListenPort int32 `protobuf:"varint,2,opt,name=listen_port,json=listenPort,proto3" json:"listen_port,omitempty"` // contains filtered or unexported fields }
func (*StartServerResponse) Descriptor
deprecated
func (*StartServerResponse) Descriptor() ([]byte, []int)
Deprecated: Use StartServerResponse.ProtoReflect.Descriptor instead.
func (*StartServerResponse) GetId ¶
func (x *StartServerResponse) GetId() string
func (*StartServerResponse) GetListenPort ¶
func (x *StartServerResponse) GetListenPort() int32
func (*StartServerResponse) ProtoMessage ¶
func (*StartServerResponse) ProtoMessage()
func (*StartServerResponse) ProtoReflect ¶
func (x *StartServerResponse) ProtoReflect() protoreflect.Message
func (*StartServerResponse) Reset ¶
func (x *StartServerResponse) Reset()
func (*StartServerResponse) String ¶
func (x *StartServerResponse) String() string
type UnimplementedCommandServer ¶
type UnimplementedCommandServer struct { }
UnimplementedCommandServer can be embedded to have forward compatible implementations.
func (*UnimplementedCommandServer) GrpcRequestServer ¶
func (*UnimplementedCommandServer) GrpcRequestServer(context.Context, *StartServerRequest) (*StartServerResponse, error)
Click to show internal directories.
Click to hide internal directories.