railigentxreceiver

package module
v0.0.0-...-4fe06c0 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFactory

func NewFactory() receiver.Factory

NewFactory creates a factory for tailtracer receiver.

Types

type Config

type Config struct {
	BaseURL        string        `mapstructure:"baseURL"`
	Username       string        `mapstructure:"username"`
	Password       string        `mapstructure:"password"`
	ScrapeInterval time.Duration `mapstructure:"scrapeInterval"`
}

func (*Config) Validate

func (cfg *Config) Validate() error

type FleetObservations

type FleetObservations struct {
	Fleet        string
	Observed     bool
	Observations []railigentx.Asset
}

FleetObservations holds observations for a fleet

type ScrapeState

type ScrapeState int
const (
	ScrapeSucceeded ScrapeState = iota
	ScrapeFailed
	ScrapeIncomplete
)

type ScrapedData

type ScrapedData struct {
	ObservedAt         time.Time
	FleetsObservations []FleetObservations
}

ScrapedData holds data scraped from RailigentX

Jump to

Keyboard shortcuts

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