Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetErrorMessageBytes ¶
GetErrorMessageBytes returns the bytes of the error message
Types ¶
type ErrorMessage ¶
type ErrorMessage struct {
Message string
}
ErrorMessage is a wrapper type to return a JSON object with an error message
func (*ErrorMessage) Bytes ¶
func (errorMessage *ErrorMessage) Bytes() []byte
Bytes returns the ErrorMessage JSON bytes
type PositionChangeNotification ¶
type PositionChangeNotification struct { Title string `json:"title"` Position *Position `json:"position"` }
func PositionChangeNotificationFromTransport ¶
func PositionChangeNotificationFromTransport(transport *Transport) *PositionChangeNotification
type Transport ¶
type Transport struct { ID string `bson:"_id" json:"id"` Description string `bson:"description" json:"description"` Category string `bson:"category" json:"category,omitempty"` LastPositionReportedAt time.Time `bson:"lastPositionReportedAt" json:"lastPositionReportedAt,omitempty"` CurrentPosition *Position `bson:"currentPosition" json:"currentPosition"` }
Transport represents a Transport object
Click to show internal directories.
Click to hide internal directories.