Documentation ¶
Index ¶
- Variables
- func DRPCRegisterRemote(mux drpc.Mux, impl DRPCRemoteServer) error
- func RegisterRemoteServer(s grpc.ServiceRegistrar, srv RemoteServer)
- func RegisterType(v VTUnmarshaler)
- type Config
- type DRPCRemoteClient
- type DRPCRemoteDescription
- type DRPCRemoteServer
- type DRPCRemoteUnimplementedServer
- type DRPCRemote_ReceiveClient
- type DRPCRemote_ReceiveStream
- type Deserializer
- type Envelope
- func (m *Envelope) CloneMessageVT() proto.Message
- func (m *Envelope) CloneVT() *Envelope
- func (*Envelope) Descriptor() ([]byte, []int)deprecated
- func (this *Envelope) EqualMessageVT(thatMsg proto.Message) bool
- func (this *Envelope) EqualVT(that *Envelope) bool
- func (x *Envelope) GetMessages() []*Message
- func (x *Envelope) GetSenders() []*actor.PID
- func (x *Envelope) GetTargets() []*actor.PID
- func (x *Envelope) GetTypeNames() []string
- func (m *Envelope) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Envelope) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error)
- func (m *Envelope) MarshalToVT(dAtA []byte) (int, error)
- func (m *Envelope) MarshalToVTStrict(dAtA []byte) (int, error)
- func (m *Envelope) MarshalVT() (dAtA []byte, err error)
- func (m *Envelope) MarshalVTStrict() (dAtA []byte, err error)
- func (*Envelope) ProtoMessage()
- func (x *Envelope) ProtoReflect() protoreflect.Message
- func (x *Envelope) Reset()
- func (m *Envelope) SizeVT() (n int)
- func (x *Envelope) String() string
- func (m *Envelope) UnmarshalVT(dAtA []byte) error
- type Message
- func (m *Message) CloneMessageVT() proto.Message
- func (m *Message) CloneVT() *Message
- func (*Message) Descriptor() ([]byte, []int)deprecated
- func (this *Message) EqualMessageVT(thatMsg proto.Message) bool
- func (this *Message) EqualVT(that *Message) bool
- func (x *Message) GetData() []byte
- func (x *Message) GetSenderIndex() int32
- func (x *Message) GetTargetIndex() int32
- func (x *Message) GetTypeNameIndex() int32
- func (m *Message) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Message) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error)
- func (m *Message) MarshalToVT(dAtA []byte) (int, error)
- func (m *Message) MarshalToVTStrict(dAtA []byte) (int, error)
- func (m *Message) MarshalVT() (dAtA []byte, err error)
- func (m *Message) MarshalVTStrict() (dAtA []byte, err error)
- func (*Message) ProtoMessage()
- func (x *Message) ProtoReflect() protoreflect.Message
- func (x *Message) Reset()
- func (m *Message) SizeVT() (n int)
- func (x *Message) String() string
- func (m *Message) UnmarshalVT(dAtA []byte) error
- type ProtoSerializer
- type Remote
- type RemoteClient
- type RemoteServer
- type Remote_ReceiveClient
- type Remote_ReceiveServer
- type Serializer
- type TestMessage
- func (m *TestMessage) CloneMessageVT() proto.Message
- func (m *TestMessage) CloneVT() *TestMessage
- func (*TestMessage) Descriptor() ([]byte, []int)deprecated
- func (this *TestMessage) EqualMessageVT(thatMsg proto.Message) bool
- func (this *TestMessage) EqualVT(that *TestMessage) bool
- func (x *TestMessage) GetData() []byte
- func (m *TestMessage) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *TestMessage) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error)
- func (m *TestMessage) MarshalToVT(dAtA []byte) (int, error)
- func (m *TestMessage) MarshalToVTStrict(dAtA []byte) (int, error)
- func (m *TestMessage) MarshalVT() (dAtA []byte, err error)
- func (m *TestMessage) MarshalVTStrict() (dAtA []byte, err error)
- func (*TestMessage) ProtoMessage()
- func (x *TestMessage) ProtoReflect() protoreflect.Message
- func (x *TestMessage) Reset()
- func (m *TestMessage) SizeVT() (n int)
- func (x *TestMessage) String() string
- func (m *TestMessage) UnmarshalVT(dAtA []byte) error
- type UnimplementedRemoteServer
- type UnsafeRemoteServer
- type VTMarshaler
- type VTProtoSerializer
- type VTUnmarshaler
Constants ¶
This section is empty.
Variables ¶
var ( ErrInvalidLength = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflow = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroup = fmt.Errorf("proto: unexpected end of group") )
var File_remote_proto protoreflect.FileDescriptor
var Remote_ServiceDesc = grpc.ServiceDesc{ ServiceName: "remote.Remote", HandlerType: (*RemoteServer)(nil), Methods: []grpc.MethodDesc{}, Streams: []grpc.StreamDesc{ { StreamName: "Receive", Handler: _Remote_Receive_Handler, ServerStreams: true, ClientStreams: true, }, }, Metadata: "remote.proto", }
Remote_ServiceDesc is the grpc.ServiceDesc for Remote service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func DRPCRegisterRemote ¶
func DRPCRegisterRemote(mux drpc.Mux, impl DRPCRemoteServer) error
func RegisterRemoteServer ¶
func RegisterRemoteServer(s grpc.ServiceRegistrar, srv RemoteServer)
func RegisterType ¶
func RegisterType(v VTUnmarshaler)
Types ¶
type DRPCRemoteClient ¶
type DRPCRemoteClient interface { DRPCConn() drpc.Conn Receive(ctx context.Context) (DRPCRemote_ReceiveClient, error) }
func NewDRPCRemoteClient ¶
func NewDRPCRemoteClient(cc drpc.Conn) DRPCRemoteClient
type DRPCRemoteDescription ¶
type DRPCRemoteDescription struct{}
func (DRPCRemoteDescription) NumMethods ¶
func (DRPCRemoteDescription) NumMethods() int
type DRPCRemoteServer ¶
type DRPCRemoteServer interface {
Receive(DRPCRemote_ReceiveStream) error
}
type DRPCRemoteUnimplementedServer ¶
type DRPCRemoteUnimplementedServer struct{}
func (*DRPCRemoteUnimplementedServer) Receive ¶
func (s *DRPCRemoteUnimplementedServer) Receive(DRPCRemote_ReceiveStream) error
type Envelope ¶
type Envelope struct { TypeNames []string `protobuf:"bytes,1,rep,name=typeNames,proto3" json:"typeNames,omitempty"` Targets []*actor.PID `protobuf:"bytes,2,rep,name=targets,proto3" json:"targets,omitempty"` Senders []*actor.PID `protobuf:"bytes,3,rep,name=senders,proto3" json:"senders,omitempty"` Messages []*Message `protobuf:"bytes,4,rep,name=messages,proto3" json:"messages,omitempty"` // contains filtered or unexported fields }
func (*Envelope) CloneMessageVT ¶
func (*Envelope) Descriptor
deprecated
func (*Envelope) GetMessages ¶
func (*Envelope) GetSenders ¶
func (*Envelope) GetTargets ¶
func (*Envelope) GetTypeNames ¶
func (*Envelope) MarshalToSizedBufferVT ¶
func (*Envelope) MarshalToSizedBufferVTStrict ¶
func (*Envelope) MarshalVTStrict ¶
func (*Envelope) ProtoMessage ¶
func (*Envelope) ProtoMessage()
func (*Envelope) ProtoReflect ¶
func (x *Envelope) ProtoReflect() protoreflect.Message
func (*Envelope) UnmarshalVT ¶
type Message ¶
type Message struct { Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` TargetIndex int32 `protobuf:"varint,2,opt,name=targetIndex,proto3" json:"targetIndex,omitempty"` SenderIndex int32 `protobuf:"varint,3,opt,name=senderIndex,proto3" json:"senderIndex,omitempty"` TypeNameIndex int32 `protobuf:"varint,4,opt,name=typeNameIndex,proto3" json:"typeNameIndex,omitempty"` // contains filtered or unexported fields }
func (*Message) CloneMessageVT ¶
func (*Message) Descriptor
deprecated
func (*Message) GetSenderIndex ¶
func (*Message) GetTargetIndex ¶
func (*Message) GetTypeNameIndex ¶
func (*Message) MarshalToSizedBufferVT ¶
func (*Message) MarshalToSizedBufferVTStrict ¶
func (*Message) MarshalVTStrict ¶
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
func (*Message) ProtoReflect ¶
func (x *Message) ProtoReflect() protoreflect.Message
func (*Message) UnmarshalVT ¶
type ProtoSerializer ¶
type ProtoSerializer struct{}
func (ProtoSerializer) Deserialize ¶
func (ProtoSerializer) Deserialize(data []byte, tname string) (any, error)
func (ProtoSerializer) TypeName ¶
func (ProtoSerializer) TypeName(msg any) string
type Remote ¶
type Remote struct {
// contains filtered or unexported fields
}
type RemoteClient ¶
type RemoteClient interface {
Receive(ctx context.Context, opts ...grpc.CallOption) (Remote_ReceiveClient, error)
}
RemoteClient is the client API for Remote 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 NewRemoteClient ¶
func NewRemoteClient(cc grpc.ClientConnInterface) RemoteClient
type RemoteServer ¶
type RemoteServer interface { Receive(Remote_ReceiveServer) error // contains filtered or unexported methods }
RemoteServer is the server API for Remote service. All implementations must embed UnimplementedRemoteServer for forward compatibility
type Remote_ReceiveClient ¶
type Remote_ReceiveServer ¶
type Serializer ¶
type TestMessage ¶
type TestMessage struct { Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*TestMessage) CloneMessageVT ¶
func (m *TestMessage) CloneMessageVT() proto.Message
func (*TestMessage) CloneVT ¶
func (m *TestMessage) CloneVT() *TestMessage
func (*TestMessage) Descriptor
deprecated
func (*TestMessage) Descriptor() ([]byte, []int)
Deprecated: Use TestMessage.ProtoReflect.Descriptor instead.
func (*TestMessage) EqualMessageVT ¶
func (this *TestMessage) EqualMessageVT(thatMsg proto.Message) bool
func (*TestMessage) EqualVT ¶
func (this *TestMessage) EqualVT(that *TestMessage) bool
func (*TestMessage) GetData ¶
func (x *TestMessage) GetData() []byte
func (*TestMessage) MarshalToSizedBufferVT ¶
func (m *TestMessage) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*TestMessage) MarshalToSizedBufferVTStrict ¶
func (m *TestMessage) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error)
func (*TestMessage) MarshalToVT ¶
func (m *TestMessage) MarshalToVT(dAtA []byte) (int, error)
func (*TestMessage) MarshalToVTStrict ¶
func (m *TestMessage) MarshalToVTStrict(dAtA []byte) (int, error)
func (*TestMessage) MarshalVT ¶
func (m *TestMessage) MarshalVT() (dAtA []byte, err error)
func (*TestMessage) MarshalVTStrict ¶
func (m *TestMessage) MarshalVTStrict() (dAtA []byte, err error)
func (*TestMessage) ProtoMessage ¶
func (*TestMessage) ProtoMessage()
func (*TestMessage) ProtoReflect ¶
func (x *TestMessage) ProtoReflect() protoreflect.Message
func (*TestMessage) Reset ¶
func (x *TestMessage) Reset()
func (*TestMessage) SizeVT ¶
func (m *TestMessage) SizeVT() (n int)
func (*TestMessage) String ¶
func (x *TestMessage) String() string
func (*TestMessage) UnmarshalVT ¶
func (m *TestMessage) UnmarshalVT(dAtA []byte) error
type UnimplementedRemoteServer ¶
type UnimplementedRemoteServer struct { }
UnimplementedRemoteServer must be embedded to have forward compatible implementations.
func (UnimplementedRemoteServer) Receive ¶
func (UnimplementedRemoteServer) Receive(Remote_ReceiveServer) error
type UnsafeRemoteServer ¶
type UnsafeRemoteServer interface {
// contains filtered or unexported methods
}
UnsafeRemoteServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to RemoteServer will result in compilation errors.
type VTProtoSerializer ¶
type VTProtoSerializer struct{}
func (VTProtoSerializer) Deserialize ¶
func (VTProtoSerializer) Deserialize(data []byte, mtype string) (any, error)
func (VTProtoSerializer) TypeName ¶
func (VTProtoSerializer) TypeName(msg any) string