epgstation

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EPGStationClient

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

func NewEPGStationClient

func NewEPGStationClient(baseURL string) *EPGStationClient

func (*EPGStationClient) GetEncode

func (c *EPGStationClient) GetEncode(ctx context.Context) (*EPGStationEncode, error)

func (*EPGStationClient) GetRecording

func (c *EPGStationClient) GetRecording(ctx context.Context) (*EPGStationRecording, error)

func (*EPGStationClient) GetReserveCounts

func (c *EPGStationClient) GetReserveCounts(ctx context.Context) (*EPGStationReserveCounts, error)

func (*EPGStationClient) GetStorages

func (c *EPGStationClient) GetStorages(ctx context.Context) (*EPGStationStorages, error)

func (*EPGStationClient) GetStreams

func (c *EPGStationClient) GetStreams(ctx context.Context) (*EPGStationStreams, error)

type EPGStationEncode

type EPGStationEncode struct {
	RunningItems []*struct{} `json:"runningItems"`
	WaitItems    []*struct{} `json:"waitItems"`
	EPGStationError
}

type EPGStationError

type EPGStationError struct {
	Code    int    `json:"code"`
	Message string `json:"message"`
	Errors  string `json:"errors"`
}

type EPGStationRecording

type EPGStationRecording struct {
	Total int `json:"total"`
	EPGStationError
}

type EPGStationReserveCounts

type EPGStationReserveCounts struct {
	Normal    int `json:"normal"`
	Conflicts int `json:"conflicts"`
	Skips     int `json:"skips"`
	Overlaps  int `json:"overlaps"`
	EPGStationError
}

type EPGStationStorages

type EPGStationStorages struct {
	Items []*struct {
		Name      string `json:"name"`
		Available int    `json:"available"`
		Used      int    `json:"used"`
		Total     int    `json:"total"`
	} `json:"items"`
	EPGStationError
}

type EPGStationStreams

type EPGStationStreams struct {
	Items []*struct {
		Type string `json:"type"`
	} `json:"items"`
	EPGStationError
}

type Plugin

type Plugin struct {
	EPGStationBaseURL string `toml:"-" env:"EPGSTATION_BASE_URL" envDefault:"http://localhost:8888"`
	// contains filtered or unexported fields
}

func (*Plugin) Gather

func (p *Plugin) Gather(accumulator telegraf.Accumulator) error

func (*Plugin) Init

func (p *Plugin) Init() error

func (*Plugin) SampleConfig

func (p *Plugin) SampleConfig() string

Jump to

Keyboard shortcuts

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