Documentation
¶
Index ¶
Constants ¶
View Source
const AllKeysLabel = "all-keys"
View Source
const DefaultIdlePeriod = 30 * time.Second
View Source
const DelayLabel = "delay"
View Source
const IdleLabel = "idle"
View Source
const IdlePeriodLabel = "idle-period"
View Source
const InputEventIDLabel = "input-event-id"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BasePattern ¶
type BasePattern struct {
Name string
// contains filtered or unexported fields
}
func (*BasePattern) GetBase ¶
func (p *BasePattern) GetBase() *BasePattern
func (*BasePattern) GetDefaultDelay ¶
func (p *BasePattern) GetDefaultDelay() time.Duration
func (*BasePattern) Stop ¶
func (p *BasePattern) Stop()
func (*BasePattern) String ¶
func (p *BasePattern) String() string
type CPUPattern ¶
type CPUPattern struct {
BasePattern
}
type DesktopPattern ¶
type DesktopPattern struct {
BasePattern
// contains filtered or unexported fields
}
type Pattern ¶
type Pattern interface {
GetDefaultDelay() time.Duration
GetBase() *BasePattern
Run(context.Context, *zerolog.Logger) error
Stop()
String() string
}
func GetRunning ¶
func GetRunning() Pattern
type PulsePattern ¶
type PulsePattern struct {
BasePattern
}
type RainbowPattern ¶
type RainbowPattern struct {
BasePattern
}
type RandomPattern ¶
type RandomPattern struct {
BasePattern
}
type TypingPattern ¶
type TypingPattern struct {
BasePattern
}
func (*TypingPattern) String ¶
func (p *TypingPattern) String() string
type WaitPattern ¶
type WaitPattern struct {
BasePattern
}
Click to show internal directories.
Click to hide internal directories.