models

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2019 License: NCSA Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	ID          string          `json:"id"                  validate:"required"`
	Name        string          `json:"name"                validate:"required"`
	Description string          `json:"description"         validate:"required"`
	StartTime   int64           `json:"startTime"           validate:"required"`
	EndTime     int64           `json:"endTime"             validate:"required"`
	Locations   []EventLocation `json:"locations"           validate:"required,dive,required"`
	Sponsor     string          `json:"sponsor"             validate:"required"`
	EventType   string          `json:"eventType"           validate:"required,oneof=MEAL SPEAKER WORKSHOP MINIEVENT OTHER"`
}

type EventFavoriteModification

type EventFavoriteModification struct {
	EventID string `json:"eventId"`
}

type EventFavorites

type EventFavorites struct {
	ID     string   `json:"id"`
	Events []string `json:"events"`
}

type EventList

type EventList struct {
	Events []Event `json:"events"`
}

type EventLocation added in v0.3.0

type EventLocation struct {
	Description string  `json:"description" validate:"required"`
	Latitude    float64 `json:"latitude"    validate:"required"`
	Longitude   float64 `json:"longitude"   validate:"required"`
}

type EventTracker

type EventTracker struct {
	EventID string   `json:"eventId"`
	Users   []string `json:"users"`
}

type TrackingInfo

type TrackingInfo struct {
	EventID string `json:"eventId"`
	UserID  string `json:"userId"`
}

type TrackingStatus

type TrackingStatus struct {
	EventTracker EventTracker `json:"eventTracker"`
	UserTracker  UserTracker  `json:"userTracker"`
}

type UserTracker

type UserTracker struct {
	UserID string   `json:"userId"`
	Events []string `json:"events"`
}

Jump to

Keyboard shortcuts

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