Versions in this module Expand all Collapse all v2 v2.2.0 Aug 7, 2024 v2.1.0 Aug 5, 2024 Changes in this version type AccountField + var FieldAuthURL AccountField = AccountField{ ... } + var FieldAuthorName AccountField = AccountField{ ... } + var FieldAuthorURL AccountField = AccountField{ ... } + var FieldPageCount AccountField = AccountField{ ... } + var FieldShortName AccountField = AccountField{ ... } + func (af *AccountField) UnmarshalJSON(v []byte) error + func (af AccountField) GoString() string + func (af AccountField) MarshalJSON() ([]byte, error) + func (af AccountField) String() string type EditPage + func (params EditPage) Do(ctx context.Context, client *http.Client) (*Page, error) v2.0.1 Aug 5, 2024 Changes in this version + var DefaultEndpoint *url.URL = &url.URL + var ErrAuthorNameLength error = errors.New("unsupported length") + var ErrShortNameLength error = errors.New("unsupported length") + var ErrTag error = errors.New("unsupported Tag") + type Account struct + AccessToken string + AuthURL *URL + AuthorName AuthorName + AuthorURL URL + PageCount uint + ShortName ShortName + type AccountField struct + var AuthURLField AccountField = AccountField{ ... } + var AuthorNameField AccountField = AccountField{ ... } + var AuthorURLField AccountField = AccountField{ ... } + var PageCountField AccountField = AccountField{ ... } + var ShortNameField AccountField = AccountField{ ... } + type Attributes struct + Href string + Src string + type AuthorName struct + func NewAuthorName(raw string) (*AuthorName, error) + func TestAuthorName(tb testing.TB) *AuthorName + func (an *AuthorName) UnmarshalJSON(v []byte) error + func (an AuthorName) GoString() string + func (an AuthorName) IsEmpty() bool + func (an AuthorName) MarshalJSON() ([]byte, error) + func (an AuthorName) String() string + type CreateAccount struct + AuthorName *AuthorName + AuthorURL *URL + ShortName ShortName + func (params CreateAccount) Do(ctx context.Context, client *http.Client) (*Account, error) + type CreatePage struct + AccessToken string + AuthorName *AuthorName + AuthorURL *URL + Content []Node + ReturnContent bool + Title Title + func (params CreatePage) Do(ctx context.Context, client *http.Client) (*Page, error) + type EditAccountInfo struct + AccessToken string + AuthorName *AuthorName + AuthorURL *url.URL + ShortName *ShortName + func (params EditAccountInfo) Do(ctx context.Context, client *http.Client) (*Account, error) + type EditPage struct + AccessToken string + AuthorName *AuthorName + AuthorURL *URL + Content []Node + Path string + ReturnContent bool + Title Title + func (params EditPage) EditPage(ctx context.Context, client *http.Client) (*Page, error) + type GetAccountInfo struct + AccessToken string + Fields []AccountField + func (params GetAccountInfo) Do(ctx context.Context, client *http.Client) (*Account, error) + type GetPage struct + Path string + ReturnContent bool + func (params GetPage) Do(ctx context.Context, client *http.Client) (*Page, error) + type GetPageList struct + AccessToken string + Limit uint16 + Offset uint + func (params GetPageList) Do(ctx context.Context, client *http.Client) (*PageList, error) + type GetViews struct + Day uint8 + Hour uint8 + Month uint8 + Path string + Year uint16 + func (params GetViews) Do(ctx context.Context, client *http.Client) (*PageViews, error) + type Node struct + Element *NodeElement + Text string + func (n *Node) UnmarshalJSON(v []byte) error + func (n Node) GoString() string + func (n Node) MarshalJSON() ([]byte, error) + func (n Node) String() string + type NodeElement struct + Attrs *Attributes + Children []Node + Tag Tag + func NewNodeElement(tag Tag) *NodeElement + func (ne NodeElement) GoString() string + func (ne NodeElement) String() string + type Page struct + AuthorName *AuthorName + AuthorURL *URL + CanEdit bool + Content []Node + Description string + ImageURL *URL + Path string + Title *Title + URL *URL + Views uint + type PageList struct + Pages []Page + TotalCount uint + type PageViews struct + Views uint + type RevokeAccessToken struct + AccessToken string + func (params RevokeAccessToken) Do(ctx context.Context, client *http.Client) (*Account, error) + type ShortName struct + func NewShortName(raw string) (*ShortName, error) + func TestShortName(tb testing.TB) *ShortName + func (sn *ShortName) UnmarshalJSON(v []byte) error + func (sn ShortName) GoString() string + func (sn ShortName) MarshalJSON() ([]byte, error) + func (sn ShortName) String() string + type Tag struct + var A Tag = Tag{ ... } + var Aside Tag = Tag{ ... } + var B Tag = Tag{ ... } + var Blockquote Tag = Tag{ ... } + var Br Tag = Tag{ ... } + var Code Tag = Tag{ ... } + var Em Tag = Tag{ ... } + var Figcaption Tag = Tag{ ... } + var Figure Tag = Tag{ ... } + var H3 Tag = Tag{ ... } + var H4 Tag = Tag{ ... } + var Hr Tag = Tag{ ... } + var I Tag = Tag{ ... } + var Iframe Tag = Tag{ ... } + var Img Tag = Tag{ ... } + var Li Tag = Tag{ ... } + var Ol Tag = Tag{ ... } + var P Tag = Tag{ ... } + var Pre Tag = Tag{ ... } + var S Tag = Tag{ ... } + var Strong Tag = Tag{ ... } + var U Tag = Tag{ ... } + var Ul Tag = Tag{ ... } + var Video Tag = Tag{ ... } + func NewTag(t atom.Atom) (Tag, error) + func (t *Tag) UnmarshalJSON(v []byte) error + func (t Tag) Atom() atom.Atom + func (t Tag) GoString() string + func (t Tag) MarshalJSON() ([]byte, error) + func (t Tag) String() string + type Title struct + func NewTitle(raw string) (*Title, error) + func TestTitle(tb testing.TB) *Title + func (t *Title) UnmarshalJSON(v []byte) error + func (t *Title) Update(newTitle string) error + func (t Title) GoString() string + func (t Title) MarshalJSON() ([]byte, error) + func (t Title) String() string + type URL struct + func NewURL(u *url.URL) *URL + func (u *URL) UnmarshalJSON(v []byte) error + func (u URL) GoString() string + func (u URL) MarshalJSON() ([]byte, error) v2.0.0 Aug 5, 2024