renderer

package
v0.0.0-...-8b79b64 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConsoleRenderer

type ConsoleRenderer struct{}

func (ConsoleRenderer) Render

func (r ConsoleRenderer) Render(entries []model.ShowtimeEntry) error

type DetailsTemplateVars

type DetailsTemplateVars struct {
	Film        string
	Description string
	ImageURL    string
}

type HtmlRenderer

type HtmlRenderer struct{}

func (HtmlRenderer) Render

func (r HtmlRenderer) Render(entries []model.ShowtimeEntry) error

type Renderer

type Renderer interface {
	Render([]model.ShowtimeEntry) error
}

type ShowtimeTemplateVars

type ShowtimeTemplateVars struct {
	Theatre         string
	Film            string
	ShowtimeISO     string
	ShowtimeDisplay string
	Language        string
	SearchIndex     string
	DetailsIndex    string
	DeepLink        string
}

type TemplateVars

type TemplateVars struct {
	ByTime          map[time.Time][]ShowtimeTemplateVars
	Details         map[string]DetailsTemplateVars
	GoogleAnalytics string
}

Jump to

Keyboard shortcuts

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