berconinput

package
v0.0.0-...-ad3e6c0 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2025 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BERCONINPUT

type BERCONINPUT struct {
	Servers  [][]string `toml:"servers"`
	Bans     bool       `toml:"bans"`
	Admins   bool       `toml:"admins"`
	Players  bool       `toml:"players"`
	Messages bool       `toml:"messages"`

	Log telegraf.Logger
	// contains filtered or unexported fields
}

BERCONINPUT is a Telegraf plugin for retrieving BattlEye RCON server information

func (*BERCONINPUT) Gather

func (s *BERCONINPUT) Gather(acc telegraf.Accumulator) error

Gather collects metrics from already connected BattlEye RCON servers

func (*BERCONINPUT) Init

func (s *BERCONINPUT) Init() error

Init validates the plugin configuration

func (*BERCONINPUT) SampleConfig

func (*BERCONINPUT) SampleConfig() string

SampleConfig returns the sample configuration for this plugin

func (*BERCONINPUT) Start

func (s *BERCONINPUT) Start(acc telegraf.Accumulator) error

Start opens connections to all configured servers and maintains them

func (*BERCONINPUT) Stop

func (s *BERCONINPUT) Stop()

Stop closes all connections to RCON servers

type MessageEvent

type MessageEvent struct {
	Server    string
	Data      []byte
	Timestamp time.Time
}

MessageEvent represents a message from BattlEye with metadata

Jump to

Keyboard shortcuts

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