collector

package
v1.4.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 30, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Collector

type Collector struct {
	// contains filtered or unexported fields
}

func NewCollector

func NewCollector(client *http.Client, dataCh <-chan []*pb.MetricsPayload_Metric) *Collector

func (*Collector) CollectAndSend

func (c *Collector) CollectAndSend(ctx context.Context) error

type StrategyData

type StrategyData struct {
	Strategy  string      `json:"strategy"`
	Data      interface{} `json:"data"`
	Timestamp int64       `json:"timestamp"`
}

StrategyData contains the data generated by a strategy.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL