handlers

package
v0.14.4 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 License: MIT Imports: 35 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Yes           string = "yes"
	No            string = "no"
	NotApplicable string = "n/a"
)

Variables

This section is empty.

Functions

func RegisterHandlers

func RegisterHandlers(app *pocketbase.PocketBase)

RegisterHandlers registers all the handlers for the application. It takes a pointer to a PocketBase instance and initializes the cache. The cache is used to store frequently accessed data for faster access. The cache is automatically cleaned up every 30 minutes.

Types

type Century

type Century struct {
	Century   string
	Composers []Composer_source
}

func GetMusics

func GetMusics(filePath string) (centuries []Century, err error)

type Composer_seed

type Composer_seed struct {
	ID       string      `db:"id" json:"id"`
	Name     string      `db:"name" json:"name"`
	Date     string      `db:"date" json:"date"`
	Language string      `db:"language" json:"language"`
	Century  string      `db:"century" json:"century"`
	Songs    []Song_seed `db:"songs" json:"songs"`
}

func GetParsedMusics

func GetParsedMusics() []Composer_seed

type Composer_source

type Composer_source struct {
	ID       string        `db:"id" json:"id"`
	Name     string        `db:"name" json:"name"`
	Date     string        `db:"date" json:"date"`
	Language string        `db:"language" json:"language"`
	Century  string        `db:"century" json:"century"`
	Songs    []Song_source `db:"songs" json:"songs"`
}

type Content

type Content struct {
	FieldName string `db:"name" json:"name"`
	Content   string `db:"content" json:"content"`
}

type GbData

type GbData struct {
	Title         string
	FirstContent  string
	SecondContent string
	MainContent   []GuestBookMessagePrepared
	LatestEntries string
}

type GbPreparedData

type GbPreparedData struct {
	Title                   string
	FirstContent            string
	SecondContent           string
	MainContent             []GuestBookMessagePrepared
	LatestEntries           string
	CalendarYears           [][]string
	SearchExpressionPresent bool
	SearchExpression        string
}

type Grouped_music_list

type Grouped_music_list struct {
	Century   string
	Composers []shape.Music_composer
}

func GroupAndSortMusicByCentury

func GroupAndSortMusicByCentury(musicList []shape.Music_composer) []Grouped_music_list

type GuestBookMessage

type GuestBookMessage struct {
	Name          string `json:"name" form:"name" query:"name" validate:"required"`
	Email         string `json:"email" form:"email" query:"email" validate:"required"`
	Location      string `json:"location" form:"location" query:"location" validate:"required"`
	Message       string `json:"message" form:"message" query:"message" validate:"required"`
	HoneyPotName  string `json:"honey_pot_name" query:"honey_pot_name"`
	HoneyPotEmail string `json:"honey_pot_email" query:"honey_pot_email"`
}

type GuestBookMessagePrepared

type GuestBookMessagePrepared struct {
	Message  string
	Name     string
	Location string
	Created  string
}

type SearchSettings

type SearchSettings struct {
	// contains filtered or unexported fields
}

type Song_seed

type Song_seed struct {
	Title      string `db:"title" json:"title"`
	URL        string `db:"url" json:"url"`
	Source     string `db:"source" json:"source"`
	ComposerID string `db:"composer_id" json:"composer_id"` // foreign key
}

type Song_source

type Song_source struct {
	Title      string   `db:"title" json:"title"`
	URL        string   `db:"url" json:"url"`
	Source     []string `db:"source" json:"source"`
	ComposerID string   `db:"composer_id" json:"composer_id"` // foreign key
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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