Documentation
¶
Index ¶
- Constants
- type ApiClient
- func (a ApiClient) CreateBoard(newBoard NewBoard) (Board, response, error)
- func (a ApiClient) CreateInvite(boardId string, ni NewInvite) (BoardInvite, response, error)
- func (a ApiClient) CreateLink(boardId string, nl NewLink) (Link, response, error)
- func (a ApiClient) DeleteBoard(boardId string) (response, error)
- func (a ApiClient) DeleteInvite(boardId string, inviteId string) (response, error)
- func (a ApiClient) DeleteLink(boardId string, linkId string) (response, error)
- func (a ApiClient) EditBoard(boardId string, be BoardEdit) (Board, response, error)
- func (a ApiClient) EditBoardUser(boardId string, userId string, bue BoardUserEdit) (BoardUser, response, error)
- func (a ApiClient) GetBoard(boardId string) (Board, response, error)
- func (a ApiClient) GetBoards(qp QueryParams) ([]Board, response, error)
- func (a ApiClient) GetInvites(qp QueryParams) ([]BoardInvite, response, error)
- func (a ApiClient) GetLink(boardId string, linkId string) (Link, response, error)
- func (a ApiClient) GetLinks(boardId string, qp LinkQueryParams) ([]Link, response, error)
- func (a ApiClient) RateLink(boardId string, linkId string, lr LinkRating) (response, error)
- func (a ApiClient) RemoveUserFromBoard(boardId string, userId string) (response, error)
- func (a ApiClient) RespondToInvite(boardId string, inviteId string, ir InviteResponse) (response, error)
- type Board
- type BoardEdit
- type BoardInvite
- type BoardUser
- type BoardUserEdit
- type InviteResponse
- type Link
- type LinkQueryParams
- type LinkRating
- type NewBoard
- type NewInvite
- type NewLink
- type QueryParams
- type User
Constants ¶
View Source
const InviteResponseAccept = "accept"
View Source
const InviteResponseDecline = "decline"
View Source
const LinkSortNewest = "newest"
View Source
const LinkSortTop = "top"
View Source
const RoleEditor = "editor"
View Source
const RoleOwner = "owner"
View Source
const RoleViewer = "viewer"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiClient ¶
func NewApiClient ¶
func (ApiClient) CreateBoard ¶
func (ApiClient) CreateInvite ¶
func (a ApiClient) CreateInvite(boardId string, ni NewInvite) (BoardInvite, response, error)
func (ApiClient) CreateLink ¶
func (ApiClient) DeleteBoard ¶
func (ApiClient) DeleteInvite ¶
func (ApiClient) DeleteLink ¶
func (ApiClient) EditBoardUser ¶
func (ApiClient) GetBoards ¶
func (a ApiClient) GetBoards(qp QueryParams) ([]Board, response, error)
func (ApiClient) GetInvites ¶
func (a ApiClient) GetInvites(qp QueryParams) ([]BoardInvite, response, error)
func (ApiClient) GetLinks ¶
func (a ApiClient) GetLinks(boardId string, qp LinkQueryParams) ([]Link, response, error)
func (ApiClient) RateLink ¶
func (a ApiClient) RateLink(boardId string, linkId string, lr LinkRating) (response, error)
func (ApiClient) RemoveUserFromBoard ¶
func (ApiClient) RespondToInvite ¶
func (a ApiClient) RespondToInvite(boardId string, inviteId string, ir InviteResponse) (response, error)
type Board ¶
type Board struct { BoardId string `json:"boardId"` Name string `json:"name"` Description string `json:"description"` CreatedTime int64 `json:"createdTime"` CreatedBy User `json:"createdBy"` ModifiedTime int64 `json:"modifiedTime"` ModifiedBy User `json:"modifiedBy"` Users []BoardUser `json:"users"` Invites []BoardInvite `json:"invites"` }
type BoardInvite ¶
type BoardUserEdit ¶
type BoardUserEdit map[string]interface{}
func (BoardUserEdit) WithRole ¶
func (b BoardUserEdit) WithRole(role string) BoardUserEdit
type InviteResponse ¶
type InviteResponse struct {
Response string `json:"response,omitempty"`
}
type Link ¶
type Link struct { BoardId string `json:"boardId"` LinkId string `json:"linkId"` Title string `json:"title"` Url string `json:"url"` CreatedTime int64 `json:"createdTime"` CreatedBy User `json:"createdBy"` Score int `json:"score"` Upvotes int `json:"upvotes"` Downvotes int `json:"downvotes"` UserRating int `json:"userRating"` }
type LinkQueryParams ¶
type LinkRating ¶
type LinkRating struct {
Rating int `json:"rating"`
}
type QueryParams ¶
Click to show internal directories.
Click to hide internal directories.