handshake

package
v0.5.0-alpha Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 28, 2019 License: MIT Imports: 9 Imported by: 0

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 {
	Nonce     string              `json:"nonce:s"`
	Signature *crypto.Signature   `json:"@signature:o"`
	Authors   []*crypto.PublicKey `json:"@authors:ao"`
}

func (*Ack) EventName

func (e *Ack) EventName() string

func (*Ack) FromObject

func (e *Ack) FromObject(o object.Object) error

func (*Ack) GetType

func (e *Ack) GetType() string

func (*Ack) ToObject

func (e *Ack) ToObject() object.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

type Syn struct {
	Nonce     string              `json:"nonce:s"`
	Signature *crypto.Signature   `json:"@signature:o"`
	Authors   []*crypto.PublicKey `json:"@authors:ao"`
}

func (*Syn) EventName

func (e *Syn) EventName() string

func (*Syn) FromObject

func (e *Syn) FromObject(o object.Object) error

func (*Syn) GetType

func (e *Syn) GetType() string

func (*Syn) ToObject

func (e *Syn) ToObject() object.Object

type SynAck

type SynAck struct {
	Nonce     string              `json:"nonce:s"`
	Signature *crypto.Signature   `json:"@signature:o"`
	Authors   []*crypto.PublicKey `json:"@authors:ao"`
}

func (*SynAck) EventName

func (e *SynAck) EventName() string

func (*SynAck) FromObject

func (e *SynAck) FromObject(o object.Object) error

func (*SynAck) GetType

func (e *SynAck) GetType() string

func (*SynAck) ToObject

func (e *SynAck) ToObject() object.Object

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL