Documentation ¶
Index ¶
Constants ¶
This section is empty.
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 Certificate ¶ added in v0.8.0
type Certificate struct { Stream object.Hash Parents []object.Hash Owners []crypto.PublicKey Policy object.Policy Signatures []object.Signature Subject crypto.PublicKey Created string Expires string // contains filtered or unexported fields }
func NewCertificate ¶ added in v0.8.0
func NewCertificate( subject crypto.PublicKey, issuer crypto.PrivateKey, ) Certificate
func NewSelfSignedCertificate ¶ added in v0.8.0
func NewSelfSignedCertificate(k crypto.PrivateKey) Certificate
func (*Certificate) FromObject ¶ added in v0.8.0
func (e *Certificate) FromObject(o object.Object) error
func (Certificate) GetSchema ¶ added in v0.8.0
func (e Certificate) GetSchema() *object.SchemaObject
func (Certificate) GetType ¶ added in v0.8.0
func (e Certificate) GetType() string
func (Certificate) ToObject ¶ added in v0.8.0
func (e Certificate) ToObject() object.Object
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 { Stream object.Hash Parents []object.Hash Owners []crypto.PublicKey Policy object.Policy Signatures []object.Signature Nonce string Bloom []int64 // contains filtered or unexported fields }
func (*LookupRequest) FromObject ¶ added in v0.5.0
func (e *LookupRequest) FromObject(o object.Object) error
func (LookupRequest) GetSchema ¶ added in v0.5.0
func (e LookupRequest) GetSchema() *object.SchemaObject
func (LookupRequest) GetType ¶ added in v0.5.0
func (e LookupRequest) GetType() string
func (LookupRequest) ToObject ¶ added in v0.5.0
func (e LookupRequest) ToObject() object.Object
type LookupResponse ¶ added in v0.5.0
type LookupResponse struct { Stream object.Hash Parents []object.Hash Owners []crypto.PublicKey Policy object.Policy Signatures []object.Signature Nonce string Bloom []int64 Peers []*Peer // contains filtered or unexported fields }
func (*LookupResponse) FromObject ¶ added in v0.5.0
func (e *LookupResponse) FromObject(o object.Object) error
func (LookupResponse) GetSchema ¶ added in v0.5.0
func (e LookupResponse) GetSchema() *object.SchemaObject
func (LookupResponse) GetType ¶ added in v0.5.0
func (e LookupResponse) GetType() string
func (LookupResponse) ToObject ¶ added in v0.5.0
func (e LookupResponse) ToObject() object.Object
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 { Stream object.Hash Parents []object.Hash Owners []crypto.PublicKey Policy object.Policy Signatures []object.Signature Version int64 Addresses []string Bloom []int64 ContentTypes []string Certificates []*Certificate Relays []*Peer // contains filtered or unexported fields }
func (Peer) GetSchema ¶ added in v0.5.0
func (e Peer) GetSchema() *object.SchemaObject
Click to show internal directories.
Click to hide internal directories.