trello

package
v0.1.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrBoardNotFound = errors.New("board not found")

ErrBoardNotFound is returned when a board is not found

Functions

This section is empty.

Types

type Client

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

Client makes requests via the trello API to get data for the current user

func NewClient

func NewClient(cfg *Config) *Client

NewClient returns a new instance of Client

func (*Client) Board

func (t *Client) Board(name string) (*domain.Board, error)

Board returns a domain.Board populated with the latest info about the specified board

func (*Client) Init

func (t *Client) Init() error

Init setups the client with the configuration provided, connection to trello's backend is initialized on the first use

type Config

type Config struct {
	User, Key, Token string
	Timeout          time.Duration
}

Config is the trello client configuration

Jump to

Keyboard shortcuts

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