state

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type State

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

func New

func New() *State

func (*State) Activate

func (a *State) Activate(seconds int)

func (*State) Active

func (a *State) Active() bool

func (*State) Deactivate

func (a *State) Deactivate()

func (*State) LastActive

func (a *State) LastActive() time.Time

Jump to

Keyboard shortcuts

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