Documentation ¶
Index ¶
- type API
- type Board
- type Card
- type Client
- func (c *Client) Get(url string, response interface{}) (*http.Response, error)
- func (c *Client) GetBoard(name string) (*Board, error)
- func (c *Client) GetBoards() ([]Board, error)
- func (c *Client) GetCards(board Board) ([]Card, error)
- func (c *Client) GetLists(board Board) ([]List, error)
- func (c *Client) GetMember(ID string) (*Member, error)
- type List
- type Member
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API interface { GetBoard(name string) (*Board, error) GetBoards() ([]Board, error) GetCards(board Board) ([]Card, error) GetLists(board Board) ([]List, error) GetMember(ID string) (*Member, error) }
API defines the interface for the client
type Board ¶
type Board struct { ID string `json:"id"` Name string `json:"name"` Desc string `json:"desc"` Closed bool `json:"closed"` Memberships []struct { MemberID string `json:"idMember"` } `json:"memberships"` }
Board defines what a single board looks like
type Card ¶
type Card struct { Name string `json:"name"` ListID string `json:"idList"` MembershipIDs []string `json:"idMembers"` }
Card defines what a single card looks like
type Client ¶
type Client struct { Client *http.Client BaseURL string Key string Token string // contains filtered or unexported fields }
Client is the Trello concrete implementation
Click to show internal directories.
Click to hide internal directories.