Documentation ¶
Index ¶
Constants ¶
View Source
const (
ErrInvalidShorthand = errors.Error("invalid shorthand")
)
Variables ¶
View Source
var ( // ErrMissingKey when a key is not passed ErrMissingKey = errors.New("missing key") // ErrECDSAPrivateKeyRequired when a key is not an ECDSA key ErrECDSAPrivateKeyRequired = errors.New( "network currently requires an ecdsa private key") )
Functions ¶
This section is empty.
Types ¶
type ConnectionInfo ¶ added in v0.14.1
type ConnectionInfo struct { Metadata object.Metadata `nimona:"metadata:m,omitempty"` Version int64 PublicKey crypto.PublicKey Addresses []string Relays []*ConnectionInfo ObjectFormats []string }
func (*ConnectionInfo) FromObject ¶ added in v0.14.1
func (e *ConnectionInfo) FromObject(o *object.Object) error
func (ConnectionInfo) ToObject ¶ added in v0.14.1
func (e ConnectionInfo) ToObject() *object.Object
func (*ConnectionInfo) Type ¶ added in v0.14.1
func (e *ConnectionInfo) Type() string
type CryptoPublicKeySyncList ¶ added in v0.5.0
type CryptoPublicKeySyncList struct {
// contains filtered or unexported fields
}
CryptoPublicKeySyncList -
func NewCryptoPublicKeyValueTypeSyncMap ¶ added in v0.5.0
func NewCryptoPublicKeyValueTypeSyncMap() *CryptoPublicKeySyncList
NewCryptoPublicKeyValueTypeSyncMap constructs a new SyncMap
func (*CryptoPublicKeySyncList) Delete ¶ added in v0.5.0
func (m *CryptoPublicKeySyncList) Delete(k crypto.PublicKey)
Delete -
func (*CryptoPublicKeySyncList) Exists ¶ added in v0.5.0
func (m *CryptoPublicKeySyncList) Exists(k crypto.PublicKey) bool
Exists -
func (*CryptoPublicKeySyncList) Put ¶ added in v0.5.0
func (m *CryptoPublicKeySyncList) Put(k crypto.PublicKey)
Put -
type ObjectCIDSyncList ¶ added in v0.17.0
type ObjectCIDSyncList struct {
// contains filtered or unexported fields
}
ObjectCIDSyncList -
func NewObjectCIDValueTypeSyncMap ¶ added in v0.17.0
func NewObjectCIDValueTypeSyncMap() *ObjectCIDSyncList
NewObjectCIDValueTypeSyncMap constructs a new SyncMap
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) Put ¶ added in v0.17.0
func (m *ObjectCIDSyncList) Put(k object.CID)
Put -
type Shorthand ¶ added in v0.11.0
type Shorthand string
Shorthand has the form of `<public-key>@<address>`. They are mostly used for configuration and bootstrapping.
func (Shorthand) ConnectionInfo ¶ added in v0.14.1
func (s Shorthand) ConnectionInfo() (*ConnectionInfo, error)
Click to show internal directories.
Click to hide internal directories.