Documentation
¶
Index ¶
- type APIResponse
- type Annotation
- type AnnotationFilterRequest
- type Card
- type CardAddTagsRequest
- type CardDetail
- type CardFilterRequest
- type CardRemoveTagsRequest
- type CardUpdateRequest
- type Client
- func (c *Client) AddCardTags(req *CardAddTagsRequest) error
- func (c *Client) ArchiveCards(ids []string) error
- func (c *Client) DeleteCards(ids []string) error
- func (c *Client) DeleteTags(ids []string) error
- func (c *Client) FilterAnnotations(req *AnnotationFilterRequest) ([]Annotation, error)
- func (c *Client) FilterCards(req *CardFilterRequest) ([]Card, error)
- func (c *Client) GetCardDetail(id string) (*CardDetail, error)
- func (c *Client) ListFolders() ([]Folder, error)
- func (c *Client) ListTags() ([]Tag, error)
- func (c *Client) MergeTags(req *TagMergeRequest) error
- func (c *Client) MoveCards(req *MoveCardsRequest) error
- func (c *Client) RagQueryCards(query string) ([]Card, error)
- func (c *Client) RemoveCardTags(req *CardRemoveTagsRequest) error
- func (c *Client) SaveCards(req *SaveCardsRequest) error
- func (c *Client) UpdateCard(req *CardUpdateRequest) error
- func (c *Client) UpdateTag(req *TagUpdateRequest) error
- type Folder
- type Insight
- type InsightQA
- type MoveCardsRequest
- type RagQueryRequest
- type SaveCardEntry
- type SaveCardsRequest
- type Tag
- type TagMergeRequest
- type TagUpdateRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIResponse ¶
type APIResponse struct {
Code int `json:"code"`
Message string `json:"message"`
Data json.RawMessage `json:"data"`
}
type Annotation ¶ added in v1.0.3
type AnnotationFilterRequest ¶ added in v1.0.3
type AnnotationFilterRequest struct {
Colors []string `json:"colors,omitempty"`
LastAnnotationID string `json:"last_annotation_id,omitempty"`
Limit int `json:"limit,omitempty"`
Keyword string `json:"keyword,omitempty"`
StartTime string `json:"start_time,omitempty"`
EndTime string `json:"end_time,omitempty"`
}
type Card ¶
type Card struct {
ID string `json:"id"`
Title string `json:"title"`
Description string `json:"description"`
ArticleTitle string `json:"article_title"`
Domain string `json:"domain"`
Read bool `json:"read"`
Starred bool `json:"starred"`
Tags []string `json:"tags"`
Folder *Folder `json:"folder,omitempty"`
URL string `json:"url"`
CreateTime string `json:"create_time"`
UpdateTime string `json:"update_time"`
}
Card is the shape returned by the card/filter list endpoint.
type CardAddTagsRequest ¶ added in v1.0.4
type CardDetail ¶ added in v1.0.2
type CardDetail struct {
ID string `json:"id"`
Title string `json:"title"`
Description string `json:"description"`
ArticleTitle string `json:"article_title"`
Domain string `json:"domain"`
Read bool `json:"read"`
Starred bool `json:"starred"`
Tags []string `json:"tags"`
Folder *Folder `json:"folder,omitempty"`
URL string `json:"url"`
CreateTime string `json:"create_time"`
UpdateTime string `json:"update_time"`
Content string `json:"content"`
Author string `json:"author"`
Annotations []Annotation `json:"annotations"`
Insight *Insight `json:"insight,omitempty"`
}
CardDetail is the full shape returned by the card/detail endpoint.
type CardFilterRequest ¶
type CardFilterRequest struct {
FolderFilters []string `json:"folder_filters,omitempty"`
TagFilters []string `json:"tag_filters,omitempty"`
Starred *bool `json:"starred,omitempty"`
Read *bool `json:"read,omitempty"`
Annotated *bool `json:"annotated,omitempty"`
Archived *bool `json:"archived,omitempty"`
LastCardID string `json:"last_card_id,omitempty"`
Limit int `json:"limit,omitempty"`
Keyword string `json:"keyword,omitempty"`
Page int `json:"page,omitempty"`
StartTime string `json:"start_time,omitempty"`
EndTime string `json:"end_time,omitempty"`
}
type CardRemoveTagsRequest ¶ added in v1.0.4
type CardUpdateRequest ¶ added in v1.0.2
type CardUpdateRequest struct {
ID string `json:"id"`
Title string `json:"title,omitempty"`
Description string `json:"description,omitempty"`
Starred *bool `json:"starred,omitempty"`
Read *bool `json:"read,omitempty"`
FolderNestedName *string `json:"folder_nested_name,omitempty"`
TagNestedNames []string `json:"tag_nested_names,omitempty"`
}
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) AddCardTags ¶ added in v1.0.4
func (c *Client) AddCardTags(req *CardAddTagsRequest) error
func (*Client) ArchiveCards ¶ added in v1.0.8
func (*Client) DeleteCards ¶ added in v1.0.2
func (*Client) DeleteTags ¶ added in v1.0.8
func (*Client) FilterAnnotations ¶ added in v1.0.3
func (c *Client) FilterAnnotations(req *AnnotationFilterRequest) ([]Annotation, error)
func (*Client) FilterCards ¶
func (c *Client) FilterCards(req *CardFilterRequest) ([]Card, error)
func (*Client) GetCardDetail ¶ added in v1.0.2
func (c *Client) GetCardDetail(id string) (*CardDetail, error)
func (*Client) ListFolders ¶ added in v1.0.4
func (*Client) MergeTags ¶ added in v1.0.8
func (c *Client) MergeTags(req *TagMergeRequest) error
func (*Client) MoveCards ¶ added in v1.0.8
func (c *Client) MoveCards(req *MoveCardsRequest) error
func (*Client) RagQueryCards ¶ added in v1.0.3
func (*Client) RemoveCardTags ¶ added in v1.0.4
func (c *Client) RemoveCardTags(req *CardRemoveTagsRequest) error
func (*Client) SaveCards ¶ added in v1.0.4
func (c *Client) SaveCards(req *SaveCardsRequest) error
func (*Client) UpdateCard ¶ added in v1.0.2
func (c *Client) UpdateCard(req *CardUpdateRequest) error
func (*Client) UpdateTag ¶ added in v1.0.8
func (c *Client) UpdateTag(req *TagUpdateRequest) error
type MoveCardsRequest ¶ added in v1.0.8
type RagQueryRequest ¶ added in v1.0.3
type RagQueryRequest struct {
Query string `json:"query"`
}
type SaveCardEntry ¶ added in v1.0.4
type SaveCardsRequest ¶ added in v1.0.4
type SaveCardsRequest struct {
Cards []SaveCardEntry `json:"cards"`
FolderNestedName string `json:"folder_nested_name,omitempty"`
TagNestedNames []string `json:"tag_nested_names,omitempty"`
}
type TagMergeRequest ¶ added in v1.0.8
type TagUpdateRequest ¶ added in v1.0.8
Click to show internal directories.
Click to hide internal directories.