Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(local *peer.LocalPeer, discoverer discovery.Discoverer) net.Middleware
NewHandshake ...
Types ¶
type Ack ¶
type Ack struct { Stream object.Hash Parents []object.Hash Owners []crypto.PublicKey Policy object.Policy Signatures []object.Signature Nonce string // contains filtered or unexported fields }
func (Ack) GetSchema ¶ added in v0.5.0
func (e Ack) GetSchema() *object.SchemaObject
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 ¶
type Syn struct { Stream object.Hash Parents []object.Hash Owners []crypto.PublicKey Policy object.Policy Signatures []object.Signature Nonce string // contains filtered or unexported fields }
func (Syn) GetSchema ¶ added in v0.5.0
func (e Syn) GetSchema() *object.SchemaObject
type SynAck ¶
type SynAck struct { Stream object.Hash Parents []object.Hash Owners []crypto.PublicKey Policy object.Policy Signatures []object.Signature Nonce string // contains filtered or unexported fields }
func (SynAck) GetSchema ¶ added in v0.5.0
func (e SynAck) GetSchema() *object.SchemaObject
Click to show internal directories.
Click to hide internal directories.