hyperspace

package
v0.15.5 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Announcement added in v0.14.1

type Announcement struct {
	Metadata         object.Metadata      `nimona:"metadata:m,omitempty"`
	Version          int64                `nimona:"version:i,omitempty"`
	ConnectionInfo   *peer.ConnectionInfo `nimona:"connectionInfo:o,omitempty"`
	PeerVector       []uint64             `nimona:"peerVector:au,omitempty"`
	PeerCapabilities []string             `nimona:"peerCapabilities:as,omitempty"`
}

func (*Announcement) FromObject added in v0.14.1

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

func (Announcement) ToObject added in v0.14.1

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

func (Announcement) ToObjectMap added in v0.14.4

func (e Announcement) ToObjectMap() map[string]interface{}

func (*Announcement) Type added in v0.14.1

func (e *Announcement) Type() string

type Bloom

type Bloom []uint64

func New

func New(content ...string) Bloom

func (Bloom) Test

func (b Bloom) Test(q Bloom) bool

type LookupRequest added in v0.14.1

type LookupRequest struct {
	Metadata            object.Metadata `nimona:"metadata:m,omitempty"`
	Nonce               string          `nimona:"nonce:s,omitempty"`
	QueryVector         []uint64        `nimona:"queryVector:au,omitempty"`
	RequireCapabilities []string        `nimona:"requireCapabilities:as,omitempty"`
}

func (*LookupRequest) FromObject added in v0.14.1

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

func (LookupRequest) ToObject added in v0.14.1

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

func (LookupRequest) ToObjectMap added in v0.14.4

func (e LookupRequest) ToObjectMap() map[string]interface{}

func (*LookupRequest) Type added in v0.14.1

func (e *LookupRequest) Type() string

type LookupResponse added in v0.14.1

type LookupResponse struct {
	Metadata      object.Metadata `nimona:"metadata:m,omitempty"`
	Nonce         string          `nimona:"nonce:s,omitempty"`
	QueryVector   []uint64        `nimona:"queryVector:au,omitempty"`
	Announcements []*Announcement `nimona:"announcements:ao,omitempty"`
}

func (*LookupResponse) FromObject added in v0.14.1

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

func (LookupResponse) ToObject added in v0.14.1

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

func (LookupResponse) ToObjectMap added in v0.14.4

func (e LookupResponse) ToObjectMap() map[string]interface{}

func (*LookupResponse) Type added in v0.14.1

func (e *LookupResponse) Type() string

Directories

Path Synopsis
Package resolvermock is a generated GoMock package.
Package resolvermock is a generated GoMock package.

Jump to

Keyboard shortcuts

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