Documentation
¶
Index ¶
- Constants
- func NewComponent(_ context.Context, apiServer *echo.Echo, config *config.File, ...) component.Component
- type AccountActivitiesRequest
- type ActivitiesResponse
- type ActivityRequest
- type ActivityResponse
- type Component
- func (c *Component) CollectMetric(ctx context.Context, value string)
- func (c *Component) GetAccountActivities(ctx echo.Context) (err error)
- func (c *Component) GetActivitiesCount(ctx echo.Context) error
- func (c *Component) GetActivity(ctx echo.Context) error
- func (c *Component) GetWorkers(ctx echo.Context) error
- func (c *Component) InitMeter() (err error)
- func (c *Component) Name() string
- type MetaCursor
- type MetaTotalPages
- type StatisticResponse
- type WorkerInfo
- type WorkerKey
- type WorkerResponse
- type WorkerStatusAggregator
Constants ¶
View Source
const Name = "decentralized"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AccountActivitiesRequest ¶
type AccountActivitiesRequest struct { Account string `param:"account" validate:"required"` Limit int `query:"limit" validate:"min=1,max=100" default:"100"` ActionLimit int `query:"action_limit" validate:"min=1,max=20" default:"10"` Cursor *string `query:"cursor"` SinceTimestamp *uint64 `query:"since_timestamp"` UntilTimestamp *uint64 `query:"until_timestamp"` Status *bool `query:"success"` Direction *activityx.Direction `query:"direction"` Network []network.Network `query:"network"` Tag []tag.Tag `query:"tag"` Type []schema.Type `query:"-"` Platform []string `query:"platform"` }
type ActivitiesResponse ¶
type ActivitiesResponse struct { Data []*activityx.Activity `json:"data"` Meta *MetaCursor `json:"meta,omitempty"` }
type ActivityRequest ¶
type ActivityResponse ¶
type ActivityResponse struct { Data *activityx.Activity `json:"data"` Meta *MetaTotalPages `json:"meta"` }
type Component ¶
type Component struct {
// contains filtered or unexported fields
}
func (*Component) CollectMetric ¶
func (*Component) GetAccountActivities ¶
func (*Component) GetActivitiesCount ¶
func (*Component) GetActivity ¶
func (*Component) GetWorkers ¶
GetWorkers returns the status of all workers.
type MetaCursor ¶
type MetaCursor struct {
Cursor string `json:"cursor"`
}
type MetaTotalPages ¶
type MetaTotalPages struct {
TotalPages int `json:"totalPages"`
}
type StatisticResponse ¶
type WorkerInfo ¶
type WorkerResponse ¶
type WorkerResponse struct {
Data []*WorkerInfo `json:"data"`
}
type WorkerStatusAggregator ¶ added in v0.4.24
WorkerStatusAggregator aggregates the statuses of workers with the same Network+Worker.
Click to show internal directories.
Click to hide internal directories.