event

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Component

type Component int8
const (
	ComponentUnknown Component = iota
	ComponentEventInfo
	ComponentEventCars
	ComponentEventCarLaps
)

func ParseComponent

func ParseComponent(text string) (Component, error)

func (Component) MarshalText

func (c Component) MarshalText() ([]byte, error)

func (Component) String

func (c Component) String() string

func (*Component) UnmarshalText

func (c *Component) UnmarshalText(text []byte) error

type EventOutput

type EventOutput interface {
	Output()
}

func NewEventOutput

func NewEventOutput(eventData *eventv1.GetEventResponse, opts ...Option) EventOutput

type EventOutputConfig

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

type Option

type Option func(*EventOutputConfig)

func WithCarNumFilter

func WithCarNumFilter(carNumFilter []string) Option

func WithComponents

func WithComponents(comps []Component) Option

func WithFormat

func WithFormat(f output.Format) Option

Jump to

Keyboard shortcuts

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