Documentation ¶
Index ¶
- type BTCPay
- type MockBTCPayClient
- func (a *MockBTCPayClient) CreateInvoice(inv *cl.InvoiceReq) *cl.InvoiceResponse
- func (a *MockBTCPayClient) GetClientID() string
- func (a *MockBTCPayClient) GetInvoice(invoiceID string) *cl.InvoiceResponse
- func (a *MockBTCPayClient) GetInvoices(args *cl.InvoiceArgs) *cl.InvoiceListResponse
- func (a *MockBTCPayClient) GetPairingCodeRequest(code string) string
- func (a *MockBTCPayClient) GetRates(currencyPairs []string, storeID string) *cl.RateResponse
- func (a *MockBTCPayClient) New() cl.Client
- func (a *MockBTCPayClient) PairClient(code string) *cl.TokenResponse
- func (a *MockBTCPayClient) SetLogLevel(level int)
- func (a *MockBTCPayClient) Token(req *cl.TokenRequest) *cl.TokenResponse
- type PayPlugin
- func (p *PayPlugin) CreateInvoice(inv *cl.InvoiceReq) *cl.InvoiceResponse
- func (p *PayPlugin) GetToken() string
- func (p *PayPlugin) IsPluginLoaded() bool
- func (p *PayPlugin) New() Plugin
- func (p *PayPlugin) NewClient(btc *BTCPay) Plugin
- func (p *PayPlugin) NewPairConnect(host string) *BTCPay
- func (p *PayPlugin) SetClient(c cl.Client)
- func (p *PayPlugin) SetLogLevel(level int)
- type Plugin
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BTCPay ¶
type BTCPay struct { ClientID string PublicKey string PrivateKey string Token string Host string PairingURL string }
BTCPay BTCPay
type MockBTCPayClient ¶
type MockBTCPayClient struct { MockClientID string MockTokenResponse *cl.TokenResponse MockPairingCodeURL string MockRateResponse *cl.RateResponse MockInvoiceResponse *cl.InvoiceResponse }
MockBTCPayClient MockBTCPayClient
func (*MockBTCPayClient) CreateInvoice ¶
func (a *MockBTCPayClient) CreateInvoice(inv *cl.InvoiceReq) *cl.InvoiceResponse
CreateInvoice CreateInvoice
func (*MockBTCPayClient) GetClientID ¶
func (a *MockBTCPayClient) GetClientID() string
GetClientID GetClientID
func (*MockBTCPayClient) GetInvoice ¶
func (a *MockBTCPayClient) GetInvoice(invoiceID string) *cl.InvoiceResponse
GetInvoice GetInvoice
func (*MockBTCPayClient) GetInvoices ¶
func (a *MockBTCPayClient) GetInvoices(args *cl.InvoiceArgs) *cl.InvoiceListResponse
GetInvoices GetInvoices
func (*MockBTCPayClient) GetPairingCodeRequest ¶
func (a *MockBTCPayClient) GetPairingCodeRequest(code string) string
GetPairingCodeRequest GetPairingCodeRequest
func (*MockBTCPayClient) GetRates ¶
func (a *MockBTCPayClient) GetRates(currencyPairs []string, storeID string) *cl.RateResponse
GetRates GetRates
func (*MockBTCPayClient) PairClient ¶
func (a *MockBTCPayClient) PairClient(code string) *cl.TokenResponse
PairClient PairClient
func (*MockBTCPayClient) SetLogLevel ¶ added in v1.0.1
func (a *MockBTCPayClient) SetLogLevel(level int)
SetLogLevel SetLogLevel
func (*MockBTCPayClient) Token ¶
func (a *MockBTCPayClient) Token(req *cl.TokenRequest) *cl.TokenResponse
Token Token
type PayPlugin ¶
PayPlugin PayPlugin
func (*PayPlugin) CreateInvoice ¶
func (p *PayPlugin) CreateInvoice(inv *cl.InvoiceReq) *cl.InvoiceResponse
CreateInvoice CreateInvoice
func (*PayPlugin) IsPluginLoaded ¶ added in v1.0.2
IsPluginLoaded IsPluginLoaded
func (*PayPlugin) NewPairConnect ¶
NewPairConnect NewPairConnect
func (*PayPlugin) SetLogLevel ¶ added in v1.0.1
SetLogLevel SetLogLevel
Click to show internal directories.
Click to hide internal directories.