Documentation ¶
Index ¶
- type Connector
- func (c *Connector) AttachToHandler(mux *http.ServeMux)
- func (c *Connector) CheckMissingTransactions(w http.ResponseWriter, req *http.Request)
- func (c *Connector) GetAccountBalance(w http.ResponseWriter, req *http.Request)
- func (c *Connector) GetMissingTransactions(w http.ResponseWriter, req *http.Request)
- func (c *Connector) GetRewardAPR(w http.ResponseWriter, req *http.Request)
- func (c *Connector) GetRewards(w http.ResponseWriter, req *http.Request)
- func (c *Connector) GetRunningTransactions(w http.ResponseWriter, req *http.Request)
- func (c *Connector) StopRunningTransactions(w http.ResponseWriter, req *http.Request)
- type MissingTransactionsResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connector ¶
type Connector struct {
// contains filtered or unexported fields
}
Connector is main HTTP connector for manager
func NewConnector ¶
func NewConnector(cli client.ClientContractor) *Connector
NewConnector is Connector constructor
func (*Connector) AttachToHandler ¶
AttachToHandler attaches handlers to http server's mux
func (*Connector) CheckMissingTransactions ¶
func (c *Connector) CheckMissingTransactions(w http.ResponseWriter, req *http.Request)
CheckMissingTransactions is http handler for CheckMissingTransactions method
func (*Connector) GetAccountBalance ¶ added in v0.1.0
func (c *Connector) GetAccountBalance(w http.ResponseWriter, req *http.Request)
GetAccountBalance calculates daily balance for provided address
func (*Connector) GetMissingTransactions ¶
func (c *Connector) GetMissingTransactions(w http.ResponseWriter, req *http.Request)
GetMissingTransactions is http handler for GetMissingTransactions method
func (*Connector) GetRewardAPR ¶ added in v0.3.1
func (c *Connector) GetRewardAPR(w http.ResponseWriter, req *http.Request)
GetRewardAPR calculates daily reward annual percentage rates for provided address
func (*Connector) GetRewards ¶ added in v0.0.9
func (c *Connector) GetRewards(w http.ResponseWriter, req *http.Request)
GetRewards calculates daily rewards for provided address
func (*Connector) GetRunningTransactions ¶
func (c *Connector) GetRunningTransactions(w http.ResponseWriter, req *http.Request)
GetRunningTransactions gets currently running transactions
func (*Connector) StopRunningTransactions ¶ added in v0.0.7
func (c *Connector) StopRunningTransactions(w http.ResponseWriter, req *http.Request)
StopRunningTransactions stops currently running transactions
type MissingTransactionsResponse ¶
type MissingTransactionsResponse struct { MissingTransactions [][2]uint64 `json:"missing_transactions"` MissingBlocks [][2]uint64 `json:"missing_blocks"` }
MissingTransactionsResponse the response