Documentation ¶
Index ¶
- Variables
- func CallServer(command string, args []string)
- func NewServer(host string, command string, allowAnyCommand bool)
- func RegisterRcodeServer(s grpc.ServiceRegistrar, srv RcodeServer)
- type LaunchRequest
- func (*LaunchRequest) Descriptor() ([]byte, []int)deprecated
- func (x *LaunchRequest) GetArgs() []string
- func (x *LaunchRequest) GetCommand() string
- func (x *LaunchRequest) GetRemoteHostname() string
- func (*LaunchRequest) ProtoMessage()
- func (x *LaunchRequest) ProtoReflect() protoreflect.Message
- func (x *LaunchRequest) Reset()
- func (x *LaunchRequest) String() string
- type LaunchResponse
- func (*LaunchResponse) Descriptor() ([]byte, []int)deprecated
- func (x *LaunchResponse) GetMessage() string
- func (x *LaunchResponse) GetReturnCode() int32
- func (*LaunchResponse) ProtoMessage()
- func (x *LaunchResponse) ProtoReflect() protoreflect.Message
- func (x *LaunchResponse) Reset()
- func (x *LaunchResponse) String() string
- type RcodeClient
- type RcodeConf
- type RcodeServer
- type UnimplementedRcodeServer
- type UnsafeRcodeServer
Constants ¶
This section is empty.
Variables ¶
var File_rcode_proto protoreflect.FileDescriptor
var Rcode_ServiceDesc = grpc.ServiceDesc{ ServiceName: "Rcode", HandlerType: (*RcodeServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "LaunchCode", Handler: _Rcode_LaunchCode_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "rcode.proto", }
Rcode_ServiceDesc is the grpc.ServiceDesc for Rcode service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func CallServer ¶
func RegisterRcodeServer ¶
func RegisterRcodeServer(s grpc.ServiceRegistrar, srv RcodeServer)
Types ¶
type LaunchRequest ¶
type LaunchRequest struct { RemoteHostname string `protobuf:"bytes,1,opt,name=remote_hostname,json=remoteHostname,proto3" json:"remote_hostname,omitempty"` Args []string `protobuf:"bytes,2,rep,name=args,proto3" json:"args,omitempty"` Command string `protobuf:"bytes,3,opt,name=command,proto3" json:"command,omitempty"` // contains filtered or unexported fields }
func (*LaunchRequest) Descriptor
deprecated
func (*LaunchRequest) Descriptor() ([]byte, []int)
Deprecated: Use LaunchRequest.ProtoReflect.Descriptor instead.
func (*LaunchRequest) GetArgs ¶
func (x *LaunchRequest) GetArgs() []string
func (*LaunchRequest) GetCommand ¶ added in v1.1.0
func (x *LaunchRequest) GetCommand() string
func (*LaunchRequest) GetRemoteHostname ¶
func (x *LaunchRequest) GetRemoteHostname() string
func (*LaunchRequest) ProtoMessage ¶
func (*LaunchRequest) ProtoMessage()
func (*LaunchRequest) ProtoReflect ¶
func (x *LaunchRequest) ProtoReflect() protoreflect.Message
func (*LaunchRequest) Reset ¶
func (x *LaunchRequest) Reset()
func (*LaunchRequest) String ¶
func (x *LaunchRequest) String() string
type LaunchResponse ¶
type LaunchResponse struct { ReturnCode int32 `protobuf:"varint,3,opt,name=return_code,json=returnCode,proto3" json:"return_code,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*LaunchResponse) Descriptor
deprecated
func (*LaunchResponse) Descriptor() ([]byte, []int)
Deprecated: Use LaunchResponse.ProtoReflect.Descriptor instead.
func (*LaunchResponse) GetMessage ¶
func (x *LaunchResponse) GetMessage() string
func (*LaunchResponse) GetReturnCode ¶
func (x *LaunchResponse) GetReturnCode() int32
func (*LaunchResponse) ProtoMessage ¶
func (*LaunchResponse) ProtoMessage()
func (*LaunchResponse) ProtoReflect ¶
func (x *LaunchResponse) ProtoReflect() protoreflect.Message
func (*LaunchResponse) Reset ¶
func (x *LaunchResponse) Reset()
func (*LaunchResponse) String ¶
func (x *LaunchResponse) String() string
type RcodeClient ¶
type RcodeClient interface {
LaunchCode(ctx context.Context, in *LaunchRequest, opts ...grpc.CallOption) (*LaunchResponse, error)
}
RcodeClient is the client API for Rcode 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 NewRcodeClient ¶
func NewRcodeClient(cc grpc.ClientConnInterface) RcodeClient
type RcodeServer ¶
type RcodeServer interface { LaunchCode(context.Context, *LaunchRequest) (*LaunchResponse, error) // contains filtered or unexported methods }
RcodeServer is the server API for Rcode service. All implementations must embed UnimplementedRcodeServer for forward compatibility
type UnimplementedRcodeServer ¶
type UnimplementedRcodeServer struct { }
UnimplementedRcodeServer must be embedded to have forward compatible implementations.
func (UnimplementedRcodeServer) LaunchCode ¶
func (UnimplementedRcodeServer) LaunchCode(context.Context, *LaunchRequest) (*LaunchResponse, error)
type UnsafeRcodeServer ¶ added in v1.1.0
type UnsafeRcodeServer interface {
// contains filtered or unexported methods
}
UnsafeRcodeServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to RcodeServer will result in compilation errors.