Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Annotations ¶
type Block ¶
type Block struct { BlockBase BulletedListItem BulletedListItemBlock `json:"bulleted_list_item"` }
type BulletedListItemBlock ¶
type BulletedListItemBlock struct {
Text []RichText `json:"text"`
}
type Client ¶
func (Client) RetrieveDatabase ¶
type Database ¶
type Database struct { Object string `json:"object"` ID string `json:"id"` CreatedTime time.Time `json:"created_time"` LastEditedTime time.Time `json:"last_edited_time"` Title []RichText `json:"title"` }
func (Database) DatabaseTitle ¶
type DatabaseTypeProperties ¶
type DatabaseTypeProperties struct { // TODO: since the key of the property changes dynamically, // only getting the title property ad hoc. TitleValue TitlePropertyValue }
func (DatabaseTypeProperties) Title ¶
func (d DatabaseTypeProperties) Title() string
type Page ¶
type Page struct { Object string `json:"object"` ID string `json:"id"` CreatedTime time.Time `json:"created_time"` LastEditedTime time.Time `json:"last_edited_time"` Parent Parent `json:"parent"` Archived bool `json:"archived"` Properties Properties }
func (*Page) UnmarshalJSON ¶
type PageTypeProperties ¶
type PageTypeProperties struct {
TitleValue TitlePropertyValue `json:"title"`
}
func (PageTypeProperties) Title ¶
func (p PageTypeProperties) Title() string
type Properties ¶
type Properties interface {
Title() string
}
type RichText ¶
type RichText struct { RichTextBase Text struct { Content string `json:"content"` Link struct { Type string `json:"type"` Url string `json:"url"` } `json:"link"` } `json:"text"` }
type RichTextBase ¶
type RichTextBase struct { PlainText string `json:"plain_text"` Href string `json:"href"` Type string `json:"type"` Annotations Annotations `json:"annotations"` }
type TitlePropertyValue ¶
type WorkSpaceTypeProperties ¶
type WorkSpaceTypeProperties struct {
TitleValue TitlePropertyValue `json:"title"`
}
func (WorkSpaceTypeProperties) Title ¶
func (w WorkSpaceTypeProperties) Title() string
Click to show internal directories.
Click to hide internal directories.