Documentation ¶
Index ¶
- Constants
- type Config
- type ImageBoard
- func (i *ImageBoard) Disable()
- func (i *ImageBoard) Enable()
- func (i *ImageBoard) Enabled() bool
- func (i *ImageBoard) GetHTTPHandlers() ([]*board.HTTPHandler, error)
- func (i *ImageBoard) GetRPCHandler() (string, http.Handler)
- func (i *ImageBoard) HasPriority() bool
- func (i *ImageBoard) InBetween() bool
- func (i *ImageBoard) Name() string
- func (i *ImageBoard) Render(ctx context.Context, canvas board.Canvas) error
- func (i *ImageBoard) ScrollMode() bool
- func (i *ImageBoard) SetJumper(j Jumper)
- type ImageDirectory
- type Jumper
- type Server
Constants ¶
View Source
const (
// Name is the board name
Name = "Img"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { BoardDelay string `json:"boardDelay"` Enabled *atomic.Bool `json:"enabled"` Directories []string `json:"directories"` DirectoryList []*ImageDirectory `json:"directoryList"` UseDiskCache *atomic.Bool `json:"useDiskCache"` UseMemCache *atomic.Bool `json:"useMemCache"` OnTimes []string `json:"onTimes"` OffTimes []string `json:"offTimes"` // contains filtered or unexported fields }
Config ...
type ImageBoard ¶
ImageBoard is a board for displaying image files
func (*ImageBoard) GetHTTPHandlers ¶
func (i *ImageBoard) GetHTTPHandlers() ([]*board.HTTPHandler, error)
GetHTTPHandlers ...
func (*ImageBoard) GetRPCHandler ¶ added in v0.0.63
func (i *ImageBoard) GetRPCHandler() (string, http.Handler)
GetRPCHandler ...
func (*ImageBoard) ScrollMode ¶ added in v0.0.29
func (i *ImageBoard) ScrollMode() bool
ScrollMode ...
func (*ImageBoard) SetJumper ¶ added in v0.0.59
func (i *ImageBoard) SetJumper(j Jumper)
SetJumper sets the jumper function
type ImageDirectory ¶ added in v0.0.69
ImageDirectory is a configurable directory of images
Click to show internal directories.
Click to hide internal directories.