Documentation
¶
Index ¶
- type Account
- type NodeElement
- type Page
- type PageList
- type PageViews
- type Query
- type Result
- type Telegraph
- func (t *Telegraph) CreatePage(title string, description string, content []NodeElement, author ...string) (np Page, err error)
- func (t *Telegraph) EditAccountInfo(short, author, url string) (a Account, err error)
- func (t *Telegraph) EditPage(op Page, returnConent bool) (np Page, err error)
- func (t *Telegraph) GetImage(link string) ([]byte, error)
- func (t *Telegraph) GetPage(path string, returnConent bool) (p Page, err error)
- func (t *Telegraph) GetPageList(limit, offset int) (pl PageList, err error)
- func (t *Telegraph) GetToken() string
- func (t *Telegraph) GetViews(path string, year, month, day, hour int) (v PageViews, err error)
- func (t *Telegraph) RevokeAccessToken(short, author, url string) (a Account, err error)
- func (t *Telegraph) SetImage(data []byte, name string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NodeElement ¶
type Page ¶
type Page struct {
Path string `json:"path"`
Url string `json:"url"`
Title string `json:"title"`
Description string `json:"decription"`
AuthorName string `json:"author_name"`
AuthorUrl string `json:"author_url"`
ImageUrl string `json:"image_url"`
Content []NodeElement `json:"content"`
Views int `json:"views"`
CanEdit bool `json:"can_edit"`
}
type Result ¶
type Result struct {
Ok bool `json:"ok"`
Result json.RawMessage `json:"result"`
Error string `json:"error"`
}
type Telegraph ¶
type Telegraph struct {
Name string
// contains filtered or unexported fields
}
func CreateAccount ¶ added in v1.0.3
func GetIntoAccount ¶ added in v1.0.3
func (*Telegraph) CreatePage ¶
func (*Telegraph) EditAccountInfo ¶
func (*Telegraph) GetPageList ¶
func (*Telegraph) RevokeAccessToken ¶
Click to show internal directories.
Click to hide internal directories.