Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Banners by board stored in memory Banners = BannerStore{ // contains filtered or unexported fields } )
View Source
var Loading = FileStore{ // contains filtered or unexported fields }
Stores board-specific loading images
Functions ¶
This section is empty.
Types ¶
type BannerStore ¶
type BannerStore struct {
// contains filtered or unexported fields
}
Stores multiple files by board in memory
func (*BannerStore) Get ¶
func (s *BannerStore) Get(board string, id int) (file File, ok bool)
Returns the banner specified by board and ID. If none found, ok == false. file should not be mutted.
func (*BannerStore) Random ¶
func (s *BannerStore) Random(board string) (id int, mime string, ok bool)
Returns a random banner for the board. If none found, ok == false.
func (*BannerStore) Set ¶
func (s *BannerStore) Set(board string, files []File)
Set files stored for a certain board. Technically deleting a board would leak memory, but it's so rare and little.
Click to show internal directories.
Click to hide internal directories.