Documentation ¶
Index ¶
- func AccountSeqno(ctx context.Context, g *libkb.GlobalContext, accountID stellar1.AccountID) (uint64, error)
- func AcquireAutoClaimLock(ctx context.Context, g *libkb.GlobalContext) (string, error)
- func Balances(ctx context.Context, g *libkb.GlobalContext, accountID stellar1.AccountID) ([]stellar1.Balance, error)
- func Details(ctx context.Context, g *libkb.GlobalContext, accountID stellar1.AccountID) (stellar1.AccountDetails, error)
- func ExchangeRate(ctx context.Context, g *libkb.GlobalContext, currency string) (stellar1.OutsideExchangeRate, error)
- func Fetch(ctx context.Context, g *libkb.GlobalContext) (res stellar1.Bundle, pukGen keybase1.PerUserKeyGeneration, err error)
- func FetchServerConfig(ctx context.Context, g *libkb.GlobalContext) (ret stellar1.StellarServerDefinitions, err error)
- func GetAcceptedDisclaimer(ctx context.Context, g *libkb.GlobalContext) (ret bool, err error)
- func GetAccountDisplayCurrency(ctx context.Context, g *libkb.GlobalContext, accountID stellar1.AccountID) (string, error)
- func NextAutoClaim(ctx context.Context, g *libkb.GlobalContext) (*stellar1.AutoClaim, error)
- func PaymentDetails(ctx context.Context, g *libkb.GlobalContext, txID string) (res stellar1.PaymentDetails, err error)
- func Post(ctx context.Context, g *libkb.GlobalContext, clearBundle stellar1.Bundle) (err error)
- func PostWithChainlink(ctx context.Context, g *libkb.GlobalContext, clearBundle stellar1.Bundle) (err error)
- func RecentPayments(ctx context.Context, g *libkb.GlobalContext, accountID stellar1.AccountID, ...) (stellar1.PaymentsPage, error)
- func ReleaseAutoClaimLock(ctx context.Context, g *libkb.GlobalContext, token string) error
- func SetAcceptedDisclaimer(ctx context.Context, g *libkb.GlobalContext) error
- func SetAccountDefaultCurrency(ctx context.Context, g *libkb.GlobalContext, accountID stellar1.AccountID, ...) error
- func ShouldCreate(ctx context.Context, g *libkb.GlobalContext) (shouldCreate, hasWallet bool, err error)
- func SubmitPayment(ctx context.Context, g *libkb.GlobalContext, post stellar1.PaymentDirectPost) (stellar1.PaymentResult, error)
- func SubmitRelayClaim(ctx context.Context, g *libkb.GlobalContext, post stellar1.RelayClaimPost) (stellar1.RelayClaimResult, error)
- func SubmitRelayPayment(ctx context.Context, g *libkb.GlobalContext, post stellar1.PaymentRelayPost) (stellar1.PaymentResult, error)
- type RemoteNet
- func (r *RemoteNet) AccountSeqno(ctx context.Context, accountID stellar1.AccountID) (uint64, error)
- func (r *RemoteNet) AcquireAutoClaimLock(ctx context.Context) (string, error)
- func (r *RemoteNet) Balances(ctx context.Context, accountID stellar1.AccountID) ([]stellar1.Balance, error)
- func (r *RemoteNet) Details(ctx context.Context, accountID stellar1.AccountID) (stellar1.AccountDetails, error)
- func (r *RemoteNet) ExchangeRate(ctx context.Context, currency string) (stellar1.OutsideExchangeRate, error)
- func (r *RemoteNet) GetAccountDisplayCurrency(ctx context.Context, accountID stellar1.AccountID) (string, error)
- func (r *RemoteNet) NextAutoClaim(ctx context.Context) (*stellar1.AutoClaim, error)
- func (r *RemoteNet) PaymentDetails(ctx context.Context, txID string) (res stellar1.PaymentDetails, err error)
- func (r *RemoteNet) RecentPayments(ctx context.Context, accountID stellar1.AccountID, cursor *stellar1.PageCursor, ...) (stellar1.PaymentsPage, error)
- func (r *RemoteNet) ReleaseAutoClaimLock(ctx context.Context, token string) error
- func (r *RemoteNet) SubmitPayment(ctx context.Context, post stellar1.PaymentDirectPost) (stellar1.PaymentResult, error)
- func (r *RemoteNet) SubmitRelayClaim(ctx context.Context, post stellar1.RelayClaimPost) (stellar1.RelayClaimResult, error)
- func (r *RemoteNet) SubmitRelayPayment(ctx context.Context, post stellar1.PaymentRelayPost) (stellar1.PaymentResult, error)
- type Remoter
- type UserHasNoAccountsError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AccountSeqno ¶ added in v1.0.48
func AcquireAutoClaimLock ¶
func Details ¶
func Details(ctx context.Context, g *libkb.GlobalContext, accountID stellar1.AccountID) (stellar1.AccountDetails, error)
func ExchangeRate ¶ added in v1.0.48
func ExchangeRate(ctx context.Context, g *libkb.GlobalContext, currency string) (stellar1.OutsideExchangeRate, error)
func Fetch ¶
func Fetch(ctx context.Context, g *libkb.GlobalContext) (res stellar1.Bundle, pukGen keybase1.PerUserKeyGeneration, err error)
Fetch and unbox the latest bundle from the server.
func FetchServerConfig ¶
func FetchServerConfig(ctx context.Context, g *libkb.GlobalContext) (ret stellar1.StellarServerDefinitions, err error)
func GetAcceptedDisclaimer ¶
func GetAccountDisplayCurrency ¶ added in v1.0.48
func NextAutoClaim ¶
func PaymentDetails ¶
func PaymentDetails(ctx context.Context, g *libkb.GlobalContext, txID string) (res stellar1.PaymentDetails, err error)
func PostWithChainlink ¶
func PostWithChainlink(ctx context.Context, g *libkb.GlobalContext, clearBundle stellar1.Bundle) (err error)
Post a bundle to the server with a chainlink.
func RecentPayments ¶ added in v1.0.48
func RecentPayments(ctx context.Context, g *libkb.GlobalContext, accountID stellar1.AccountID, cursor *stellar1.PageCursor, limit int) (stellar1.PaymentsPage, error)
func ReleaseAutoClaimLock ¶
func SetAcceptedDisclaimer ¶
func SetAcceptedDisclaimer(ctx context.Context, g *libkb.GlobalContext) error
func SetAccountDefaultCurrency ¶ added in v1.0.48
func ShouldCreate ¶
func ShouldCreate(ctx context.Context, g *libkb.GlobalContext) (shouldCreate, hasWallet bool, err error)
ShouldCreate asks the server whether to create this user's initial wallet.
func SubmitPayment ¶ added in v1.0.48
func SubmitPayment(ctx context.Context, g *libkb.GlobalContext, post stellar1.PaymentDirectPost) (stellar1.PaymentResult, error)
func SubmitRelayClaim ¶
func SubmitRelayClaim(ctx context.Context, g *libkb.GlobalContext, post stellar1.RelayClaimPost) (stellar1.RelayClaimResult, error)
func SubmitRelayPayment ¶ added in v1.0.48
func SubmitRelayPayment(ctx context.Context, g *libkb.GlobalContext, post stellar1.PaymentRelayPost) (stellar1.PaymentResult, error)
Types ¶
type RemoteNet ¶ added in v1.0.48
type RemoteNet struct {
libkb.Contextified
}
RemoteNet is the real implementation of Remoter that talks to servers.
func NewRemoteNet ¶ added in v1.0.48
func NewRemoteNet(g *libkb.GlobalContext) *RemoteNet
func (*RemoteNet) AccountSeqno ¶ added in v1.0.48
func (*RemoteNet) AcquireAutoClaimLock ¶
func (*RemoteNet) ExchangeRate ¶
func (*RemoteNet) GetAccountDisplayCurrency ¶
func (*RemoteNet) NextAutoClaim ¶
func (*RemoteNet) PaymentDetails ¶
func (*RemoteNet) RecentPayments ¶ added in v1.0.48
func (*RemoteNet) ReleaseAutoClaimLock ¶
func (*RemoteNet) SubmitPayment ¶ added in v1.0.48
func (r *RemoteNet) SubmitPayment(ctx context.Context, post stellar1.PaymentDirectPost) (stellar1.PaymentResult, error)
func (*RemoteNet) SubmitRelayClaim ¶
func (r *RemoteNet) SubmitRelayClaim(ctx context.Context, post stellar1.RelayClaimPost) (stellar1.RelayClaimResult, error)
func (*RemoteNet) SubmitRelayPayment ¶ added in v1.0.48
func (r *RemoteNet) SubmitRelayPayment(ctx context.Context, post stellar1.PaymentRelayPost) (stellar1.PaymentResult, error)
type Remoter ¶ added in v1.0.48
type Remoter interface { AccountSeqno(ctx context.Context, accountID stellar1.AccountID) (uint64, error) Balances(ctx context.Context, accountID stellar1.AccountID) ([]stellar1.Balance, error) Details(ctx context.Context, accountID stellar1.AccountID) (stellar1.AccountDetails, error) SubmitPayment(ctx context.Context, post stellar1.PaymentDirectPost) (stellar1.PaymentResult, error) SubmitRelayPayment(ctx context.Context, post stellar1.PaymentRelayPost) (stellar1.PaymentResult, error) SubmitRelayClaim(context.Context, stellar1.RelayClaimPost) (stellar1.RelayClaimResult, error) AcquireAutoClaimLock(context.Context) (string, error) ReleaseAutoClaimLock(context.Context, string) error NextAutoClaim(context.Context) (*stellar1.AutoClaim, error) RecentPayments(ctx context.Context, accountID stellar1.AccountID, cursor *stellar1.PageCursor, limit int) (stellar1.PaymentsPage, error) PaymentDetails(ctx context.Context, txID string) (res stellar1.PaymentDetails, err error) // GetAccountDisplayCurrency is not used as a mock now - since this // setting only lives in database table on the server, we can do full // integration testing here. Otherwise, all what ChangeDisplayCurrency // test would do is testing a mock. GetAccountDisplayCurrency(ctx context.Context, accountID stellar1.AccountID) (string, error) ExchangeRate(ctx context.Context, currency string) (stellar1.OutsideExchangeRate, error) }
type UserHasNoAccountsError ¶
type UserHasNoAccountsError struct{}
func (UserHasNoAccountsError) Error ¶
func (e UserHasNoAccountsError) Error() string
Click to show internal directories.
Click to hide internal directories.