guards

package
v0.0.0-...-07010e4 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	Timestamp time.Time
	Guard     int
	Type      EventType
}

func ParseEvent

func ParseEvent(s string) (*Event, error)

func ParseEvents

func ParseEvents(r io.Reader) ([]*Event, error)

func (Event) String

func (e Event) String() string

type EventType

type EventType string
const (
	BeginsShift EventType = "begins shift"
	FallsAsleep EventType = "falls asleep"
	WakesUp     EventType = "wakes up"
	EndsShift   EventType = "ends shift"
)

Jump to

Keyboard shortcuts

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