Documentation ¶
Index ¶
- Variables
- func RegisterPluginServer(s *grpc.Server, srv PluginServer)
- type Data
- type DataRPC
- type ExecRequest
- func (*ExecRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ExecRequest) GetCommand() string
- func (x *ExecRequest) GetPayload() []byte
- 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) GetData() *DataRPC
- func (x *ExecResponse) GetStatus() string
- func (*ExecResponse) ProtoMessage()
- func (x *ExecResponse) ProtoReflect() protoreflect.Message
- func (x *ExecResponse) Reset()
- func (x *ExecResponse) String() string
- type PingResponse
- func (*PingResponse) Descriptor() ([]byte, []int)deprecated
- func (x *PingResponse) GetData() *Data
- func (x *PingResponse) GetStatus() string
- func (*PingResponse) ProtoMessage()
- func (x *PingResponse) ProtoReflect() protoreflect.Message
- func (x *PingResponse) Reset()
- func (x *PingResponse) String() string
- type PluginClient
- type PluginServer
- type UnimplementedPluginServer
Constants ¶
This section is empty.
Variables ¶
View Source
var File_plugin_proto protoreflect.FileDescriptor
Functions ¶
func RegisterPluginServer ¶
func RegisterPluginServer(s *grpc.Server, srv PluginServer)
Types ¶
type Data ¶
type Data struct { Response string `protobuf:"bytes,1,opt,name=Response,proto3" json:"Response,omitempty"` // contains filtered or unexported fields }
func (*Data) Descriptor
deprecated
func (*Data) GetResponse ¶
func (*Data) ProtoMessage ¶
func (*Data) ProtoMessage()
func (*Data) ProtoReflect ¶
func (x *Data) ProtoReflect() protoreflect.Message
type DataRPC ¶
type DataRPC struct { Response []byte `protobuf:"bytes,1,opt,name=Response,proto3" json:"Response,omitempty"` // contains filtered or unexported fields }
func (*DataRPC) Descriptor
deprecated
func (*DataRPC) GetResponse ¶
func (*DataRPC) ProtoMessage ¶
func (*DataRPC) ProtoMessage()
func (*DataRPC) ProtoReflect ¶
func (x *DataRPC) ProtoReflect() protoreflect.Message
type ExecRequest ¶
type ExecRequest struct { Command string `protobuf:"bytes,1,opt,name=Command,proto3" json:"Command,omitempty"` Payload []byte `protobuf:"bytes,2,opt,name=Payload,proto3" json:"Payload,omitempty"` // contains filtered or unexported fields }
func (*ExecRequest) Descriptor
deprecated
func (*ExecRequest) Descriptor() ([]byte, []int)
Deprecated: Use ExecRequest.ProtoReflect.Descriptor instead.
func (*ExecRequest) GetCommand ¶
func (x *ExecRequest) GetCommand() string
func (*ExecRequest) GetPayload ¶
func (x *ExecRequest) GetPayload() []byte
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 { Status string `protobuf:"bytes,1,opt,name=Status,proto3" json:"Status,omitempty"` Data *DataRPC `protobuf:"bytes,2,opt,name=Data,proto3" json:"Data,omitempty"` // contains filtered or unexported fields }
func (*ExecResponse) Descriptor
deprecated
func (*ExecResponse) Descriptor() ([]byte, []int)
Deprecated: Use ExecResponse.ProtoReflect.Descriptor instead.
func (*ExecResponse) GetData ¶
func (x *ExecResponse) GetData() *DataRPC
func (*ExecResponse) GetStatus ¶
func (x *ExecResponse) GetStatus() 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 PingResponse ¶
type PingResponse struct { Status string `protobuf:"bytes,1,opt,name=Status,proto3" json:"Status,omitempty"` Data *Data `protobuf:"bytes,2,opt,name=Data,proto3" json:"Data,omitempty"` // contains filtered or unexported fields }
func (*PingResponse) Descriptor
deprecated
func (*PingResponse) Descriptor() ([]byte, []int)
Deprecated: Use PingResponse.ProtoReflect.Descriptor instead.
func (*PingResponse) GetData ¶
func (x *PingResponse) GetData() *Data
func (*PingResponse) GetStatus ¶
func (x *PingResponse) GetStatus() string
func (*PingResponse) ProtoMessage ¶
func (*PingResponse) ProtoMessage()
func (*PingResponse) ProtoReflect ¶
func (x *PingResponse) ProtoReflect() protoreflect.Message
func (*PingResponse) Reset ¶
func (x *PingResponse) Reset()
func (*PingResponse) String ¶
func (x *PingResponse) String() string
type PluginClient ¶
type PluginClient interface { Ping(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*PingResponse, error) Exec(ctx context.Context, in *ExecRequest, opts ...grpc.CallOption) (*ExecResponse, error) }
PluginClient is the client API for Plugin service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewPluginClient ¶
func NewPluginClient(cc grpc.ClientConnInterface) PluginClient
type PluginServer ¶
type PluginServer interface { Ping(context.Context, *empty.Empty) (*PingResponse, error) Exec(context.Context, *ExecRequest) (*ExecResponse, error) }
PluginServer is the server API for Plugin service.
type UnimplementedPluginServer ¶
type UnimplementedPluginServer struct { }
UnimplementedPluginServer can be embedded to have forward compatible implementations.
func (*UnimplementedPluginServer) Exec ¶
func (*UnimplementedPluginServer) Exec(context.Context, *ExecRequest) (*ExecResponse, error)
func (*UnimplementedPluginServer) Ping ¶
func (*UnimplementedPluginServer) Ping(context.Context, *empty.Empty) (*PingResponse, error)
Click to show internal directories.
Click to hide internal directories.