Documentation ¶
Index ¶
- Variables
- func ProcessRPC(ctx context.Context, b bus.Bus, conf *Config, rpc stream_api.RPC) error
- type Config
- func (m *Config) CloneGenericVT() proto.Message
- func (m *Config) CloneVT() *Config
- func (*Config) Descriptor() ([]byte, []int)deprecated
- func (this *Config) EqualVT(that *Config) bool
- func (x *Config) GetEncrypted() bool
- func (x *Config) GetLocalPeerId() string
- func (x *Config) GetPeerId() string
- func (x *Config) GetProtocolId() string
- func (x *Config) GetReliable() bool
- func (x *Config) GetTransportId() uint64
- func (m *Config) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Config) MarshalToVT(dAtA []byte) (int, error)
- func (m *Config) MarshalVT() (dAtA []byte, err error)
- func (c *Config) ParseLocalPeerID() (peer.ID, error)
- func (c *Config) ParsePeerID() (peer.ID, error)
- func (*Config) ProtoMessage()
- func (x *Config) ProtoReflect() protoreflect.Message
- func (x *Config) Reset()
- func (m *Config) SizeVT() (n int)
- func (x *Config) String() string
- func (m *Config) UnmarshalVT(dAtA []byte) error
- func (c *Config) Validate() error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLength = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflow = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroup = fmt.Errorf("proto: unexpected end of group") )
View Source
var File_github_com_aperturerobotics_bifrost_stream_api_dial_dial_proto protoreflect.FileDescriptor
Functions ¶
func ProcessRPC ¶
ProcessRPC processes an RPC by dialing the desired target.
Types ¶
type Config ¶
type Config struct { // PeerId is the remote peer ID to dial. PeerId string `protobuf:"bytes,1,opt,name=peer_id,json=peerId,proto3" json:"peer_id,omitempty"` // LocalPeerId is the peer ID to dial with. // Can be empty to accept any loaded peer. LocalPeerId string `protobuf:"bytes,2,opt,name=local_peer_id,json=localPeerId,proto3" json:"local_peer_id,omitempty"` // ProtocolId is the protocol ID to dial with. ProtocolId string `protobuf:"bytes,3,opt,name=protocol_id,json=protocolId,proto3" json:"protocol_id,omitempty"` // TransportId constrains the transport ID to dial with. // Can be empty. TransportId uint64 `protobuf:"varint,4,opt,name=transport_id,json=transportId,proto3" json:"transport_id,omitempty"` // Encrypted indicates the stream should be encrypted. Encrypted bool `protobuf:"varint,5,opt,name=encrypted,proto3" json:"encrypted,omitempty"` // Reliable indicates the stream should be reliable. Reliable bool `protobuf:"varint,6,opt,name=reliable,proto3" json:"reliable,omitempty"` // contains filtered or unexported fields }
Config configures the dial controller.
func (*Config) CloneGenericVT ¶ added in v0.8.3
func (*Config) Descriptor
deprecated
func (*Config) GetEncrypted ¶
func (*Config) GetLocalPeerId ¶
func (*Config) GetProtocolId ¶
func (*Config) GetReliable ¶
func (*Config) GetTransportId ¶
func (*Config) MarshalToSizedBufferVT ¶ added in v0.2.0
func (*Config) ParseLocalPeerID ¶
ParseLocalPeerID parses the local peer ID constraint. may be empty.
func (*Config) ParsePeerID ¶
ParsePeerID parses the target peer ID constraint.
func (*Config) ProtoMessage ¶
func (*Config) ProtoMessage()
func (*Config) ProtoReflect ¶ added in v0.2.0
func (x *Config) ProtoReflect() protoreflect.Message
func (*Config) UnmarshalVT ¶ added in v0.2.0
Click to show internal directories.
Click to hide internal directories.