Documentation ¶
Index ¶
- func CreatePage(path string, title string)
- func EditPage(path string, markdownPath string, title string)
- func GetPage(path string)
- func GetViews(path string)
- func ListPages()
- func MarkdownToHTML(markdownText string) (string, error)
- type GetPageListRequest
- type Node
- type NodeElement
- type Page
- type PageList
- type PageViews
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreatePage ¶
func MarkdownToHTML ¶
Types ¶
type GetPageListRequest ¶
type NodeElement ¶
type Page ¶
type Page struct { Path string `json:"path"` URL string `json:"url"` Title string `json:"title"` Description string `json:"description"` AuthorName string `json:"author_name,omitempty"` AuthorURL string `json:"author_url,omitempty"` ImageURL string `json:"image_url,omitempty"` Content []Node `json:"content,omitempty"` Views int `json:"views"` CanEdit bool `json:"can_edit,omitempty"` }
Page represents a page on Telegraph.
type PageList ¶
following types were copied as it is from https://github.com/toby3d/telegraph/blob/master/types.go
Click to show internal directories.
Click to hide internal directories.