Database

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddItemAmount

func AddItemAmount()

func AddSessionAmount

func AddSessionAmount()

func GetDatabase

func GetDatabase() *gorm.DB

Types

type RgbItem

type RgbItem struct {
	gorm.Model
	FileName   string        `json:"file_name"`
	Identifier string        `json:"identifier"`
	SessionID  string        `json:"-"`
	SrcHeight  int           `json:"src_height"`
	SrcWidth   int           `json:"src_width"`
	DstHeight  int           `json:"dst_height"`
	DstWidth   int           `json:"dst_width"`
	Value      template.HTML `json:"-"`
}

type Status

type Status struct {
	gorm.Model `json:"-"`
	Sessions   uint `json:"sessions"`
	Items      uint `json:"items"`
}

func GetStats

func GetStats() *Status

Jump to

Keyboard shortcuts

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