watcher

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2017 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDatabase

func GetDatabase() *gorm.DB

func Run

func Run(boardID string)

Run fetches and saves the points of a given board. Called by the watcher and when refreshed on the frontend.

func Start

func Start()

Start starts watching boards that are active. Refreshes according to the refresh rate set in the configuration.

Types

type Board

type Board struct {
	ID              string `gorm:"primary_key"`
	Name            string
	DateStart       time.Time
	DateEnd         time.Time
	Cards           uint
	Points          float64
	CardsCompleted  uint
	PointsCompleted float64
	CardProgress    []CardProgress
}

type CardProgress

type CardProgress struct {
	gorm.Model
	BoardID string
	Date    time.Time
	Points  float64
}

Jump to

Keyboard shortcuts

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