Documentation ¶
Index ¶
- type Directory
- type ExposableError
- type Receiver
- func (r *Receiver) Close(req models.CloseRequest) (*models.CloseResponse, error)
- func (r *Receiver) Create(req models.CreateRequest) (*models.CreateResponse, error)
- func (r *Receiver) Get(txid string, vout uint32) *channels.SharedState
- func (r *Receiver) List() ([]storage.Record, error)
- func (r *Receiver) ListPayments(txid string, vout uint32) ([][]byte, error)
- func (r *Receiver) Open(req models.OpenRequest) (*models.OpenResponse, error)
- func (r *Receiver) Send(req models.SendRequest) (*models.SendResponse, error)
- func (r *Receiver) Status(req models.StatusRequest) (*models.StatusResponse, error)
- func (r *Receiver) Validate(req models.ValidateRequest) (*models.ValidateResponse, error)
- func (r *Receiver) ValidateToken(txid string, vout uint32, token string) bool
- func (r *Receiver) WatchBlockchainForever()
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 ¶
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 ¶
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 (r *Receiver) Close(req models.CloseRequest) (*models.CloseResponse, error)
func (*Receiver) Create ¶
func (r *Receiver) Create(req models.CreateRequest) (*models.CreateResponse, error)
func (*Receiver) ListPayments ¶
func (*Receiver) Open ¶
func (r *Receiver) Open(req models.OpenRequest) (*models.OpenResponse, error)
func (*Receiver) Send ¶
func (r *Receiver) Send(req models.SendRequest) (*models.SendResponse, error)
func (*Receiver) Status ¶
func (r *Receiver) Status(req models.StatusRequest) (*models.StatusResponse, error)
func (*Receiver) Validate ¶
func (r *Receiver) Validate(req models.ValidateRequest) (*models.ValidateResponse, error)
func (*Receiver) ValidateToken ¶
func (*Receiver) WatchBlockchainForever ¶
func (r *Receiver) WatchBlockchainForever()
Click to show internal directories.
Click to hide internal directories.