Documentation
¶
Index ¶
- Constants
- func NewComponent(_ context.Context, apiServer *echo.Echo, config *config.File, ...) component.Component
- type Component
- func (c *Component) CollectMetric(ctx context.Context, value string)
- func (c *Component) GetActivityCount(ctx echo.Context) error
- func (c *Component) GetNodeOperator(ctx echo.Context) error
- func (c *Component) GetVersion(ctx echo.Context) error
- func (c *Component) GetWorkersStatus(ctx echo.Context) error
- func (c *Component) InitMeter() (err error)
- func (c *Component) Name() string
- type StatisticResponse
- type Version
- type VersionResponse
- type WorkerInfo
- type WorkerKey
- type WorkerResponse
- type WorkerStatusAggregator
Constants ¶
View Source
const Name = "info"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Component ¶
type Component struct {
// contains filtered or unexported fields
}
func (*Component) CollectMetric ¶
func (*Component) GetActivityCount ¶ added in v0.5.1
GetActivityCount returns the total number of activities indexed by this Node.
func (*Component) GetNodeOperator ¶ added in v0.5.1
GetNodeOperator returns the node information.
func (*Component) GetVersion ¶ added in v0.5.8
GetVersion returns the version of the network component.
func (*Component) GetWorkersStatus ¶ added in v0.5.1
GetWorkersStatus returns the status of all workers.
type StatisticResponse ¶ added in v0.5.1
type VersionResponse ¶ added in v0.5.8
type VersionResponse struct {
Data Version `json:"data"`
}
type WorkerInfo ¶ added in v0.5.1
type WorkerResponse ¶ added in v0.5.1
type WorkerResponse struct {
Data []*WorkerInfo `json:"data"`
}
type WorkerStatusAggregator ¶ added in v0.5.1
WorkerStatusAggregator aggregates the statuses of workers with the same Network+Worker.
Click to show internal directories.
Click to hide internal directories.