Documentation ¶
Index ¶
Constants ¶
View Source
const ( ServerContext = "http" UnsuccessfulTxsResource = "/unsuccessful-txs" ResubmitTxs = "/resubmit-txs" PrometheusMetrics = "/metrics" )
View Source
const MonitoringLoggerContext = "monitoring"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ICQClient ¶
type ICQClient struct {
// contains filtered or unexported fields
}
ICQClient provides high level methods to work with ICQ webserver api
func NewICQClient ¶
NewICQClient takes a host as a single argument and returns an ICQClient in case of well formatted host arg host format is <scheme>://<host>[:<port>], e.g. http://myicq.host, https://myicq.host, http://myicq.host:8080
func (ICQClient) GetUnsuccessfulTxs ¶
func (c ICQClient) GetUnsuccessfulTxs() ([]relay.UnsuccessfulTxInfo, error)
func (ICQClient) ResubmitTxs ¶
func (c ICQClient) ResubmitTxs(txs ResubmitRequest) error
type PromWrapper ¶
type PromWrapper struct {
// contains filtered or unexported fields
}
func NewPromWrapper ¶
func NewPromWrapper(logRegistry *nlogger.Registry, storage relay.Storage) PromWrapper
func (PromWrapper) ServeHTTP ¶
func (p PromWrapper) ServeHTTP(res http.ResponseWriter, req *http.Request)
type ResubmitRequest ¶
type ResubmitRequest struct {
Txs []ResubmitTx `json:"txs"`
}
type ResubmitTx ¶
Click to show internal directories.
Click to hide internal directories.