proto

package module
v0.0.0-...-4d3cd1e Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2023 License: AGPL-3.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

Functions

func RegisterComServer

func RegisterComServer(s *grpc.Server, srv ComServer)

Types

type ComClient

type ComClient interface {
	HandleCommands(ctx context.Context, opts ...grpc.CallOption) (Com_HandleCommandsClient, error)
}

ComClient is the client API for Com service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewComClient

func NewComClient(cc grpc.ClientConnInterface) ComClient

type ComServer

type ComServer interface {
	HandleCommands(Com_HandleCommandsServer) error
}

ComServer is the server API for Com service.

type Com_HandleCommandsClient

type Com_HandleCommandsClient interface {
	Send(*Request) error
	Recv() (*Response, error)
	grpc.ClientStream
}

type Com_HandleCommandsServer

type Com_HandleCommandsServer interface {
	Send(*Response) error
	Recv() (*Request, error)
	grpc.ServerStream
}

type Request

type Request struct {
	ClientID        string `protobuf:"bytes,1,opt,name=ClientID,proto3" json:"ClientID,omitempty"`
	ClientIPAddress string `protobuf:"bytes,2,opt,name=ClientIPAddress,proto3" json:"ClientIPAddress,omitempty"`
	Command         string `protobuf:"bytes,3,opt,name=Command,proto3" json:"Command,omitempty"`
	Data            []byte `protobuf:"bytes,4,opt,name=Data,proto3" json:"Data,omitempty"`
	// contains filtered or unexported fields
}

func (*Request) Descriptor deprecated

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

Deprecated: Use Request.ProtoReflect.Descriptor instead.

func (*Request) GetClientID

func (x *Request) GetClientID() string

func (*Request) GetClientIPAddress

func (x *Request) GetClientIPAddress() string

func (*Request) GetCommand

func (x *Request) GetCommand() string

func (*Request) GetData

func (x *Request) GetData() []byte

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) ProtoReflect

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

func (*Request) Reset

func (x *Request) Reset()

func (*Request) String

func (x *Request) String() string

type Response

type Response struct {
	ClientID        string `protobuf:"bytes,1,opt,name=ClientID,proto3" json:"ClientID,omitempty"`
	ClientIPAddress string `protobuf:"bytes,2,opt,name=ClientIPAddress,proto3" json:"ClientIPAddress,omitempty"`
	Command         string `protobuf:"bytes,3,opt,name=Command,proto3" json:"Command,omitempty"`
	Data            []byte `protobuf:"bytes,4,opt,name=Data,proto3" json:"Data,omitempty"`
	// contains filtered or unexported fields
}

func (*Response) Descriptor deprecated

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

Deprecated: Use Response.ProtoReflect.Descriptor instead.

func (*Response) GetClientID

func (x *Response) GetClientID() string

func (*Response) GetClientIPAddress

func (x *Response) GetClientIPAddress() string

func (*Response) GetCommand

func (x *Response) GetCommand() string

func (*Response) GetData

func (x *Response) GetData() []byte

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 UnimplementedComServer

type UnimplementedComServer struct {
}

UnimplementedComServer can be embedded to have forward compatible implementations.

func (*UnimplementedComServer) HandleCommands

Jump to

Keyboard shortcuts

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