Documentation ¶
Index ¶
- Variables
- func LogFatal(msg string, a ...interface{})
- func WriteMsg(msg Message, writer io.Writer) error
- type Adapter
- type Gateway
- func (gateway *Gateway) GetAdapterConfPath() string
- func (gateway *Gateway) ProcessEgressPkt(b []byte)
- func (gateway *Gateway) ProcessIngressPkt(b []byte)
- func (gateway *Gateway) SetAdapter(adapter Adapter)
- func (gateway *Gateway) Start()
- func (gateway *Gateway) WriteMsgOneOff(msg Message, remoteAddr *snet.UDPAddr) error
- type Message
- type PathSorter
- type PeerWriter
- type RevocationHandler
- type YIA
- type YUDPAddr
Constants ¶
This section is empty.
Variables ¶
View Source
var (
PeerIsMigratingError = errors.New("peer is migrating")
)
Functions ¶
Types ¶
type Adapter ¶
type Adapter interface { // ProcessCtrlMsg allows the adapter to receive ctrl messages (see Message) ProcessCtrlMsg(Message, addr.IA) // HandshakeComplete informs the Adapter of the completion of a setup with a remote gateway HandshakeComplete(PeerWriter) // Read shall provide a method to read packets of interest from the local network Read([]byte) (int, error) // ProcessIngressPkt shall processing packets coming from remote gateways and dispatch them to the local network ProcessIngressPkt([]byte) // ProcessEgressPkt shall process packets coming from the local network and dispatch them to remote gateways ProcessEgressPkt([]byte, func(string) (PeerWriter, error)) }
type Gateway ¶
type Gateway struct {
// contains filtered or unexported fields
}
func NewGateway ¶
NewGateway returns a new Gateway.
func (*Gateway) GetAdapterConfPath ¶
GetAdapterConfPath returns the file path of the Adapter configuration
func (*Gateway) ProcessEgressPkt ¶
ProcessEgressPkt passes a packet received from an adapter to an egress worker
func (*Gateway) ProcessIngressPkt ¶
ProcessIngressPkt passes a packet received from a peer to an ingress worker
func (*Gateway) SetAdapter ¶
type RevocationHandler ¶
type RevocationHandler struct{}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.