Documentation ¶
Index ¶
- type PaychAPI
- func (a *PaychAPI) PaychAllocateLane(ctx context.Context, ch address.Address) (uint64, error)
- func (a *PaychAPI) PaychClose(ctx context.Context, addr address.Address) (cid.Cid, error)
- func (a *PaychAPI) PaychGet(ctx context.Context, from, to address.Address, ensureFunds types.BigInt) (*api.ChannelInfo, error)
- func (a *PaychAPI) PaychList(ctx context.Context) ([]address.Address, error)
- func (a *PaychAPI) PaychNewPayment(ctx context.Context, from, to address.Address, vouchers []api.VoucherSpec) (*api.PaymentInfo, error)
- func (a *PaychAPI) PaychStatus(ctx context.Context, pch address.Address) (*api.PaychStatus, error)
- func (a *PaychAPI) PaychVoucherAdd(ctx context.Context, ch address.Address, sv *types.SignedVoucher, proof []byte, ...) (types.BigInt, error)
- func (a *PaychAPI) PaychVoucherCheckSpendable(ctx context.Context, ch address.Address, sv *types.SignedVoucher, ...) (bool, error)
- func (a *PaychAPI) PaychVoucherCheckValid(ctx context.Context, ch address.Address, sv *types.SignedVoucher) error
- func (a *PaychAPI) PaychVoucherCreate(ctx context.Context, pch address.Address, amt types.BigInt, lane uint64) (*types.SignedVoucher, error)
- func (a *PaychAPI) PaychVoucherList(ctx context.Context, pch address.Address) ([]*types.SignedVoucher, error)
- func (a *PaychAPI) PaychVoucherSubmit(ctx context.Context, ch address.Address, sv *types.SignedVoucher) (cid.Cid, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PaychAPI ¶
func (*PaychAPI) PaychAllocateLane ¶
func (*PaychAPI) PaychClose ¶
func (*PaychAPI) PaychNewPayment ¶
func (a *PaychAPI) PaychNewPayment(ctx context.Context, from, to address.Address, vouchers []api.VoucherSpec) (*api.PaymentInfo, error)
func (*PaychAPI) PaychStatus ¶
func (*PaychAPI) PaychVoucherAdd ¶
func (*PaychAPI) PaychVoucherCheckSpendable ¶
func (*PaychAPI) PaychVoucherCheckValid ¶
func (*PaychAPI) PaychVoucherCreate ¶
func (a *PaychAPI) PaychVoucherCreate(ctx context.Context, pch address.Address, amt types.BigInt, lane uint64) (*types.SignedVoucher, error)
PaychVoucherCreate creates a new signed voucher on the given payment channel with the given lane and amount. The value passed in is exactly the value that will be used to create the voucher, so if previous vouchers exist, the actual additional value of this voucher will only be the difference between the two.
func (*PaychAPI) PaychVoucherList ¶
func (*PaychAPI) PaychVoucherSubmit ¶
Click to show internal directories.
Click to hide internal directories.