Versions in this module Expand all Collapse all v1 v1.1.0 Sep 28, 2019 Changes in this version + type App struct + ID string + Token string v1.0.0 Sep 7, 2019 Changes in this version + func GetAppID(s session) (appID string) + type AppIDResponse []struct + type Article struct + ArticleType ArticleType + CommentLength int + Comments []*Comment + Content string + Date time.Time + GallogID string + GallogURL string + HasImage bool + Hit int + IP string + ImageURLs []ImageURLType + IsBest bool + Level Level + Name string + Number string + Subject string + ThumbsDown int + ThumbsUp int + URL string + func FetchArticle(URL string) (a *Article, err error) + type ArticleDraft struct + Content string + GallID string + Images []string + Subject string + func NewArticleDraft(gallID, subject, content string, images ...string) *ArticleDraft + type ArticleType int + const ImageArticleType + const ImageBestArticleType + const MovieArticleType + const SuperBestArticleType + const TextArticleType + const TextBestArticleType + const UnknownArticleType + func (a ArticleType) IconURL() string + type Comment struct + Content string + Date time.Time + GallogID string + GallogURL string + HTML string + IP string + Level Level + Name string + Number string + Parents *Article + Type CommentType + type CommentDraft struct + Content string + TargetArticleNumber string + TargetGallID string + func NewCommentDraft(c commentable, content string) *CommentDraft + type CommentType int + const DCconCommentType + const TextCommentType + const UnknownCommentType + const VoiceCommentType + type Connection struct + func (c *Connection) SetTimeout(time time.Duration) + func (c *Connection) SetTransport(proxy *url.URL) + type Gall struct + ID string + URL string + type GuestSession struct + func Guest(id, pw string) (gs *GuestSession, err error) + func RandomGuest() *GuestSession + func (gs *GuestSession) Connection() *Connection + func (gs *GuestSession) Delete(d deletable) error + func (gs *GuestSession) ThumbsDown(a actionable) error + func (gs *GuestSession) ThumbsUp(a actionable) error + func (gs *GuestSession) Write(w writable) error + type ImageURLType string + func (i ImageURLType) Fetch() (data []byte, filename string, err error) + type Level string + const Level10 + const Level8 + const Level9 + const UnknownLevel + func (lv Level) IconURL() string + func (lv Level) Type() MemberType + type List struct + Info *ListInfo + Items []*ListItem + func FetchBestList(gallID string, page int) (l *List, err error) + func FetchList(gallID string, page int) (l *List, err error) + func Search(id, keyword string) (l *List, err error) + func SearchByAuthor(id, keyword string) (l *List, err error) + func SearchByContent(id, keyword string) (l *List, err error) + func SearchBySubject(id, keyword string) (l *List, err error) + func SearchBySubjectAndContent(id, keyword string) (l *List, err error) + type ListInfo struct + CategoryName string + FileCount string + FileSize string + type ListItem struct + ArticleType ArticleType + CommentLength int + Date time.Time + GallogID string + GallogURL string + HasImage bool + Hit int + IP string + IsBest bool + Level Level + Name string + Number string + Subject string + ThumbsUp int + URL string + VoiceCommentLength int + func (i *ListItem) Fetch() (*Article, error) + func (i *ListItem) FetchImageURLs() (imageURLs []ImageURLType, err error) + type MajorGallery struct + CanWrite bool + ID string + Name string + Number string + func FetchAllMajorGallery() (mg []*MajorGallery, err error) + type MemberSession struct + func Login(id, pw string) (ms *MemberSession, err error) + func (ms *MemberSession) Connection() *Connection + func (ms *MemberSession) Delete(d deletable) error + func (ms *MemberSession) Logout() (err error) + func (ms *MemberSession) ThumbsDown(a actionable) error + func (ms *MemberSession) ThumbsUp(a actionable) error + func (ms *MemberSession) Write(w writable) error + type MemberSessionDetail struct + Name string + Stype string + UserID string + UserNO string + type MemberType int + const FullMemberType + const GuestMemberType + const HalfMemberType + const UnknownMemberType + func (m MemberType) Level() Level + type MinorGallery struct + CanWrite bool + ID string + Manager string + Name string + Number string + SubManagers []string + func FetchAllMinorGallery() (mg []*MinorGallery, err error)