Versions in this module Expand all Collapse all v1 v1.0.0 Jan 9, 2018 Changes in this version + const FieldAuthURL + const FieldAuthorName + const FieldAuthorURL + const FieldPageCount + const FieldShortName + var ErrInvalidDataType = errors.New("invalid data type") + type Account struct + AccessToken string + AuthURL string + AuthorName string + AuthorURL string + PageCount int + ShortName string + func CreateAccount(account *Account) (*Account, error) + func (account *Account) CreatePage(page *Page, returnContent bool) (*Page, error) + func (account *Account) EditAccountInfo(update *Account) (*Account, error) + func (account *Account) EditPage(update *Page, returnContent bool) (*Page, error) + func (account *Account) GetAccountInfo(fields ...string) (*Account, error) + func (account *Account) GetPageList(offset, limit int) (*PageList, error) + func (account *Account) RevokeAccessToken() (*Account, error) + type Node interface + func ContentFormat(data interface{}) ([]Node, error) + 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 int + func GetPage(path string, returnContent bool) (*Page, error) + type PageList struct + Pages []*Page + TotalCount int + type PageViews struct + Views int + func GetViews(path string, year, month, day, hour int) (*PageViews, error)