state

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: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Trello               trello.Config
	SelectedBoard        string
	BoardRefreshInterval time.Duration
}

Config is the state configuration, including trello authentication details

type Updater

type Updater struct {
	// contains filtered or unexported fields
}

Updater ensures the state is updated as required

func NewUpdater

func NewUpdater(cfg *Config, put store.PutStateFunc) *Updater

NewUpdater returns a new instance of Updater

func (Updater) BeginRead

func (s Updater) BeginRead()

func (Updater) BeginWrite

func (s Updater) BeginWrite()

func (Updater) EndRead

func (s Updater) EndRead()

func (Updater) EndWrite

func (s Updater) EndWrite()

func (*Updater) Run

func (u *Updater) Run(ctx context.Context)

Run executes the loop exuting the requests via the trello client

Jump to

Keyboard shortcuts

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