presence

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var StatePriority = map[State]uint8{
	StateIdle:    10,
	StateViewing: 10,
	StateCoding:  20,
}

Functions

This section is empty.

Types

type Presence

type Presence struct {
	ID           string    `db:"id"`
	UserID       string    `db:"user_id"`
	WorkspaceID  string    `db:"workspace_id"`
	LastActiveAt time.Time `db:"last_active_at"`
	State        State     `db:"state"`
}

type State

type State string
const (
	StateIdle    State = "idle"
	StateViewing State = "viewing"
	StateCoding  State = "coding"
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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