cardcommands

package
v0.0.0-...-4c41a2e Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2022 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProcessCard

func ProcessCard(card *trello.Card, command CardCommand, c chan error)

Types

type CardCommand

type CardCommand interface {
	CheckCard(card *trello.Card) bool
	UpdateCard(card *trello.Card) error
}

func AllCommands

func AllCommands(members []string, delays map[string]float64) []CardCommand

type MissingDueCommand

type MissingDueCommand struct {
	Delays map[string]float64
}

func (MissingDueCommand) CheckCard

func (MissingDueCommand) CheckCard(card *trello.Card) bool

func (MissingDueCommand) UpdateCard

func (m MissingDueCommand) UpdateCard(card *trello.Card) error

type MissingMemberCommand

type MissingMemberCommand struct {
	Members []string
}

func (MissingMemberCommand) CheckCard

func (m MissingMemberCommand) CheckCard(card *trello.Card) bool

func (MissingMemberCommand) UpdateCard

func (m MissingMemberCommand) UpdateCard(card *trello.Card) error

type MoveDueCommand

type MoveDueCommand struct {
	Delays map[string]float64
}

func (MoveDueCommand) CheckCard

func (MoveDueCommand) CheckCard(card *trello.Card) bool

func (MoveDueCommand) UpdateCard

func (m MoveDueCommand) UpdateCard(card *trello.Card) error

type OverdueCommand

type OverdueCommand struct {
	Delays map[string]float64
}

func (OverdueCommand) CheckCard

func (OverdueCommand) CheckCard(card *trello.Card) bool

func (OverdueCommand) UpdateCard

func (m OverdueCommand) UpdateCard(card *trello.Card) error

Jump to

Keyboard shortcuts

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