models

package
v0.0.0-...-ea88d16 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AllExData

type AllExData struct {
	Exs    []Exercise
	Sets   []Set
	Weight []BodyWeight
}

AllExData - all sets and exercises

type BodyWeight

type BodyWeight struct {
	ID     int    `db:"ID"`
	Date   string `db:"DATE"`
	Weight int    `db:"WEIGHT"`
}

BodyWeight - store weight

type Conf

type Conf struct {
	Host      string
	Port      string
	Theme     string
	Color     string
	Icon      string
	DBPath    string
	DirPath   string
	ConfPath  string
	NodePath  string
	HeatColor string
	PageStep  int
	Auth      bool
}

Conf - web gui config

type Exercise

type Exercise struct {
	ID     int    `db:"ID"`
	Group  string `db:"GR"`
	Place  string `db:"PLACE"`
	Name   string `db:"NAME"`
	Descr  string `db:"DESCR"`
	Image  string `db:"IMAGE"`
	Color  string `db:"COLOR"`
	Weight int    `db:"WEIGHT"`
	Reps   int    `db:"REPS"`
}

Exercise - one exercise

type GuiData

type GuiData struct {
	Config   Conf
	Themes   []string
	ExData   AllExData
	GroupMap map[string]string
	OneEx    Exercise
	HeatMap  []HeatMapData
	Version  string
	Auth     auth.Conf
}

GuiData - web gui data

type HeatMapData

type HeatMapData struct {
	X string
	Y string
	D string
	V int
}

HeatMapData - data for HeatMap

type Set

type Set struct {
	ID     int    `db:"ID"`
	Date   string `db:"DATE"`
	Name   string `db:"NAME"`
	Color  string `db:"COLOR"`
	Weight int    `db:"WEIGHT"`
	Reps   int    `db:"REPS"`
}

Set - one set

Jump to

Keyboard shortcuts

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