log_loop

package
v0.0.0-...-de0a7f0 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLogLoop

func NewLogLoop(l lager.Logger, p RConPool) *logLoop

Types

type Player

type Player struct {
	Name      string
	SteamId64 string
	Team      string
}

type RConPool

type RConPool interface {
	WithConnection(ctx context.Context, f func(c *rcon.Connection)) error
}

type StructuredLogLine

type StructuredLogLine struct {
	Raw       string
	Timestamp time.Time
	Action    string
	Actor     Player
	Subject   Player
	Weapon    string
	Message   string
	Rest      string
}

func ParseLogLine

func ParseLogLine(line string) (StructuredLogLine, error)

func (*StructuredLogLine) String

func (l *StructuredLogLine) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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