trello

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2019 License: MIT Imports: 8 Imported by: 12

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDatabase

func GetDatabase() *gorm.DB

GetDatabase returns a sqlite3 database connection.

func Run

func Run(boardID string)

Run fetches and saves the points of a given board.

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
}

Board contains data of a trello board.

type CardProgress

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

CardProgress represents the progress of a card.

Jump to

Keyboard shortcuts

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