http

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

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

func (c *Connector) AttachToHandler(mux *http.ServeMux)

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

Jump to

Keyboard shortcuts

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