models

package
v0.0.0-...-489883c Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2017 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

type Error struct {

	// code
	Code int32 `json:"code,omitempty"`

	// fields
	Fields string `json:"fields,omitempty"`

	// message
	Message string `json:"message,omitempty"`
}

Error error swagger:model Error

func (*Error) Validate

func (m *Error) Validate(formats strfmt.Registry) error

Validate validates this error

type Line

type Line struct {

	// The common name of the line, without specifing the direction
	CommonName string `json:"common_name,omitempty"`

	// line type
	LineType interface{} `json:"line_type,omitempty"`
}

Line line swagger:model Line

func (*Line) Validate

func (m *Line) Validate(formats strfmt.Registry) error

Validate validates this line

type Station

type Station struct {

	// The id that Urban Mobility Center uses - usually 4 digits
	UMCID float64 `json:"UMC_id,omitempty"`

	// Name of the station. Note that there could be multiple stations with that name
	Name string `json:"name,omitempty"`
}

Station station swagger:model Station

func (*Station) Validate

func (m *Station) Validate(formats strfmt.Registry) error

Validate validates this station

Jump to

Keyboard shortcuts

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