localpeer

package
v0.18.1 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 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)
	GetCIDs() []object.CID
	PutCIDs(...object.CID)
	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 ObjectCIDSyncList added in v0.17.0

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

ObjectCIDSyncList -

func (*ObjectCIDSyncList) Delete added in v0.17.0

func (m *ObjectCIDSyncList) Delete(k object.CID)

Delete -

func (*ObjectCIDSyncList) Exists added in v0.17.0

func (m *ObjectCIDSyncList) Exists(k object.CID) bool

Exists -

func (*ObjectCIDSyncList) List added in v0.17.0

func (m *ObjectCIDSyncList) List() []object.CID

List -

func (*ObjectCIDSyncList) Put added in v0.17.0

func (m *ObjectCIDSyncList) Put(k object.CID)

Put -

func (*ObjectCIDSyncList) Range added in v0.17.0

func (m *ObjectCIDSyncList) Range(i func(k object.CID) bool)

Range -

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 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"
	EventCIDsUpdated               UpdateEvent = "cidsUpdated"
	EventAddressesUpdated          UpdateEvent = "addressesUpdated"
	EventRelaysUpdated             UpdateEvent = "relaysUpdated"
	EventPrimaryIdentityKeyUpdated UpdateEvent = "primaryIdentityKeyUpdated"
)

Jump to

Keyboard shortcuts

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