user

package
Version: v0.0.0-...-f2da7a2 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2020 License: BSD-2-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type User

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

func NewUser

func NewUser(userId string, backend backend_contract.Api) *User

func (*User) DurationSinceLastSeen

func (u *User) DurationSinceLastSeen() time.Duration

func (*User) GetExcusalAsOf

func (u *User) GetExcusalAsOf(latestTimestamp time.Time) string

func (*User) Id

func (u *User) Id() string

func (*User) Track

func (u *User) Track(latestTimestamp time.Time)

type UserSettings

type UserSettings interface {
	ChatCapMinutes() int
	SilenceBarrierMinutes() int
	DailyTotalCapMinutes() int

	SetChatCapMinutes(minutes int)
	SetSilenceBarrierMinutes(minutes int)
	SetDailyTotalCapMinutes(minutes int)
}

func SettingsForUser

func SettingsForUser(userId string) UserSettings

Jump to

Keyboard shortcuts

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