Versions in this module Expand all Collapse all v0 v0.1.0 Dec 10, 2023 Changes in this version + const BaseStyleFile + const IconFile + const IndexFile + const LogoFile + const ViewStyleFile + var StaticAssets = []string + func ExecuteToBuffer(tmpl *template.Template, args any) ([]byte, error) + type LangPack struct + type Store struct + func New(cfg *config.Config, internalAssets fs.FS, parentLogger *slog.Logger) (*Store, error) + func (st *Store) DefaultName(lang language.Tag) string + func (st *Store) RequestToLang(r *http.Request) language.Tag + func (st *Store) ServeAlert(w http.ResponseWriter, entry *api.Superchat, lang language.Tag) + func (st *Store) ServeCheck(w http.ResponseWriter, receipt *api.Receipt, lang language.Tag) + func (st *Store) ServeError(w http.ResponseWriter, statusCode int, reason api.ErrorReason, ...) + func (st *Store) ServeIndexCaptcha(w http.ResponseWriter, captchaID string, lang language.Tag) + func (st *Store) ServePay(w http.ResponseWriter, pendingPayment *api.PendingPayment, lang language.Tag) + func (st *Store) ServeView(w http.ResponseWriter, entries []api.Superchat, refreshInterval uint, ...) + func (st *Store) StaticContent(key string, lang language.Tag) ([]byte, error) + func (st *Store) StaticContentHandler(fn string) http.HandlerFunc