collector

package
v0.0.0-...-a443d5c Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2024 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 Client

type Client interface {
	Publish(ctx context.Context, discoveryType string, payload interface{}) error
	Heartbeat(ctx context.Context) error
}

type Collector

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

func NewCollectorClient

func NewCollectorClient(config *Config, httpClient *http.Client) *Collector

func (*Collector) Heartbeat

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

func (*Collector) Publish

func (c *Collector) Publish(ctx context.Context, discoveryType string, payload interface{}) error

type Config

type Config struct {
	AgentID   string
	ServerURL string
	APIKey    string
}

Jump to

Keyboard shortcuts

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