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 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 LookupRequest ¶ added in v0.5.0
type LookupRequest struct { Metadata object.Metadata `nimona:"metadata:m"` Nonce string `nimona:"nonce:s,omitempty"` Bloom []int64 `nimona:"bloom:ai,omitempty"` }
func (*LookupRequest) FromObject ¶ added in v0.5.0
func (e *LookupRequest) FromObject(o *object.Object) error
func (LookupRequest) ToObject ¶ added in v0.5.0
func (e LookupRequest) ToObject() *object.Object
func (*LookupRequest) Type ¶ added in v0.12.0
func (e *LookupRequest) Type() string
type LookupResponse ¶ added in v0.5.0
type LookupResponse struct { Metadata object.Metadata `nimona:"metadata:m"` Nonce string `nimona:"nonce:s,omitempty"` Bloom []int64 `nimona:"bloom:ai,omitempty"` Peers []*Peer `nimona:"peers:am,omitempty"` }
func (*LookupResponse) FromObject ¶ added in v0.5.0
func (e *LookupResponse) FromObject(o *object.Object) error
func (LookupResponse) ToObject ¶ added in v0.5.0
func (e LookupResponse) ToObject() *object.Object
func (*LookupResponse) Type ¶ added in v0.12.0
func (e *LookupResponse) Type() string
type ObjectHashSyncList ¶ added in v0.5.0
type ObjectHashSyncList struct {
// contains filtered or unexported fields
}
ObjectHashSyncList -
func NewObjectHashValueTypeSyncMap ¶ added in v0.5.0
func NewObjectHashValueTypeSyncMap() *ObjectHashSyncList
NewObjectHashValueTypeSyncMap constructs a new SyncMap
func (*ObjectHashSyncList) Delete ¶ added in v0.5.0
func (m *ObjectHashSyncList) Delete(k object.Hash)
Delete -
func (*ObjectHashSyncList) Exists ¶ added in v0.5.0
func (m *ObjectHashSyncList) Exists(k object.Hash) bool
Exists -
func (*ObjectHashSyncList) Put ¶ added in v0.5.0
func (m *ObjectHashSyncList) Put(k object.Hash)
Put -
type Peer ¶
type Peer struct { Metadata object.Metadata `nimona:"metadata:m"` Version int64 `nimona:"version:i,omitempty"` Addresses []string `nimona:"addresses:as,omitempty"` Bloom []int64 `nimona:"bloom:ai,omitempty"` ContentTypes []string `nimona:"contentTypes:as,omitempty"` Certificates []*object.Certificate `nimona:"certificates:am,omitempty"` Relays []*Peer `nimona:"relays:am,omitempty"` }
Click to show internal directories.
Click to hide internal directories.