model

package
v0.0.0-...-a9f1957 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type Address

type Address struct {
	Address      string       `json:"address"`
	PublicKey    string       `json:"public_key"`
	PrivateKey   string       `json:"private_key"`
	CurrencyCode CurrencyCode `json:"currency_code"`
	ExplorerURL  string       `json:"explorer_url"`
}

type CancelSubscriptionInput

type CancelSubscriptionInput struct {
	Email string `json:"email"`
}

type CreateSubscriptionInput

type CreateSubscriptionInput struct {
	Address      string       `json:"address"`
	Email        string       `json:"email"`
	CurrencyCode CurrencyCode `json:"currency_code"`
}

type Currency

type Currency struct {
	Code CurrencyCode `json:"code"`
	Name string       `json:"name"`
}

type CurrencyCode

type CurrencyCode string
const (
	CurrencyCodeBtc  CurrencyCode = "BTC"
	CurrencyCodeEth  CurrencyCode = "ETH"
	CurrencyCodeLtc  CurrencyCode = "LTC"
	CurrencyCodeDoge CurrencyCode = "DOGE"
	CurrencyCodeDash CurrencyCode = "DASH"
	CurrencyCodeBcy  CurrencyCode = "BCY"
)

func (CurrencyCode) IsValid

func (e CurrencyCode) IsValid() bool

func (CurrencyCode) MarshalGQL

func (e CurrencyCode) MarshalGQL(w io.Writer)

func (CurrencyCode) String

func (e CurrencyCode) String() string

func (*CurrencyCode) UnmarshalGQL

func (e *CurrencyCode) UnmarshalGQL(v interface{}) error

type DeleteHookInput

type DeleteHookInput struct {
	HookID       string       `json:"hook_id"`
	CurrencyCode CurrencyCode `json:"currency_code"`
}

type FundTestAddressInput

type FundTestAddressInput struct {
	Address string  `json:"address"`
	Amount  float64 `json:"amount"`
}

type GetStatusInput

type GetStatusInput struct {
	Email string `json:"email"`
}

type SubscriptionStatus

type SubscriptionStatus struct {
	IsSubscribed bool   `json:"is_subscribed"`
	Address      string `json:"address"`
}

type Transaction

type Transaction struct {
	Txhash      string  `json:"txhash"`
	Amount      float64 `json:"amount"`
	ExplorerURL string  `json:"explorer_url"`
}

Jump to

Keyboard shortcuts

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