Documentation ¶
Index ¶
- Variables
- type Link
- type Opts
- func (m *Opts) CloneMessageVT() proto.Message
- func (m *Opts) CloneVT() *Opts
- func (*Opts) Descriptor() ([]byte, []int)deprecated
- func (this *Opts) EqualMessageVT(thatMsg proto.Message) bool
- func (this *Opts) EqualVT(that *Opts) bool
- func (x *Opts) GetQuic() *quic.Opts
- func (x *Opts) GetVerbose() bool
- func (m *Opts) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Opts) MarshalToVT(dAtA []byte) (int, error)
- func (m *Opts) MarshalVT() (dAtA []byte, err error)
- func (*Opts) ProtoMessage()
- func (x *Opts) ProtoReflect() protoreflect.Message
- func (x *Opts) Reset()
- func (m *Opts) SizeVT() (n int)
- func (x *Opts) String() string
- func (m *Opts) UnmarshalVT(dAtA []byte) error
- type Transport
Constants ¶
This section is empty.
Variables ¶
View Source
var File_github_com_aperturerobotics_bifrost_transport_common_pconn_pconn_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Link ¶
type Link = transport_quic.Link
Link is a Quic-based connection/link backed by a packet connection.
type Opts ¶
type Opts struct { // Quic are the quic protocol options. Quic *quic.Opts `protobuf:"bytes,1,opt,name=quic,proto3" json:"quic,omitempty"` // Verbose turns on verbose debug logging. Verbose bool `protobuf:"varint,2,opt,name=verbose,proto3" json:"verbose,omitempty"` // contains filtered or unexported fields }
Opts are extra options for the packet conn.
func (*Opts) CloneMessageVT ¶ added in v0.15.6
func (*Opts) Descriptor
deprecated
func (*Opts) EqualMessageVT ¶ added in v0.15.6
func (*Opts) GetVerbose ¶
func (*Opts) MarshalToSizedBufferVT ¶ added in v0.2.0
func (*Opts) ProtoMessage ¶
func (*Opts) ProtoMessage()
func (*Opts) ProtoReflect ¶ added in v0.2.0
func (x *Opts) ProtoReflect() protoreflect.Message
func (*Opts) UnmarshalVT ¶ added in v0.2.0
type Transport ¶
type Transport struct { // Transport is the underlying quic transport *transport_quic.Transport // contains filtered or unexported fields }
Transport implements a bifrost transport with a Quic-based packet conn. Transport UUIDs are deterministic and based on the LocalAddr() of the pconn.
func NewTransport ¶
func NewTransport( ctx context.Context, le *logrus.Entry, privKey crypto.PrivKey, tc transport.TransportHandler, opts *Opts, uuid uint64, pc net.PacketConn, addrParser func(addr string) (net.Addr, error), staticPeerMap map[string]*dialer.DialerOpts, ) (*Transport, error)
NewTransport constructs a new packet-conn based transport.
func (*Transport) Execute ¶
Execute executes the transport as configured, returning any fatal error.
func (*Transport) GetPeerDialer ¶ added in v0.21.0
GetPeerDialer returns the dialing information for a peer. Called when resolving EstablishLink. Return nil, nil to indicate not found or unavailable.
Click to show internal directories.
Click to hide internal directories.