handshake

package
v0.5.6 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2020 License: MIT Imports: 11 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 {
	Stream     object.Hash
	Parents    []object.Hash
	Owners     []crypto.PublicKey
	Policy     object.Policy
	Signatures []object.Signature
	Nonce      string
	// contains filtered or unexported fields
}

func (*Ack) FromObject

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

func (Ack) GetSchema added in v0.5.0

func (e Ack) GetSchema() *object.SchemaObject

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 {
	Stream     object.Hash
	Parents    []object.Hash
	Owners     []crypto.PublicKey
	Policy     object.Policy
	Signatures []object.Signature
	Nonce      string
	// contains filtered or unexported fields
}

func (*Syn) FromObject

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

func (Syn) GetSchema added in v0.5.0

func (e Syn) GetSchema() *object.SchemaObject

func (Syn) GetType

func (e Syn) GetType() string

func (Syn) ToObject

func (e Syn) ToObject() object.Object

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) FromObject

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

func (SynAck) GetSchema added in v0.5.0

func (e SynAck) GetSchema() *object.SchemaObject

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