Documentation ¶
Index ¶
- type T
- func (db *T) DeleteScrap(key []byte) (e error)
- func (db *T) DeleteTransaction(hash types.Hash) (e error)
- func (db *T) GetBlock(hash []byte) (blk *block.Block, e error)
- func (db *T) GetKey(alias string) (k *ecdsa.PrivateKey, e error)
- func (db *T) GetLastBlock() (blk *block.Block, e error)
- func (db *T) GetMainKey() (k *ecdsa.PrivateKey, e error)
- func (db *T) GetNextBlock(hash types.Hash) (blk *block.Block, e error)
- func (db *T) GetNextTransactionHash(hash []byte) (h types.Hash, e error)
- func (db *T) GetPreviousEnvelopeHashForPublicKey(publicKey *ecdsa.PublicKey) (h types.Hash, e error)
- func (db *T) GetRef(name, ref string) (h repository.Ref, e error)
- func (db *T) GetRepository(name string) (r *repository.T, e error)
- func (db *T) GetScrap(key []byte) (b []byte, e error)
- func (db *T) GetTransaction(hash types.Hash) (envelope *transaction.Envelope, e error)
- func (db *T) GetTransactionBlock(hash types.Hash) (b *block.Block, e error)
- func (db *T) GetTransactionConfirmations(hash []byte) (int, error)
- func (db *T) ListKeys() (keys []string)
- func (db *T) ListPendingRepositories() (keys []string)
- func (db *T) ListRefs(name string) (refs []string, e error)
- func (db *T) ListRepositories() (keys []string)
- func (db *T) PutBlock(b *block.Block, last bool) (e error)
- func (db *T) PutKey(alias string, key *ecdsa.PrivateKey, main bool) (e error)
- func (db *T) PutRef(name, ref string, new repository.Ref) (e error)
- func (db *T) PutRepository(repo *repository.T) (e error)
- func (db *T) PutScrap(key, val []byte) (e error)
- func (db *T) PutTransaction(tx *transaction.Envelope) (e error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type T ¶
func (*T) DeleteScrap ¶
func (*T) GetMainKey ¶
func (db *T) GetMainKey() (k *ecdsa.PrivateKey, e error)
func (*T) GetNextTransactionHash ¶
func (*T) GetPreviousEnvelopeHashForPublicKey ¶
func (*T) GetRepository ¶
func (db *T) GetRepository(name string) (r *repository.T, e error)
func (*T) GetTransaction ¶
func (*T) GetTransactionBlock ¶
func (*T) GetTransactionConfirmations ¶
func (*T) ListPendingRepositories ¶
func (*T) ListRepositories ¶
func (*T) PutRepository ¶
func (db *T) PutRepository(repo *repository.T) (e error)
func (*T) PutTransaction ¶
func (db *T) PutTransaction(tx *transaction.Envelope) (e error)
Click to show internal directories.
Click to hide internal directories.