localpeer

package
v0.16.1 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LocalPeer

type LocalPeer interface {
	GetPrimaryPeerKey() crypto.PrivateKey
	PutPrimaryPeerKey(crypto.PrivateKey)
	GetPrimaryIdentityKey() crypto.PrivateKey
	PutPrimaryIdentityKey(crypto.PrivateKey)
	GetCertificates() []*object.Certificate
	PutCertificate(*object.Certificate)
	GetContentHashes() []object.Hash
	PutContentHashes(...object.Hash)
	GetContentTypes() []string
	PutContentTypes(...string)
	GetAddresses() []string
	PutAddresses(...string)
	GetRelays() []*peer.ConnectionInfo
	PutRelays(...*peer.ConnectionInfo)
	ConnectionInfo() *peer.ConnectionInfo
	ListenForUpdates() (<-chan UpdateEvent, func())
}

func New

func New() LocalPeer

type ObjectCertificateSyncList

type ObjectCertificateSyncList struct {
	// contains filtered or unexported fields
}

ObjectCertificateSyncList -

func (*ObjectCertificateSyncList) Delete

Delete -

func (*ObjectCertificateSyncList) Exists

Exists -

func (*ObjectCertificateSyncList) List

List -

func (*ObjectCertificateSyncList) Put

Put -

func (*ObjectCertificateSyncList) Range

func (m *ObjectCertificateSyncList) Range(i func(k *object.Certificate) bool)

Range -

type ObjectHashSyncList

type ObjectHashSyncList struct {
	// contains filtered or unexported fields
}

ObjectHashSyncList -

func (*ObjectHashSyncList) Delete

func (m *ObjectHashSyncList) Delete(k object.Hash)

Delete -

func (*ObjectHashSyncList) Exists

func (m *ObjectHashSyncList) Exists(k object.Hash) bool

Exists -

func (*ObjectHashSyncList) List

func (m *ObjectHashSyncList) List() []object.Hash

List -

func (*ObjectHashSyncList) Put

func (m *ObjectHashSyncList) Put(k object.Hash)

Put -

func (*ObjectHashSyncList) Range

func (m *ObjectHashSyncList) Range(i func(k object.Hash) bool)

Range -

type PeerConnectionInfoSyncList added in v0.14.1

type PeerConnectionInfoSyncList struct {
	// contains filtered or unexported fields
}

PeerConnectionInfoSyncList -

func (*PeerConnectionInfoSyncList) Delete added in v0.14.1

Delete -

func (*PeerConnectionInfoSyncList) Exists added in v0.14.1

Exists -

func (*PeerConnectionInfoSyncList) List added in v0.14.1

List -

func (*PeerConnectionInfoSyncList) Put added in v0.14.1

Put -

func (*PeerConnectionInfoSyncList) Range added in v0.14.1

func (m *PeerConnectionInfoSyncList) Range(i func(k *peer.ConnectionInfo) bool)

Range -

type StringSyncList

type StringSyncList struct {
	// contains filtered or unexported fields
}

StringSyncList -

func (*StringSyncList) Delete

func (m *StringSyncList) Delete(k string)

Delete -

func (*StringSyncList) Exists

func (m *StringSyncList) Exists(k string) bool

Exists -

func (*StringSyncList) List

func (m *StringSyncList) List() []string

List -

func (*StringSyncList) Put

func (m *StringSyncList) Put(k string)

Put -

func (*StringSyncList) Range

func (m *StringSyncList) Range(i func(k string) bool)

Range -

type UpdateEvent added in v0.14.4

type UpdateEvent string
const (
	EventContentTypesUpdated  UpdateEvent = "contentTypeUpdated"
	EventContentHashesUpdated UpdateEvent = "contentHashesUpdated"
	EventAddressesUpdated     UpdateEvent = "addressesUpdated"
	EventRelaysUpdated        UpdateEvent = "relaysUpdated"
)

Jump to

Keyboard shortcuts

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