model

package
v0.0.0-...-9982bc2 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2023 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StreakType_Login = iota + 1
	StreakType_Post
	StreakType_Chat
	StreakType_Comment
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Cursor

type Cursor struct {
	Limit             uint32
	CursorID          string
	BackwardDirection bool
}

func (Cursor) Params

func (c Cursor) Params() *cursor.Params

type Streak

type Streak struct {
	ID        string
	UserID    string
	Type      int64
	Counter   int64
	HoursLeft float64
	UpdatedAt time.Time `cursor:"offset,desc,default"`
}

Jump to

Keyboard shortcuts

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