Documentation ¶
Index ¶
- Variables
- type HeldAmount
- func (heldAmount *HeldAmount) AllPaymentsMonthly(w http.ResponseWriter, r *http.Request)
- func (heldAmount *HeldAmount) AllPaymentsPeriod(w http.ResponseWriter, r *http.Request)
- func (heldAmount *HeldAmount) PayStubMonthly(w http.ResponseWriter, r *http.Request)
- func (heldAmount *HeldAmount) PayStubPeriod(w http.ResponseWriter, r *http.Request)
- func (heldAmount *HeldAmount) SatellitePaymentMonthly(w http.ResponseWriter, r *http.Request)
- func (heldAmount *HeldAmount) SatellitePaymentPeriod(w http.ResponseWriter, r *http.Request)
- type Notifications
- type Page
- type StorageNode
Constants ¶
This section is empty.
Variables ¶
var ErrHeldAmountAPI = errs.Class("heldAmount console web error")
ErrHeldAmountAPI - console heldAmount api error type.
var ErrNotificationsAPI = errs.Class("notifications console web error")
ErrNotificationsAPI - console notifications api error type.
var ErrStorageNodeAPI = errs.Class("storageNode console web error")
ErrStorageNodeAPI - console storageNode api error type.
Functions ¶
This section is empty.
Types ¶
type HeldAmount ¶
type HeldAmount struct {
// contains filtered or unexported fields
}
HeldAmount is an api controller that exposes all held amount related api.
func NewHeldAmount ¶
func NewHeldAmount(log *zap.Logger, service *heldamount.Service) *HeldAmount
NewHeldAmount is a constructor for heldAmount controller.
func (*HeldAmount) AllPaymentsMonthly ¶ added in v1.1.1
func (heldAmount *HeldAmount) AllPaymentsMonthly(w http.ResponseWriter, r *http.Request)
AllPaymentsMonthly returns payments for specific month from all satellites.
func (*HeldAmount) AllPaymentsPeriod ¶ added in v1.1.1
func (heldAmount *HeldAmount) AllPaymentsPeriod(w http.ResponseWriter, r *http.Request)
AllPaymentsPeriod retrieves payment for all satellites for selected range of months from storagenode database.
func (*HeldAmount) PayStubMonthly ¶ added in v1.1.1
func (heldAmount *HeldAmount) PayStubMonthly(w http.ResponseWriter, r *http.Request)
PayStubMonthly returns heldamount, storage holding and prices data for specific month from all satellites or specified satellite by query parameter id.
func (*HeldAmount) PayStubPeriod ¶ added in v1.1.1
func (heldAmount *HeldAmount) PayStubPeriod(w http.ResponseWriter, r *http.Request)
PayStubPeriod retrieves held amount for selected range of months from storagenode database for all satellites or specified satellite by query parameter id.
func (*HeldAmount) SatellitePaymentMonthly ¶ added in v1.1.1
func (heldAmount *HeldAmount) SatellitePaymentMonthly(w http.ResponseWriter, r *http.Request)
SatellitePaymentMonthly returns payment data from satellite for specific month.
func (*HeldAmount) SatellitePaymentPeriod ¶ added in v1.1.1
func (heldAmount *HeldAmount) SatellitePaymentPeriod(w http.ResponseWriter, r *http.Request)
SatellitePaymentPeriod retrieves payment for selected satellite for selected period from storagenode database.
type Notifications ¶
type Notifications struct {
// contains filtered or unexported fields
}
Notifications is an api controller that exposes all notifications related api.
func NewNotifications ¶
func NewNotifications(log *zap.Logger, service *notifications.Service) *Notifications
NewNotifications is a constructor for notifications controller.
func (*Notifications) ListNotifications ¶
func (notification *Notifications) ListNotifications(w http.ResponseWriter, r *http.Request)
ListNotifications returns listed page of notifications from database.
func (*Notifications) ReadAllNotifications ¶
func (notification *Notifications) ReadAllNotifications(w http.ResponseWriter, r *http.Request)
ReadAllNotifications updates all notifications in database as read.
func (*Notifications) ReadNotification ¶
func (notification *Notifications) ReadNotification(w http.ResponseWriter, r *http.Request)
ReadNotification updates specific notification in database as read.
type Page ¶
type Page struct { Notifications []notifications.Notification `json:"notifications"` Offset uint64 `json:"offset"` Limit uint `json:"limit"` CurrentPage uint `json:"currentPage"` PageCount uint `json:"pageCount"` }
Page contains notifications and related information.
type StorageNode ¶
type StorageNode struct {
// contains filtered or unexported fields
}
StorageNode is an api controller that exposes all dashboard related api.
func NewStorageNode ¶
func NewStorageNode(log *zap.Logger, service *console.Service) *StorageNode
NewStorageNode is a constructor for sno controller.
func (*StorageNode) Satellite ¶
func (dashboard *StorageNode) Satellite(w http.ResponseWriter, r *http.Request)
Satellite handles satellite API requests.
func (*StorageNode) Satellites ¶
func (dashboard *StorageNode) Satellites(w http.ResponseWriter, r *http.Request)
Satellites handles satellites API request.
func (*StorageNode) StorageNode ¶
func (dashboard *StorageNode) StorageNode(w http.ResponseWriter, r *http.Request)
StorageNode handles StorageNode API requests.