Documentation ¶
Index ¶
- type API
- type CalendarBoard
- func (s *CalendarBoard) Enabler() board.Enabler
- func (s *CalendarBoard) GetHTTPHandlers() ([]*board.HTTPHandler, error)
- func (s *CalendarBoard) GetRPCHandler() (string, http.Handler)
- func (s *CalendarBoard) HasPriority() bool
- func (s *CalendarBoard) InBetween() bool
- func (s *CalendarBoard) Name() string
- func (s *CalendarBoard) Render(ctx context.Context, canvas board.Canvas) error
- func (s *CalendarBoard) ScrollMode() bool
- type Config
- type Event
- type Server
- type Todayer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API interface { CalendarIcon(ctx context.Context, bounds image.Rectangle) (*logo.Logo, error) HTTPPathPrefix() string DailyEvents(ctx context.Context, date time.Time) ([]*Event, error) }
API ...
type CalendarBoard ¶
type CalendarBoard struct {
// contains filtered or unexported fields
}
CalendarBoard implements board.Board
func (*CalendarBoard) Enabler ¶
func (s *CalendarBoard) Enabler() board.Enabler
func (*CalendarBoard) GetHTTPHandlers ¶
func (s *CalendarBoard) GetHTTPHandlers() ([]*board.HTTPHandler, error)
GetHTTPHandlers ...
func (*CalendarBoard) GetRPCHandler ¶
func (s *CalendarBoard) GetRPCHandler() (string, http.Handler)
GetRPCHandler ...
type Config ¶
type Config struct { TodayFunc Todayer StartEnabled *atomic.Bool `json:"enabled"` BoardDelay string `json:"boardDelay"` OnTimes []string `json:"onTimes"` OffTimes []string `json:"offTimes"` TightScrollPadding int `json:"tightScrollPadding"` CalendarIDs []string `json:"calendarIDs"` // contains filtered or unexported fields }
Config ...
Click to show internal directories.
Click to hide internal directories.