dlcmgr

package
v0.0.0-...-1c741c1 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2019 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 BucketNotExistsError

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

BucketNotExistsError is error raised when bucket doesn't exist

type ContractNotExistsError

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

ContractNotExistsError gets raised when contract doesn't exist

type Manager

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

Manager manages contracts

func Create

func Create(db walletdb.DB) (*Manager, error)

Create creates manager

func Open

func Open(db walletdb.DB) (*Manager, error)

Open opens manager

func (*Manager) Close

func (m *Manager) Close() error

Close closes manager

func (*Manager) RetrieveContract

func (m *Manager) RetrieveContract(k []byte) (*dlc.DLC, error)

RetrieveContract retrieves stored DLC

func (*Manager) StoreContract

func (m *Manager) StoreContract(k []byte, d *dlc.DLC) error

StoreContract persists DLC

Jump to

Keyboard shortcuts

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