transportpb

package
v0.0.0-...-3a733ff Latest Latest
Warning

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

Go to latest
Published: May 24, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthTransport        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTransport          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTransport = fmt.Errorf("proto: unexpected end of group")
)

Functions

func RegisterCommandServiceServer

func RegisterCommandServiceServer(s *grpc.Server, srv CommandServiceServer)

func RegisterPeerTransportServer

func RegisterPeerTransportServer(s *grpc.Server, srv PeerTransportServer)

Types

type ClientPacket

type ClientPacket struct {
	Message   []byte `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
	Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"`
}

func (*ClientPacket) Descriptor

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

func (*ClientPacket) GetMessage

func (m *ClientPacket) GetMessage() []byte

func (*ClientPacket) GetSignature

func (m *ClientPacket) GetSignature() []byte

func (*ClientPacket) Marshal

func (m *ClientPacket) Marshal() (dAtA []byte, err error)

func (*ClientPacket) MarshalTo

func (m *ClientPacket) MarshalTo(dAtA []byte) (int, error)

func (*ClientPacket) MarshalToSizedBuffer

func (m *ClientPacket) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ClientPacket) ProtoMessage

func (*ClientPacket) ProtoMessage()

func (*ClientPacket) Reset

func (m *ClientPacket) Reset()

func (*ClientPacket) Size

func (m *ClientPacket) Size() (n int)

func (*ClientPacket) String

func (m *ClientPacket) String() string

func (*ClientPacket) Unmarshal

func (m *ClientPacket) Unmarshal(dAtA []byte) error

func (*ClientPacket) XXX_DiscardUnknown

func (m *ClientPacket) XXX_DiscardUnknown()

func (*ClientPacket) XXX_Marshal

func (m *ClientPacket) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ClientPacket) XXX_Merge

func (m *ClientPacket) XXX_Merge(src proto.Message)

func (*ClientPacket) XXX_Size

func (m *ClientPacket) XXX_Size() int

func (*ClientPacket) XXX_Unmarshal

func (m *ClientPacket) XXX_Unmarshal(b []byte) error

type CommandServiceClient

type CommandServiceClient interface {
	Apply(ctx context.Context, in *ClientPacket, opts ...grpc.CallOption) (*ClientPacket, error)
}

CommandServiceClient is the client API for CommandService service.

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

func NewCommandServiceClient

func NewCommandServiceClient(cc *grpc.ClientConn) CommandServiceClient

type CommandServiceServer

type CommandServiceServer interface {
	Apply(context.Context, *ClientPacket) (*ClientPacket, error)
}

CommandServiceServer is the server API for CommandService service.

type Empty

type Empty struct {
}

Empty is an empty message. It is identical to google.protobuf.Empty, but permits future modifications because it is custom.

func (*Empty) Descriptor

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

func (*Empty) Marshal

func (m *Empty) Marshal() (dAtA []byte, err error)

func (*Empty) MarshalTo

func (m *Empty) MarshalTo(dAtA []byte) (int, error)

func (*Empty) MarshalToSizedBuffer

func (m *Empty) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) Reset

func (m *Empty) Reset()

func (*Empty) Size

func (m *Empty) Size() (n int)

func (*Empty) String

func (m *Empty) String() string

func (*Empty) Unmarshal

func (m *Empty) Unmarshal(dAtA []byte) error

func (*Empty) XXX_DiscardUnknown

func (m *Empty) XXX_DiscardUnknown()

func (*Empty) XXX_Marshal

func (m *Empty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Empty) XXX_Merge

func (m *Empty) XXX_Merge(src proto.Message)

func (*Empty) XXX_Size

func (m *Empty) XXX_Size() int

func (*Empty) XXX_Unmarshal

func (m *Empty) XXX_Unmarshal(b []byte) error

type PeerTransportClient

type PeerTransportClient interface {
	Message(ctx context.Context, opts ...grpc.CallOption) (PeerTransport_MessageClient, error)
}

PeerTransportClient is the client API for PeerTransport service.

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

func NewPeerTransportClient

func NewPeerTransportClient(cc *grpc.ClientConn) PeerTransportClient

type PeerTransportServer

type PeerTransportServer interface {
	Message(PeerTransport_MessageServer) error
}

PeerTransportServer is the server API for PeerTransport service.

type PeerTransport_MessageClient

type PeerTransport_MessageClient interface {
	Send(*TransMsg) error
	CloseAndRecv() (*Empty, error)
	grpc.ClientStream
}

type PeerTransport_MessageServer

type PeerTransport_MessageServer interface {
	SendAndClose(*Empty) error
	Recv() (*TransMsg, error)
	grpc.ServerStream
}

type TransMsg

type TransMsg struct {
	Msgs []peerpb.Message `protobuf:"bytes,1,rep,name=msgs,proto3" json:"msgs"`
}

func (*TransMsg) Descriptor

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

func (*TransMsg) GetMsgs

func (m *TransMsg) GetMsgs() []peerpb.Message

func (*TransMsg) Marshal

func (m *TransMsg) Marshal() (dAtA []byte, err error)

func (*TransMsg) MarshalTo

func (m *TransMsg) MarshalTo(dAtA []byte) (int, error)

func (*TransMsg) MarshalToSizedBuffer

func (m *TransMsg) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*TransMsg) ProtoMessage

func (*TransMsg) ProtoMessage()

func (*TransMsg) Reset

func (m *TransMsg) Reset()

func (*TransMsg) Size

func (m *TransMsg) Size() (n int)

func (*TransMsg) String

func (m *TransMsg) String() string

func (*TransMsg) Unmarshal

func (m *TransMsg) Unmarshal(dAtA []byte) error

func (*TransMsg) XXX_DiscardUnknown

func (m *TransMsg) XXX_DiscardUnknown()

func (*TransMsg) XXX_Marshal

func (m *TransMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TransMsg) XXX_Merge

func (m *TransMsg) XXX_Merge(src proto.Message)

func (*TransMsg) XXX_Size

func (m *TransMsg) XXX_Size() int

func (*TransMsg) XXX_Unmarshal

func (m *TransMsg) XXX_Unmarshal(b []byte) error

type UnimplementedCommandServiceServer

type UnimplementedCommandServiceServer struct {
}

UnimplementedCommandServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedCommandServiceServer) Apply

type UnimplementedPeerTransportServer

type UnimplementedPeerTransportServer struct {
}

UnimplementedPeerTransportServer can be embedded to have forward compatible implementations.

func (*UnimplementedPeerTransportServer) Message

Jump to

Keyboard shortcuts

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