events

package
v0.0.0-...-da644f5 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2019 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EventCreationHandler

func EventCreationHandler(w http.ResponseWriter, r *http.Request, _ httprouter.Params)

EventCreationHandler is a http handler that handles creation requests from users

func EventRetrievalHandler

func EventRetrievalHandler(w http.ResponseWriter, r *http.Request, _ httprouter.Params)

EventRetrievalHandler returns all events according to a http request

Types

type Event

type Event struct {
	ID            int64
	Name          string
	Start         time.Time
	End           time.Time
	Location      string
	Organiser     string
	ShortDesc     string
	LongDesc      string
	Picture       multipart.File
	PictureHeader *multipart.FileHeader
	PictureURL    string
}

func (*Event) ScanFrom

func (event *Event) ScanFrom(rows *sql.Rows)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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