Documentation ¶
Index ¶
- Variables
- func RegisterExecServer(s grpc.ServiceRegistrar, srv ExecServer)
- type DefaultExecServer
- type ExecClient
- type ExecRequest
- func (*ExecRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ExecRequest) GetArgs() string
- func (x *ExecRequest) GetId() string
- func (x *ExecRequest) GetLimit() *durationpb.Duration
- func (*ExecRequest) ProtoMessage()
- func (x *ExecRequest) ProtoReflect() protoreflect.Message
- func (x *ExecRequest) Reset()
- func (x *ExecRequest) String() string
- type ExecResponse
- func (*ExecResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ExecResponse) GetResultCode() int32
- func (x *ExecResponse) GetStdError() string
- func (x *ExecResponse) GetStdOut() string
- func (*ExecResponse) ProtoMessage()
- func (x *ExecResponse) ProtoReflect() protoreflect.Message
- func (x *ExecResponse) Reset()
- func (x *ExecResponse) String() string
- type ExecServer
- type UnimplementedExecServer
- type UnsafeExecServer
Constants ¶
This section is empty.
Variables ¶
var Exec_ServiceDesc = grpc.ServiceDesc{ ServiceName: "grpcme.Exec", HandlerType: (*ExecServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Exec", Handler: _Exec_Exec_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "grpcme.proto", }
Exec_ServiceDesc is the grpc.ServiceDesc for Exec service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_grpcme_proto protoreflect.FileDescriptor
Functions ¶
func RegisterExecServer ¶ added in v0.3.0
func RegisterExecServer(s grpc.ServiceRegistrar, srv ExecServer)
Types ¶
type DefaultExecServer ¶ added in v0.3.0
type DefaultExecServer struct {
// contains filtered or unexported fields
}
func (*DefaultExecServer) Exec ¶ added in v0.3.0
func (it *DefaultExecServer) Exec(ctx context.Context, request *ExecRequest) (*ExecResponse, error)
type ExecClient ¶ added in v0.3.0
type ExecClient interface {
Exec(ctx context.Context, in *ExecRequest, opts ...grpc.CallOption) (*ExecResponse, error)
}
ExecClient is the client API for Exec 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 NewExecClient ¶ added in v0.3.0
func NewExecClient(cc grpc.ClientConnInterface) ExecClient
type ExecRequest ¶
type ExecRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Limit *durationpb.Duration `protobuf:"bytes,2,opt,name=limit,proto3,oneof" json:"limit,omitempty"` Args *string `protobuf:"bytes,3,opt,name=args,proto3,oneof" json:"args,omitempty"` // contains filtered or unexported fields }
func (*ExecRequest) Descriptor
deprecated
func (*ExecRequest) Descriptor() ([]byte, []int)
Deprecated: Use ExecRequest.ProtoReflect.Descriptor instead.
func (*ExecRequest) GetArgs ¶
func (x *ExecRequest) GetArgs() string
func (*ExecRequest) GetId ¶
func (x *ExecRequest) GetId() string
func (*ExecRequest) GetLimit ¶
func (x *ExecRequest) GetLimit() *durationpb.Duration
func (*ExecRequest) ProtoMessage ¶
func (*ExecRequest) ProtoMessage()
func (*ExecRequest) ProtoReflect ¶
func (x *ExecRequest) ProtoReflect() protoreflect.Message
func (*ExecRequest) Reset ¶
func (x *ExecRequest) Reset()
func (*ExecRequest) String ¶
func (x *ExecRequest) String() string
type ExecResponse ¶
type ExecResponse struct { StdOut string `protobuf:"bytes,1,opt,name=stdOut,proto3" json:"stdOut,omitempty"` StdError string `protobuf:"bytes,2,opt,name=stdError,proto3" json:"stdError,omitempty"` ResultCode int32 `protobuf:"varint,3,opt,name=resultCode,proto3" json:"resultCode,omitempty"` // contains filtered or unexported fields }
func (*ExecResponse) Descriptor
deprecated
func (*ExecResponse) Descriptor() ([]byte, []int)
Deprecated: Use ExecResponse.ProtoReflect.Descriptor instead.
func (*ExecResponse) GetResultCode ¶
func (x *ExecResponse) GetResultCode() int32
func (*ExecResponse) GetStdError ¶
func (x *ExecResponse) GetStdError() string
func (*ExecResponse) GetStdOut ¶
func (x *ExecResponse) GetStdOut() string
func (*ExecResponse) ProtoMessage ¶
func (*ExecResponse) ProtoMessage()
func (*ExecResponse) ProtoReflect ¶
func (x *ExecResponse) ProtoReflect() protoreflect.Message
func (*ExecResponse) Reset ¶
func (x *ExecResponse) Reset()
func (*ExecResponse) String ¶
func (x *ExecResponse) String() string
type ExecServer ¶ added in v0.3.0
type ExecServer interface { Exec(context.Context, *ExecRequest) (*ExecResponse, error) // contains filtered or unexported methods }
ExecServer is the server API for Exec service. All implementations must embed UnimplementedExecServer for forward compatibility
func NewExecServer ¶ added in v0.3.1
func NewExecServer(it *service.Service) ExecServer
type UnimplementedExecServer ¶ added in v0.3.0
type UnimplementedExecServer struct { }
UnimplementedExecServer must be embedded to have forward compatible implementations.
func (UnimplementedExecServer) Exec ¶ added in v0.3.0
func (UnimplementedExecServer) Exec(context.Context, *ExecRequest) (*ExecResponse, error)
type UnsafeExecServer ¶ added in v0.3.0
type UnsafeExecServer interface {
// contains filtered or unexported methods
}
UnsafeExecServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ExecServer will result in compilation errors.