domain

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Board

type Board struct {
	Updated     time.Time
	IsEmpty     bool
	Name        string
	Description string
	Lists       []List
}

Board describes a trello board

func NewBoard

func NewBoard(name, description string, lists []List, isEmpty bool) *Board

NewBoard returns a new instance of Board

func (*Board) CardByID

func (b *Board) CardByID(id int) (Card, bool)

CardByID returns a card with the corresponding id if available

type Card

type Card struct {
	ID          string
	Name        string
	Description string
	Pos         float64
	Labels      []CardLabel
}

Card describes a trello card which can be part of a trello list

func NewCard

func NewCard(id, name, description string, pos float64, labels []CardLabel) Card

NewCard returns a news instance of the Card type

type CardLabel

type CardLabel struct {
	Name  string
	Color string
}

CardLabel describes a trello label which can be associated with a trello card

type List

type List struct {
	ID        string
	Name      string
	CardsByID map[int]Card
	CartIds   []int
}

List describes a trello list

func NewList

func NewList(id, name string, cardsByID map[int]Card) List

NewList returns a new instance of List

Jump to

Keyboard shortcuts

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