device

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2022 License: MIT Imports: 1 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 {
	Created time.Time // Time the event was created
}

Event is the basic type all device events should implement. Event is an timeline.Ater and can be placed onto a timeline.TL.

func (Event) At

func (e Event) At() time.Time

At implements the timeline.Ater interface. It returns the Created time.

type Named

type Named struct {
	Target string
}

Named can be composed in an Event to allow it to be filtered by name. Named implements tlutil.Namer. See tlutil.FilterByName.

func (Named) Name

func (n Named) Name() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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