Documentation
¶
Index ¶
Constants ¶
View Source
const (
AckType = "/handshake.ack"
)
View Source
const (
SynAckType = "/handshake.syn-ack"
)
View Source
const (
SynType = "/handshake.syn"
)
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(local *peer.LocalPeer, discoverer discovery.Discoverer) net.Middleware
NewHandshake ...
Types ¶
type Ack ¶
func (*Ack) FromObject ¶
FromObject populates the struct from a f12n object
type Handshake ¶
type Handshake struct {
// contains filtered or unexported fields
}
Handshake ..
func (*Handshake) Handle ¶
func (hs *Handshake) Handle() net.MiddlewareHandler
TODO needs to be able to handle both server and client interactions
type Syn ¶
func (*Syn) FromObject ¶
FromObject populates the struct from a f12n object
type SynAck ¶
type SynAck struct { Nonce string `json:"nonce:s"` Peer *peer.Peer `json:"peer:o,omitempty"` Signature *crypto.Signature `json:"@signature:o"` }
HandshakeSynAck is the response in the second leg of our net handshake
func (*SynAck) FromObject ¶
FromObject populates the struct from a f12n object
Click to show internal directories.
Click to hide internal directories.