receiver

package
v0.0.0-...-6c97315 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2017 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Directory

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

Directory provides access to the set of targets. For example, a hosted wallet will have a list of targets corresponding to user accounts.

func NewDirectory

func NewDirectory(domain string) *Directory

func (*Directory) HasTarget

func (d *Directory) HasTarget(target string) (bool, error)

type ExposableError

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

func NewExposableError

func NewExposableError(err string) ExposableError

func (ExposableError) Error

func (e ExposableError) Error() string

type Receiver

type Receiver struct {
	Net *chaincfg.Params
	// contains filtered or unexported fields
}

func NewReceiver

func NewReceiver(net *chaincfg.Params,
	ek *hdkeychain.ExtendedKey,
	bc *btcrpcclient.Client,
	db storage.Storage,
	dir *Directory,
	destination string,
	authKey string) *Receiver

func (*Receiver) Close

func (*Receiver) Create

func (*Receiver) Get

func (r *Receiver) Get(txid string, vout uint32) *channels.SharedState

func (*Receiver) List

func (r *Receiver) List() ([]storage.Record, error)

func (*Receiver) ListPayments

func (r *Receiver) ListPayments(txid string, vout uint32) ([][]byte, error)

func (*Receiver) Open

func (*Receiver) Send

func (*Receiver) Status

func (*Receiver) Validate

func (*Receiver) ValidateToken

func (r *Receiver) ValidateToken(txid string, vout uint32, token string) bool

func (*Receiver) WatchBlockchainForever

func (r *Receiver) WatchBlockchainForever()

Jump to

Keyboard shortcuts

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