Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetExampleEventDBDocumentArray ¶
func GetExampleEventDBDocumentArray(count int) []db.DBDocument
Types ¶
type Event ¶
type Event struct { Id uuid.UUID `json:"id"` // id Type string `json:"type"` // t Status string `json:"status,omitempty"` // s CreatedAt *time.Time `json:"createdAt"` // ca UpdatedAt *time.Time `json:"updatedAt"` // ua User uuid.UUID `json:"user,omitempty"` // uid Agency string `json:"agency,omitempty"` // a Route string `json:"route,omitempty"` // r Trip string `json:"trip,omitempty"` // tr UnitID string `json:"unitID,omitempty"` // u UnitCount *int `json:"unitCount,omitempty"` // uc UnitPosition *int `json:"unitPosition,omitempty"` // up DepartureStop string `json:"departureStop,omitempty"` // ds ArrivalStop string `json:"arrivalStop,omitempty"` // as DepartureTime *time.Time `json:"departureTime,omitempty"` // dt ArrivalTime *time.Time `json:"arrivalTime,omitempty"` // at Notes []string `json:"notes,omitempty"` // n }
func GetExampleEventArray ¶
func (Event) MarshalDynamoDB ¶
func (e Event) MarshalDynamoDB() (db.DBDocument, error)
func (*Event) UnmarshalDynamoDB ¶
func (e *Event) UnmarshalDynamoDB(data db.DBDocument) error
type Unit ¶
type Unit struct { Id uuid.UUID `json:"id"` Type string `json:"type"` Status string `json:"status,omitempty"` CreatedAt *time.Time `json:"createdAt"` UpdatedAt *time.Time `json:"updatedAt"` Agency string `json:"agency,omitempty"` UnitID string `json:"unitID,omitempty"` Notes []string `json:"notes,omitempty"` }
func GetExampleUnit ¶
func GetExampleUnitArray ¶
func (Unit) MarshalDynamoDB ¶
func (u Unit) MarshalDynamoDB() (db.DBDocument, error)
func (*Unit) UnmarshalDynamoDB ¶
func (u *Unit) UnmarshalDynamoDB(data db.DBDocument) error
Click to show internal directories.
Click to hide internal directories.