Documentation
¶
Index ¶
- Constants
- type Config
- type ImageBoard
- func (i *ImageBoard) Enabler() board.Enabler
- 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) ScrollRender(ctx context.Context, canvas board.Canvas, padding int) (board.Canvas, error)
- 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"` StartEnabled *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"` ScrollMode *atomic.Bool `json:"scrollMode"` TightScrollPadding int `json:"tightScrollPadding"` ScrollDelay string `json:"scrollDelay"` // contains filtered or unexported fields }
Config ...
type ImageBoard ¶
ImageBoard is a board for displaying image files
func (*ImageBoard) Enabler ¶
func (i *ImageBoard) Enabler() board.Enabler
func (*ImageBoard) GetHTTPHandlers ¶
func (i *ImageBoard) GetHTTPHandlers() ([]*board.HTTPHandler, error)
GetHTTPHandlers ...
func (*ImageBoard) GetRPCHandler ¶
func (i *ImageBoard) GetRPCHandler() (string, http.Handler)
GetRPCHandler ...
func (*ImageBoard) ScrollRender ¶
func (i *ImageBoard) ScrollRender(ctx context.Context, canvas board.Canvas, padding int) (board.Canvas, error)
ScrollRender ...
func (*ImageBoard) SetJumper ¶
func (i *ImageBoard) SetJumper(j Jumper)
SetJumper sets the jumper function
type ImageDirectory ¶
ImageDirectory is a configurable directory of images
Click to show internal directories.
Click to hide internal directories.