embed

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 20, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTemplate

func GetTemplate() (*template.Template, error)

GetTemplate returns the compiled index template, using sync.Once for caching.

func Index

func Index(configPath string) ([]byte, error)

Types

type Contributor

type Contributor struct {
	Active bool     `json:"active" yaml:"active"`
	Focus  string   `json:"focus"  yaml:"focus"`
	Queue  []string `json:"queue"  yaml:"queue"`
}

type SiteConfig

type SiteConfig struct {
	Name        string      `json:"name"        yaml:"name"`
	Description string      `json:"description" yaml:"description"`
	User        string      `json:"user"        yaml:"user"`
	Contributor Contributor `json:"contributor" yaml:"contributor"`
	Slack       SlackConfig `json:"slack"       yaml:"slack"`
}

func LoadSiteConfig

func LoadSiteConfig(path string) (SiteConfig, error)

type SlackConfig added in v0.2.0

type SlackConfig struct {
	Enabled             bool   `json:"enabled"               yaml:"enabled"`
	UserToken           string `json:"user_token"            yaml:"user_token"`            //nolint:tagliatelle
	StatusEmojiActive   string `json:"status_emoji_active"   yaml:"status_emoji_active"`   //nolint:tagliatelle
	StatusEmojiInactive string `json:"status_emoji_inactive" yaml:"status_emoji_inactive"` //nolint:tagliatelle
	TTLSeconds          int    `json:"ttl_seconds"           yaml:"ttl_seconds"`           //nolint:tagliatelle
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL