Documentation ¶
Index ¶
- Constants
- Variables
- type Bookmarks
- type Calendar
- type ChangeDetection
- type Clock
- type DurationField
- type Extension
- type HSLColorField
- type HTML
- type HackerNews
- type IFrame
- type Lobsters
- type Markets
- type Monitor
- type OptionalEnvString
- type RSS
- type Reddit
- type Releases
- type Repository
- type Search
- type SearchBang
- type TwitchChannels
- type TwitchGames
- type Videos
- type Weather
- type Widget
- type Widgets
Constants ¶
View Source
const ( HSLHueMax = 360 HSLSaturationMax = 100 HSLLightnessMax = 100 )
Variables ¶
View Source
var DurationPattern = regexp.MustCompile(`^(\d+)(s|m|h|d)$`)
View Source
var EnvFieldPattern = regexp.MustCompile(`^\${([A-Z_]+)}$`)
View Source
var HSLColorPattern = regexp.MustCompile(`^(?:hsla?\()?(\d{1,3})(?: |,)+(\d{1,3})%?(?: |,)+(\d{1,3})%?\)?$`)
Functions ¶
This section is empty.
Types ¶
type Bookmarks ¶
type Bookmarks struct { Groups []struct { Title string `yaml:"title"` Color *HSLColorField `yaml:"color"` Links []struct { Title string `yaml:"title"` URL string `yaml:"url"` Icon string `yaml:"icon"` IsSimpleIcon bool `yaml:"-"` SameTab bool `yaml:"same-tab"` HideArrow bool `yaml:"hide-arrow"` } `yaml:"links"` } `yaml:"groups"` Style string `yaml:"style"` // contains filtered or unexported fields }
func (*Bookmarks) Initialize ¶
func (*Bookmarks) RequiresUpdate ¶
type ChangeDetection ¶ added in v0.5.0
type ChangeDetection struct { ChangeDetections feed.ChangeDetectionWatches `yaml:"-"` WatchUUIDs []string `yaml:"watches"` InstanceURL string `yaml:"instance-url"` Token OptionalEnvString `yaml:"token"` Limit int `yaml:"limit"` CollapseAfter int `yaml:"collapse-after"` // contains filtered or unexported fields }
func (*ChangeDetection) Initialize ¶ added in v0.5.0
func (widget *ChangeDetection) Initialize() error
func (*ChangeDetection) Render ¶ added in v0.5.0
func (widget *ChangeDetection) Render() template.HTML
func (*ChangeDetection) RequiresUpdate ¶ added in v0.5.0
func (*ChangeDetection) Update ¶ added in v0.5.0
func (widget *ChangeDetection) Update(ctx context.Context)
type Clock ¶ added in v0.5.0
type Clock struct { HourFormat string `yaml:"hour-format"` Timezones []struct { Timezone string `yaml:"timezone"` Label string `yaml:"label"` } `yaml:"timezones"` // contains filtered or unexported fields }
func (*Clock) Initialize ¶ added in v0.5.0
func (*Clock) RequiresUpdate ¶ added in v0.5.0
type DurationField ¶
func (*DurationField) UnmarshalYAML ¶
func (d *DurationField) UnmarshalYAML(node *yaml.Node) error
type Extension ¶ added in v0.5.0
type Extension struct { URL string `yaml:"url"` Parameters map[string]string `yaml:"parameters"` AllowHtml bool `yaml:"allow-potentially-dangerous-html"` Extension feed.Extension `yaml:"-"` // contains filtered or unexported fields }
func (*Extension) Initialize ¶ added in v0.5.0
func (*Extension) RequiresUpdate ¶ added in v0.5.0
type HSLColorField ¶
func (*HSLColorField) AsCSSValue ¶
func (c *HSLColorField) AsCSSValue() template.CSS
func (*HSLColorField) String ¶
func (c *HSLColorField) String() string
func (*HSLColorField) UnmarshalYAML ¶
func (c *HSLColorField) UnmarshalYAML(node *yaml.Node) error
type HTML ¶ added in v0.5.0
func (*HTML) Initialize ¶ added in v0.5.0
func (*HTML) RequiresUpdate ¶ added in v0.5.0
type HackerNews ¶
type HackerNews struct { Posts feed.ForumPosts `yaml:"-"` Limit int `yaml:"limit"` SortBy string `yaml:"sort-by"` ExtraSortBy string `yaml:"extra-sort-by"` CollapseAfter int `yaml:"collapse-after"` CommentsUrlTemplate string `yaml:"comments-url-template"` ShowThumbnails bool `yaml:"-"` // contains filtered or unexported fields }
func (*HackerNews) Initialize ¶
func (widget *HackerNews) Initialize() error
func (*HackerNews) Render ¶
func (widget *HackerNews) Render() template.HTML
func (*HackerNews) RequiresUpdate ¶
func (*HackerNews) Update ¶
func (widget *HackerNews) Update(ctx context.Context)
type IFrame ¶
type IFrame struct { Source string `yaml:"source"` Height int `yaml:"height"` // contains filtered or unexported fields }
func (*IFrame) Initialize ¶
func (*IFrame) RequiresUpdate ¶
type Lobsters ¶ added in v0.5.0
type Lobsters struct { Posts feed.ForumPosts `yaml:"-"` Limit int `yaml:"limit"` CollapseAfter int `yaml:"collapse-after"` SortBy string `yaml:"sort-by"` Tags []string `yaml:"tags"` ShowThumbnails bool `yaml:"-"` // contains filtered or unexported fields }
func (*Lobsters) Initialize ¶ added in v0.5.0
func (*Lobsters) RequiresUpdate ¶ added in v0.5.0
type Markets ¶ added in v0.5.0
type Markets struct { StocksRequests []feed.MarketRequest `yaml:"stocks"` MarketRequests []feed.MarketRequest `yaml:"markets"` Sort string `yaml:"sort-by"` Style string `yaml:"style"` Markets feed.Markets `yaml:"-"` // contains filtered or unexported fields }
func (*Markets) Initialize ¶ added in v0.5.0
func (*Markets) RequiresUpdate ¶ added in v0.5.0
type Monitor ¶
type Monitor struct { Sites []struct { *feed.SiteStatusRequest `yaml:",inline"` Status *feed.SiteStatus `yaml:"-"` Title string `yaml:"title"` IconUrl string `yaml:"icon"` IsSimpleIcon bool `yaml:"-"` SameTab bool `yaml:"same-tab"` StatusText string `yaml:"-"` StatusStyle string `yaml:"-"` } `yaml:"sites"` Style string `yaml:"style"` // contains filtered or unexported fields }
func (*Monitor) Initialize ¶
func (*Monitor) RequiresUpdate ¶
type OptionalEnvString ¶
type OptionalEnvString string
func (*OptionalEnvString) UnmarshalYAML ¶
func (f *OptionalEnvString) UnmarshalYAML(node *yaml.Node) error
type RSS ¶
type RSS struct { FeedRequests []feed.RSSFeedRequest `yaml:"feeds"` Style string `yaml:"style"` ThumbnailHeight float64 `yaml:"thumbnail-height"` CardHeight float64 `yaml:"card-height"` Items feed.RSSFeedItems `yaml:"-"` Limit int `yaml:"limit"` CollapseAfter int `yaml:"collapse-after"` // contains filtered or unexported fields }
func (*RSS) Initialize ¶
func (*RSS) RequiresUpdate ¶
type Reddit ¶
type Reddit struct { Posts feed.ForumPosts `yaml:"-"` Subreddit string `yaml:"subreddit"` Style string `yaml:"style"` ShowThumbnails bool `yaml:"show-thumbnails"` SortBy string `yaml:"sort-by"` TopPeriod string `yaml:"top-period"` Search string `yaml:"search"` ExtraSortBy string `yaml:"extra-sort-by"` CommentsUrlTemplate string `yaml:"comments-url-template"` Limit int `yaml:"limit"` CollapseAfter int `yaml:"collapse-after"` RequestUrlTemplate string `yaml:"request-url-template"` // contains filtered or unexported fields }
func (*Reddit) Initialize ¶
func (*Reddit) RequiresUpdate ¶
type Releases ¶
type Releases struct { Releases feed.AppReleases `yaml:"-"` Repositories []string `yaml:"repositories"` Token OptionalEnvString `yaml:"token"` Limit int `yaml:"limit"` CollapseAfter int `yaml:"collapse-after"` // contains filtered or unexported fields }
func (*Releases) Initialize ¶
func (*Releases) RequiresUpdate ¶
type Repository ¶ added in v0.4.0
type Repository struct { RequestedRepository string `yaml:"repository"` Token OptionalEnvString `yaml:"token"` PullRequestsLimit int `yaml:"pull-requests-limit"` IssuesLimit int `yaml:"issues-limit"` RepositoryDetails feed.RepositoryDetails // contains filtered or unexported fields }
func (*Repository) Initialize ¶ added in v0.4.0
func (widget *Repository) Initialize() error
func (*Repository) Render ¶ added in v0.4.0
func (widget *Repository) Render() template.HTML
func (*Repository) RequiresUpdate ¶ added in v0.4.0
func (*Repository) Update ¶ added in v0.4.0
func (widget *Repository) Update(ctx context.Context)
type Search ¶ added in v0.5.0
type Search struct { SearchEngine string `yaml:"search-engine"` Bangs []SearchBang `yaml:"bangs"` // contains filtered or unexported fields }
func (*Search) Initialize ¶ added in v0.5.0
func (*Search) RequiresUpdate ¶ added in v0.5.0
type SearchBang ¶ added in v0.5.0
type TwitchChannels ¶
type TwitchChannels struct { ChannelsRequest []string `yaml:"channels"` Channels []feed.TwitchChannel `yaml:"-"` CollapseAfter int `yaml:"collapse-after"` SortBy string `yaml:"sort-by"` // contains filtered or unexported fields }
func (*TwitchChannels) Initialize ¶
func (widget *TwitchChannels) Initialize() error
func (*TwitchChannels) Render ¶
func (widget *TwitchChannels) Render() template.HTML
func (*TwitchChannels) RequiresUpdate ¶
func (*TwitchChannels) Update ¶
func (widget *TwitchChannels) Update(ctx context.Context)
type TwitchGames ¶
type TwitchGames struct { Categories []feed.TwitchCategory `yaml:"-"` Exclude []string `yaml:"exclude"` Limit int `yaml:"limit"` CollapseAfter int `yaml:"collapse-after"` // contains filtered or unexported fields }
func (*TwitchGames) Initialize ¶
func (widget *TwitchGames) Initialize() error
func (*TwitchGames) Render ¶
func (widget *TwitchGames) Render() template.HTML
func (*TwitchGames) RequiresUpdate ¶
func (*TwitchGames) Update ¶
func (widget *TwitchGames) Update(ctx context.Context)
type Videos ¶
type Videos struct { Videos feed.Videos `yaml:"-"` VideoUrlTemplate string `yaml:"video-url-template"` Style string `yaml:"style"` CollapseAfterRows int `yaml:"collapse-after-rows"` Channels []string `yaml:"channels"` Limit int `yaml:"limit"` // contains filtered or unexported fields }
func (*Videos) Initialize ¶
func (*Videos) RequiresUpdate ¶
type Weather ¶
type Weather struct { Location string `yaml:"location"` ShowAreaName bool `yaml:"show-area-name"` HideLocation bool `yaml:"hide-location"` HourFormat string `yaml:"hour-format"` Units string `yaml:"units"` Place *feed.PlaceJson `yaml:"-"` Weather *feed.Weather `yaml:"-"` TimeLabels [12]string `yaml:"-"` // contains filtered or unexported fields }
func (*Weather) Initialize ¶
func (*Weather) RequiresUpdate ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.