trainview

package
v0.0.0-...-afcd3cb Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTrainViewServer

func NewTrainViewServer(ctx context.Context) (*trainViewServer, error)

Types

type ActiveSeptaEntry

type ActiveSeptaEntry struct {
	MainWebPage string            `json:"mainWebPage" bson:"mainWebPage"`
	TrainView   hydrate.TrainView `json:"trainview" bson:"trainview"`
	Message     string            `json:"message" bson:"message"`
	TimeStamp   time.Time         `json:"date" bson:"date"`
}

ActiveSeptaEntry represents the message object returned in the API.

type Return

type Return struct {
	ID string `json:"_id" bson:"_id"`
	//	Incidents []Incident `json:"incidents" bson:"incidents"`
	Date time.Time `json:"date" bson:"date"`
}

type Returns

type Returns struct {
	ID string `json:"_id" bson:"_id"`
	//	Incidents []Incident `json:"incidents" bson:"incidents"`
	Date time.Time `json:"date" bson:"date"`
}

REF: https://www.mongodb.com/docs/drivers/go/current/fundamentals/bson/

Jump to

Keyboard shortcuts

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