model

package
v1.7.3 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2025 License: LGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Artist

type Artist struct {
	ID          int         `json:"artist_id"`
	Version     string      `json:"artist_version"`
	Name        string      `json:"artist_name" db:"artist_name"`
	Description string      `json:"artist_description" db:"artist_description"`
	Include     interface{} `json:"include,omitempty"`
}

func ArtistsScan

func ArtistsScan(rs *sql.Rows) (Artist, error)

type Event

type Event struct {
	ID          int         `json:"event_id"`
	Version     string      `json:"event_version"`
	Name        string      `json:"event_name" db:"event_name"`
	Description string      `json:"event_description" db:"event_description"`
	Type        int         `json:"event_type" db:"event_type"`
	Start       int         `json:"event_start" db:"event_start"`
	End         int         `json:"event_end" db:"event_end"`
	IsScheduled bool        `json:"event_is_scheduled" db:"event_is_scheduled"`
	HasTimeslot bool        `json:"event_has_timeslot" db:"event_has_timeslot"`
	Include     interface{} `json:"include,omitempty"`
}

func EventsScan

func EventsScan(rs *sql.Rows) (Event, error)

type Festival

type Festival struct {
	ID          int         `json:"festival_id"`
	Version     string      `json:"festival_version"`
	Valid       bool        `json:"festival_is_valid" db:"festival_is_valid"`
	Name        string      `json:"festival_name" db:"festival_name"`
	Start       int         `json:"festival_start" db:"festival_start"`
	End         int         `json:"festival_end" db:"festival_end"`
	Description string      `json:"festival_description" db:"festival_description"`
	Price       string      `json:"festival_price" db:"festival_price"`
	Include     interface{} `json:"include,omitempty"`
}

func FestivalsScan

func FestivalsScan(rs *sql.Rows) (Festival, error)

type Image

type Image struct {
	ID      int    `json:"image_id"`
	Hash    string `json:"image_hash" db:"image_hash"`
	Comment string `json:"image_comment" db:"image_comment"`
	Ref     string `json:"image_ref" db:"image_ref"`
}

func ImagesScan

func ImagesScan(rs *sql.Rows) (Image, error)
type Link struct {
	ID      int    `json:"link_id"`
	Version string `json:"link_version"`
	URL     string `json:"link_url" db:"link_url"`
	Service int    `json:"link_service" db:"link_service"`
}

func LinksScan

func LinksScan(rs *sql.Rows) (Link, error)

type Location

type Location struct {
	ID          int         `json:"location_id"`
	Version     string      `json:"location_version"`
	Name        string      `json:"location_name" db:"location_name"`
	Description string      `json:"location_description" db:"location_description"`
	Accessible  bool        `json:"location_accessible" db:"location_accessible"`
	Openair     bool        `json:"location_openair" db:"location_openair"`
	Include     interface{} `json:"include,omitempty"`
}

func LocationsScan

func LocationsScan(rs *sql.Rows) (Location, error)

type Place

type Place struct {
	ID          int     `json:"place_id"`
	Version     string  `json:"place_version"`
	Street      string  `json:"place_street" db:"place_street"`
	ZIP         string  `json:"place_zip" db:"place_zip"`
	Town        string  `json:"place_town" db:"place_town"`
	Addition    string  `json:"place_street_addition" db:"place_street_addition"`
	Country     string  `json:"place_country" db:"place_country"`
	Latitude    float32 `json:"place_lat" db:"place_lat"`
	Longitude   float32 `json:"place_lon" db:"place_lon"`
	Description string  `json:"place_description" db:"place_description"`
}

func PlacesScan

func PlacesScan(rs *sql.Rows) (Place, error)

type Tag

type Tag struct {
	ID   int    `json:"tag_id"`
	Name string `json:"tag_name" db:"tag_name"`
}

func TagsScan

func TagsScan(rs *sql.Rows) (Tag, error)

Jump to

Keyboard shortcuts

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