coordinator

package
v0.0.199 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2024 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const SinkType = "xatu"

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func New

func New(config *Config, log logrus.FieldLogger) (*Client, error)

func (*Client) HandleExecutionNodeRecordStatus

func (c *Client) HandleExecutionNodeRecordStatus(ctx context.Context, status *xatu.ExecutionNodeStatus) error

func (*Client) HandleNewNodeRecord

func (c *Client) HandleNewNodeRecord(ctx context.Context, record *string) error

func (*Client) ListStaleNodeRecords

func (c *Client) ListStaleNodeRecords(ctx context.Context) ([]string, error)

func (*Client) Start

func (c *Client) Start(ctx context.Context) error

func (*Client) Stop

func (c *Client) Stop(ctx context.Context) error

func (*Client) Type

func (c *Client) Type() string

type Config

type Config struct {
	Address                  string            `yaml:"address"`
	Headers                  map[string]string `yaml:"headers"`
	TLS                      bool              `yaml:"tls" default:"false"`
	MaxQueueSize             int               `yaml:"maxQueueSize" default:"51200"`
	BatchTimeout             time.Duration     `yaml:"batchTimeout" default:"5s"`
	ExportTimeout            time.Duration     `yaml:"exportTimeout" default:"30s"`
	MaxExportBatchSize       int               `yaml:"maxExportBatchSize" default:"512"`
	ConcurrentExecutionPeers int32             `yaml:"concurrentExecutionPeers" default:"100"`
}

func (*Config) Validate

func (c *Config) Validate() error

type ItemExporter

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

func NewItemExporter

func NewItemExporter(config *Config, log logrus.FieldLogger) (ItemExporter, error)

func (ItemExporter) ExportItems

func (e ItemExporter) ExportItems(ctx context.Context, items []*string) error

func (ItemExporter) Shutdown

func (e ItemExporter) Shutdown(ctx context.Context) error

Jump to

Keyboard shortcuts

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