Documentation ¶
Index ¶
- Variables
- type Board
- type ConfigItem
- type File
- type Imageboard
- type ImageboardConfigurations
- func (i ImageboardConfigurations) GetAddressNSFW() string
- func (i ImageboardConfigurations) GetAddressSFW() string
- func (i ImageboardConfigurations) GetConfigurations() []ConfigItem
- func (i ImageboardConfigurations) GetImageAddress() string
- func (i ImageboardConfigurations) GetMainAddress() string
- func (i ImageboardConfigurations) GetSpoilerAddress() string
- type Post
- type Thread
Constants ¶
This section is empty.
Variables ¶
View Source
var CHANGO_POST_QUOTE_FORMAT = "<a class=\"quote-link\" onClick=\"goToReply(%s)\">>>%s</a>"
View Source
var CHANGO_POST_QUOTE_FORMAT_OP = "<a class=\"quote-link\" onClick=\"goToReply(%s)\">>>%s(OP)</a>"
Functions ¶
This section is empty.
Types ¶
type ConfigItem ¶
type Imageboard ¶
type Imageboard interface { Initialize() GetImageURL(boardAcronym string, tim string, ext string) string GetThreadURI(b Board, threadNumber int) string GetCatalogURI(b Board) string GetSpoilerURI() string GetDeletedURI() string GetName() string GetThumbnailURL(boardAcronym string, tim string, ext string) string GetConfigurations() *ImageboardConfigurations GetBoards() *u.OrderedMap[string, Board] SetBoards(boardMap *u.OrderedMap[string, Board]) SetMyBoards(boardMap *u.OrderedMap[string, Board]) GetMyBoards() *u.OrderedMap[string, Board] RequestBoards() ([]Board, error) RequestCatalog(board Board) (*u.OrderedMap[int, Thread], error) RequestPosts(b Board, threadNumber int) (Thread, error) }
type ImageboardConfigurations ¶
type ImageboardConfigurations struct { MainAddress string SpoilerAddress string ImageAddress string AddressSFW string AddressNSFW string Configurations []ConfigItem }
func (ImageboardConfigurations) GetAddressNSFW ¶
func (i ImageboardConfigurations) GetAddressNSFW() string
func (ImageboardConfigurations) GetAddressSFW ¶
func (i ImageboardConfigurations) GetAddressSFW() string
func (ImageboardConfigurations) GetConfigurations ¶
func (i ImageboardConfigurations) GetConfigurations() []ConfigItem
func (ImageboardConfigurations) GetImageAddress ¶
func (i ImageboardConfigurations) GetImageAddress() string
func (ImageboardConfigurations) GetMainAddress ¶
func (i ImageboardConfigurations) GetMainAddress() string
func (ImageboardConfigurations) GetSpoilerAddress ¶
func (i ImageboardConfigurations) GetSpoilerAddress() string
type Post ¶
type Post interface { GetNumber() int GetTime() int64 HasFiles() bool IsOP() bool GetSubject() string GetName() string GetUserId() string GetIdBackgroundColor() u.Color GetIdTextColor() u.Color GetNumPosts() int GetNumReplies() int GetQuotedBy() []int GetRawComment() string SetRawComment(comment string) SetIdBackgroundColor(color u.Color) SetIdTextColor(color u.Color) SetRepliedTo(posts []int) GetRepliedTo() []int SetQuotedBy(posts []int) SetNumPosts(numPosts int) IsEmbed() bool GetEmbed() string GetTrip() string GetFiles() []File }
Click to show internal directories.
Click to hide internal directories.