data

package
v0.0.0-...-9919733 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2022 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Overview

Package data contains definitions for data types.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Craving

type Craving struct {
	ID        int64
	Timestamp time.Time
	Score     uint8
	Note      string
}

Craving represents the user's craving (duh) for their substance of choice at a given point in time.

type Mood

type Mood struct {
	ID        int64
	Timestamp time.Time
	Score     uint8
	Note      string
}

Mood represents the user's mood at a given point in time.

type MoodList

type MoodList []Mood

func (MoodList) Reverse

func (ml MoodList) Reverse() MoodList

Jump to

Keyboard shortcuts

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