Versions in this module Expand all Collapse all v2 v2.0.0 Jun 3, 2022 Changes in this version + func NodeToQueryString(nodes []Node) string + func Prettify(t interface{}) string + func Upload(f io.Reader, mediaType string) (string, error) + type Account struct + AccessToken string + AuthURL string + AuthorName string + AuthorURL string + PageCount int64 + ShortName string + func CreateAccount(opts CreateAccountOpts) (acc *Account, err error) + func EditAccountInfo(opts EditAccountInfoOpts) (acc *Account, err error) + func GetAccountInfo(opts GetAccountInfoOpts) (acc *Account, err error) + func RevokeAccessToken(opts RevokeAccessTokenOpts) (acc *Account, err error) + type AllValueTypes struct + AccessToken string + Attrs map[string]string + AuthURL string + AuthorName string + AuthorURL string + CanEdit bool + Children []Node + Content []Node + Description string + ImageURL string + PageCount int64 + Pages []Page + Path string + ShortName string + Tag string + Title string + TotalCount int64 + URL string + Views int64 + func Get(route string, opts interface{}) (*AllValueTypes, error) + func Post(route string, opts interface{}) (*AllValueTypes, error) + type CreateAccountOpts struct + AuthorName string + AuthorURL string + ShortName string + type CreatePageOpts struct + AccessToken string + AuthorName string + AuthorURL string + Content []Node + HTMLContent string + ReturnContent bool + Title string + type EditAccountInfoOpts struct + AccessToken string + AuthorName string + AuthorURL string + ShortName string + type EditPageOpts struct + AccessToken string + AuthorName string + AuthorURL string + Content []Node + HTMLContent string + Path string + ReturnContent bool + Title string + type GetAccountInfoOpts struct + AccessToken string + Fields []string + type GetPageListOpts struct + AccessToken string + Limit int64 + Offset int64 + type GetPageOpts struct + Path string + ReturnContent bool + type GetViewsOpts struct + Day int64 + Hour int64 + Month int64 + Path string + Year int64 + type Node interface + func HTMLToNode(html string) []Node + type NodeElement struct + Attrs map[string]string + Children []Node + Tag string + type Page struct + AuthorName string + AuthorURL string + CanEdit bool + Content []Node + Description string + ImageURL string + Path string + Title string + URL string + Views int64 + func CreatePage(opts CreatePageOpts) (page *Page, err error) + func EditPage(opts EditPageOpts) (page *Page, err error) + func GetPage(opts GetPageOpts) (page *Page, err error) + type PageList struct + Pages []Page + TotalCount int64 + func GetPageList(opts GetPageListOpts) (pl *PageList, err error) + type PageViews struct + Views int64 + func GetViews(opts GetViewsOpts) (views *PageViews, err error) + type RevokeAccessTokenOpts struct + AccessToken string