models

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 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 {
	Name                string  `json:"name"                validate:"required"`
	Description         string  `json:"description"         validate:"required"`
	StartTime           int64   `json:"startTime"           validate:"required"`
	EndTime             int64   `json:"endTime"             validate:"required"`
	LocationDescription string  `json:"locationDescription" validate:"required"`
	Latitude            float64 `json:"latitude"            validate:"required"`
	Longitude           float64 `json:"longitude"           validate:"required"`
	Sponsor             string  `json:"sponsor"             validate:"required"`
	EventType           string  `json:"eventType"           validate:"required,oneof=MEAL SPEAKER WORKSHOP MINIEVENT OTHER"`
}

type EventFavoriteModification

type EventFavoriteModification struct {
	EventName string `json:"eventName"`
}

type EventFavorites

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

type EventList

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

type EventTracker

type EventTracker struct {
	EventName string   `json:"eventName"`
	Users     []string `json:"users"`
}

type TrackingInfo

type TrackingInfo struct {
	EventName string `json:"eventName"`
	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