Documentation ¶
Index ¶
- Variables
- func NewNotFound(log *zap.Logger) http.Handler
- type Nodes
- func (controller *Nodes) Add(w http.ResponseWriter, r *http.Request)
- func (controller *Nodes) Delete(w http.ResponseWriter, r *http.Request)
- func (controller *Nodes) Get(w http.ResponseWriter, r *http.Request)
- func (controller *Nodes) ListInfos(w http.ResponseWriter, r *http.Request)
- func (controller *Nodes) ListInfosSatellite(w http.ResponseWriter, r *http.Request)
- func (controller *Nodes) TrustedSatellites(w http.ResponseWriter, r *http.Request)
- func (controller *Nodes) UpdateName(w http.ResponseWriter, r *http.Request)
- type NotFound
- type Payouts
- func (controller *Payouts) Expectations(w http.ResponseWriter, r *http.Request)
- func (controller *Payouts) GetAllNodesTotalEarned(w http.ResponseWriter, r *http.Request)
- func (controller *Payouts) NodeExpectations(w http.ResponseWriter, r *http.Request)
- func (controller *Payouts) Paystub(w http.ResponseWriter, r *http.Request)
- func (controller *Payouts) PaystubPeriod(w http.ResponseWriter, r *http.Request)
- func (controller *Payouts) PeriodSummary(w http.ResponseWriter, r *http.Request)
- func (controller *Payouts) SatellitePaystub(w http.ResponseWriter, r *http.Request)
- func (controller *Payouts) SatellitePaystubPeriod(w http.ResponseWriter, r *http.Request)
- func (controller *Payouts) SatellitePeriodSummary(w http.ResponseWriter, r *http.Request)
- func (controller *Payouts) SatelliteSummary(w http.ResponseWriter, r *http.Request)
- func (controller *Payouts) Summary(w http.ResponseWriter, r *http.Request)
Constants ¶
This section is empty.
Variables ¶
var ( // ErrNodes is an internal error type for nodes web api controller. ErrNodes = errs.Class("nodes web api controller") )
var ( // ErrPayouts is an internal error type for payouts web api controller. ErrPayouts = errs.Class("payouts web api controller") )
Functions ¶
Types ¶
type Nodes ¶
type Nodes struct {
// contains filtered or unexported fields
}
Nodes is a web api controller.
func (*Nodes) Add ¶
func (controller *Nodes) Add(w http.ResponseWriter, r *http.Request)
Add handles node addition.
func (*Nodes) Delete ¶
func (controller *Nodes) Delete(w http.ResponseWriter, r *http.Request)
Delete handles node removal.
func (*Nodes) Get ¶
func (controller *Nodes) Get(w http.ResponseWriter, r *http.Request)
Get handles retrieving node by id.
func (*Nodes) ListInfos ¶
func (controller *Nodes) ListInfos(w http.ResponseWriter, r *http.Request)
ListInfos handles node basic info list retrieval.
func (*Nodes) ListInfosSatellite ¶
func (controller *Nodes) ListInfosSatellite(w http.ResponseWriter, r *http.Request)
ListInfosSatellite handles node satellite specific info list retrieval.
func (*Nodes) TrustedSatellites ¶ added in v1.21.1
func (controller *Nodes) TrustedSatellites(w http.ResponseWriter, r *http.Request)
TrustedSatellites handles retrieval of unique trusted satellites node urls list.
func (*Nodes) UpdateName ¶
func (controller *Nodes) UpdateName(w http.ResponseWriter, r *http.Request)
UpdateName is an endpoint to update node name.
type NotFound ¶
type NotFound struct {
// contains filtered or unexported fields
}
NotFound handles API response for not found routes.
type Payouts ¶ added in v1.24.2
type Payouts struct {
// contains filtered or unexported fields
}
Payouts is a web api controller.
func NewPayouts ¶ added in v1.24.2
NewPayouts is a constructor for Payouts.
func (*Payouts) Expectations ¶ added in v1.31.1
func (controller *Payouts) Expectations(w http.ResponseWriter, r *http.Request)
Expectations handles nodes estimated and undistributed earnings.
func (*Payouts) GetAllNodesTotalEarned ¶ added in v1.24.2
func (controller *Payouts) GetAllNodesTotalEarned(w http.ResponseWriter, r *http.Request)
GetAllNodesTotalEarned handles retrieval total earned amount .
func (*Payouts) NodeExpectations ¶ added in v1.31.1
func (controller *Payouts) NodeExpectations(w http.ResponseWriter, r *http.Request)
NodeExpectations handles node's estimated and undistributed.
func (*Payouts) Paystub ¶ added in v1.31.1
func (controller *Payouts) Paystub(w http.ResponseWriter, r *http.Request)
Paystub returns all summed paystubs.
func (*Payouts) PaystubPeriod ¶ added in v1.31.1
func (controller *Payouts) PaystubPeriod(w http.ResponseWriter, r *http.Request)
PaystubPeriod returns all satellites summed paystubs for period.
func (*Payouts) PeriodSummary ¶ added in v1.30.1
func (controller *Payouts) PeriodSummary(w http.ResponseWriter, r *http.Request)
PeriodSummary handles retrieval from nodes for specific period.
func (*Payouts) SatellitePaystub ¶ added in v1.31.1
func (controller *Payouts) SatellitePaystub(w http.ResponseWriter, r *http.Request)
SatellitePaystub returns all summed paystubs from specific satellite.
func (*Payouts) SatellitePaystubPeriod ¶ added in v1.31.1
func (controller *Payouts) SatellitePaystubPeriod(w http.ResponseWriter, r *http.Request)
SatellitePaystubPeriod returns satellite summed paystubs for period.
func (*Payouts) SatellitePeriodSummary ¶ added in v1.31.1
func (controller *Payouts) SatellitePeriodSummary(w http.ResponseWriter, r *http.Request)
SatellitePeriodSummary handles retrieval from nodes from specific satellite for specific period.
func (*Payouts) SatelliteSummary ¶ added in v1.31.1
func (controller *Payouts) SatelliteSummary(w http.ResponseWriter, r *http.Request)
SatelliteSummary handles retrieval from nodes from specific satellite.