maps

package
v0.0.0-...-1bee8d1 Latest Latest
Warning

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

Go to latest
Published: May 21, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DiaryEntryJSON

type DiaryEntryJSON struct {
	ID    uint       `json:"id"`
	Title string     `json:"title"`
	Image *ImageJSON `json:"image,omitempty"`
}

type ImageJSON

type ImageJSON struct {
	Description string `json:"description"`
	URL         string `json:"url"`
}

type MapEntryJSON

type MapEntryJSON struct {
	ID          uint            `json:"id"`
	Title       string          `json:"title"`
	Description string          `json:"description,omitempty"`
	Lat         float64         `json:"latitude"`
	Lon         float64         `json:"longitude"`
	GpsDataID   uint            `json:"gps_id"`
	DiaryEntry  *DiaryEntryJSON `json:"diary,omitempty"`
}

type Maps

type Maps struct {
	DB    *gorm.DB
	Files *files.Files
	// contains filtered or unexported fields
}

func New

func New() *Maps

func (*Maps) Configure

func (c *Maps) Configure(app gongo.App) error

func (*Maps) GroupJSONHandler

func (c *Maps) GroupJSONHandler(w http.ResponseWriter, r *http.Request)

func (Maps) Resources

func (c Maps) Resources() []interface{}

func (*Maps) ServeMux

func (c *Maps) ServeMux() http.Handler

func (*Maps) ViewHandler

func (c *Maps) ViewHandler(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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