directions

package
v0.0.0-...-6ca850d Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client for directions API

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client

New creates a new directions API client.

func (*Client) DirectionsForDirection

func (a *Client) DirectionsForDirection(params *DirectionsForDirectionParams) (*DirectionsForDirectionOK, error)

DirectionsForDirection views all routes for a direction of travel

func (*Client) DirectionsForDirectionAndType

func (a *Client) DirectionsForDirectionAndType(params *DirectionsForDirectionAndTypeParams) (*DirectionsForDirectionAndTypeOK, error)

DirectionsForDirectionAndType views all routes of a particular type for a direction of travel

func (*Client) DirectionsForRoute

func (a *Client) DirectionsForRoute(params *DirectionsForRouteParams) (*DirectionsForRouteOK, error)

DirectionsForRoute views directions that a route travels in

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

type DirectionsForDirectionAndTypeBadRequest

type DirectionsForDirectionAndTypeBadRequest struct {
	Payload *models.V3ErrorResponse
}

DirectionsForDirectionAndTypeBadRequest handles this case with default header values.

Invalid Request

func NewDirectionsForDirectionAndTypeBadRequest

func NewDirectionsForDirectionAndTypeBadRequest() *DirectionsForDirectionAndTypeBadRequest

NewDirectionsForDirectionAndTypeBadRequest creates a DirectionsForDirectionAndTypeBadRequest with default headers values

func (*DirectionsForDirectionAndTypeBadRequest) Error

func (*DirectionsForDirectionAndTypeBadRequest) GetPayload

type DirectionsForDirectionAndTypeForbidden

type DirectionsForDirectionAndTypeForbidden struct {
	Payload *models.V3ErrorResponse
}

DirectionsForDirectionAndTypeForbidden handles this case with default header values.

Access Denied

func NewDirectionsForDirectionAndTypeForbidden

func NewDirectionsForDirectionAndTypeForbidden() *DirectionsForDirectionAndTypeForbidden

NewDirectionsForDirectionAndTypeForbidden creates a DirectionsForDirectionAndTypeForbidden with default headers values

func (*DirectionsForDirectionAndTypeForbidden) Error

func (*DirectionsForDirectionAndTypeForbidden) GetPayload

type DirectionsForDirectionAndTypeOK

type DirectionsForDirectionAndTypeOK struct {
	Payload *models.V3DirectionsResponse
}

DirectionsForDirectionAndTypeOK handles this case with default header values.

All routes of the specified route type that travel in the specified direction.

func NewDirectionsForDirectionAndTypeOK

func NewDirectionsForDirectionAndTypeOK() *DirectionsForDirectionAndTypeOK

NewDirectionsForDirectionAndTypeOK creates a DirectionsForDirectionAndTypeOK with default headers values

func (*DirectionsForDirectionAndTypeOK) Error

func (*DirectionsForDirectionAndTypeOK) GetPayload

type DirectionsForDirectionAndTypeParams

type DirectionsForDirectionAndTypeParams struct {

	/*Devid
	  Your developer id

	*/
	Devid *string
	/*DirectionID
	  Identifier of direction of travel; values returned by Directions API - /v3/directions/route/{route_id}

	*/
	DirectionID int32
	/*RouteType
	  Number identifying transport mode; values returned via RouteTypes API

	*/
	RouteType int32
	/*Signature
	  Authentication signature for request

	*/
	Signature *string
	/*Token
	  Please ignore

	*/
	Token *string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

DirectionsForDirectionAndTypeParams contains all the parameters to send to the API endpoint for the directions for direction and type operation typically these are written to a http.Request

func NewDirectionsForDirectionAndTypeParams

func NewDirectionsForDirectionAndTypeParams() *DirectionsForDirectionAndTypeParams

NewDirectionsForDirectionAndTypeParams creates a new DirectionsForDirectionAndTypeParams object with the default values initialized.

func NewDirectionsForDirectionAndTypeParamsWithContext

func NewDirectionsForDirectionAndTypeParamsWithContext(ctx context.Context) *DirectionsForDirectionAndTypeParams

NewDirectionsForDirectionAndTypeParamsWithContext creates a new DirectionsForDirectionAndTypeParams object with the default values initialized, and the ability to set a context for a request

func NewDirectionsForDirectionAndTypeParamsWithHTTPClient

func NewDirectionsForDirectionAndTypeParamsWithHTTPClient(client *http.Client) *DirectionsForDirectionAndTypeParams

NewDirectionsForDirectionAndTypeParamsWithHTTPClient creates a new DirectionsForDirectionAndTypeParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewDirectionsForDirectionAndTypeParamsWithTimeout

func NewDirectionsForDirectionAndTypeParamsWithTimeout(timeout time.Duration) *DirectionsForDirectionAndTypeParams

NewDirectionsForDirectionAndTypeParamsWithTimeout creates a new DirectionsForDirectionAndTypeParams object with the default values initialized, and the ability to set a timeout on a request

func (*DirectionsForDirectionAndTypeParams) SetContext

SetContext adds the context to the directions for direction and type params

func (*DirectionsForDirectionAndTypeParams) SetDevid

func (o *DirectionsForDirectionAndTypeParams) SetDevid(devid *string)

SetDevid adds the devid to the directions for direction and type params

func (*DirectionsForDirectionAndTypeParams) SetDirectionID

func (o *DirectionsForDirectionAndTypeParams) SetDirectionID(directionID int32)

SetDirectionID adds the directionId to the directions for direction and type params

func (*DirectionsForDirectionAndTypeParams) SetHTTPClient

func (o *DirectionsForDirectionAndTypeParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the directions for direction and type params

func (*DirectionsForDirectionAndTypeParams) SetRouteType

func (o *DirectionsForDirectionAndTypeParams) SetRouteType(routeType int32)

SetRouteType adds the routeType to the directions for direction and type params

func (*DirectionsForDirectionAndTypeParams) SetSignature

func (o *DirectionsForDirectionAndTypeParams) SetSignature(signature *string)

SetSignature adds the signature to the directions for direction and type params

func (*DirectionsForDirectionAndTypeParams) SetTimeout

func (o *DirectionsForDirectionAndTypeParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the directions for direction and type params

func (*DirectionsForDirectionAndTypeParams) SetToken

func (o *DirectionsForDirectionAndTypeParams) SetToken(token *string)

SetToken adds the token to the directions for direction and type params

func (*DirectionsForDirectionAndTypeParams) WithContext

WithContext adds the context to the directions for direction and type params

func (*DirectionsForDirectionAndTypeParams) WithDevid

WithDevid adds the devid to the directions for direction and type params

func (*DirectionsForDirectionAndTypeParams) WithDirectionID

WithDirectionID adds the directionID to the directions for direction and type params

func (*DirectionsForDirectionAndTypeParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the directions for direction and type params

func (*DirectionsForDirectionAndTypeParams) WithRouteType

WithRouteType adds the routeType to the directions for direction and type params

func (*DirectionsForDirectionAndTypeParams) WithSignature

WithSignature adds the signature to the directions for direction and type params

func (*DirectionsForDirectionAndTypeParams) WithTimeout

WithTimeout adds the timeout to the directions for direction and type params

func (*DirectionsForDirectionAndTypeParams) WithToken

WithToken adds the token to the directions for direction and type params

func (*DirectionsForDirectionAndTypeParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DirectionsForDirectionAndTypeReader

type DirectionsForDirectionAndTypeReader struct {
	// contains filtered or unexported fields
}

DirectionsForDirectionAndTypeReader is a Reader for the DirectionsForDirectionAndType structure.

func (*DirectionsForDirectionAndTypeReader) ReadResponse

func (o *DirectionsForDirectionAndTypeReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type DirectionsForDirectionBadRequest

type DirectionsForDirectionBadRequest struct {
	Payload *models.V3ErrorResponse
}

DirectionsForDirectionBadRequest handles this case with default header values.

Invalid Request

func NewDirectionsForDirectionBadRequest

func NewDirectionsForDirectionBadRequest() *DirectionsForDirectionBadRequest

NewDirectionsForDirectionBadRequest creates a DirectionsForDirectionBadRequest with default headers values

func (*DirectionsForDirectionBadRequest) Error

func (*DirectionsForDirectionBadRequest) GetPayload

type DirectionsForDirectionForbidden

type DirectionsForDirectionForbidden struct {
	Payload *models.V3ErrorResponse
}

DirectionsForDirectionForbidden handles this case with default header values.

Access Denied

func NewDirectionsForDirectionForbidden

func NewDirectionsForDirectionForbidden() *DirectionsForDirectionForbidden

NewDirectionsForDirectionForbidden creates a DirectionsForDirectionForbidden with default headers values

func (*DirectionsForDirectionForbidden) Error

func (*DirectionsForDirectionForbidden) GetPayload

type DirectionsForDirectionOK

type DirectionsForDirectionOK struct {
	Payload *models.V3DirectionsResponse
}

DirectionsForDirectionOK handles this case with default header values.

All routes that travel in the specified direction.

func NewDirectionsForDirectionOK

func NewDirectionsForDirectionOK() *DirectionsForDirectionOK

NewDirectionsForDirectionOK creates a DirectionsForDirectionOK with default headers values

func (*DirectionsForDirectionOK) Error

func (o *DirectionsForDirectionOK) Error() string

func (*DirectionsForDirectionOK) GetPayload

type DirectionsForDirectionParams

type DirectionsForDirectionParams struct {

	/*Devid
	  Your developer id

	*/
	Devid *string
	/*DirectionID
	  Identifier of direction of travel; values returned by Directions API - /v3/directions/route/{route_id}

	*/
	DirectionID int32
	/*Signature
	  Authentication signature for request

	*/
	Signature *string
	/*Token
	  Please ignore

	*/
	Token *string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

DirectionsForDirectionParams contains all the parameters to send to the API endpoint for the directions for direction operation typically these are written to a http.Request

func NewDirectionsForDirectionParams

func NewDirectionsForDirectionParams() *DirectionsForDirectionParams

NewDirectionsForDirectionParams creates a new DirectionsForDirectionParams object with the default values initialized.

func NewDirectionsForDirectionParamsWithContext

func NewDirectionsForDirectionParamsWithContext(ctx context.Context) *DirectionsForDirectionParams

NewDirectionsForDirectionParamsWithContext creates a new DirectionsForDirectionParams object with the default values initialized, and the ability to set a context for a request

func NewDirectionsForDirectionParamsWithHTTPClient

func NewDirectionsForDirectionParamsWithHTTPClient(client *http.Client) *DirectionsForDirectionParams

NewDirectionsForDirectionParamsWithHTTPClient creates a new DirectionsForDirectionParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewDirectionsForDirectionParamsWithTimeout

func NewDirectionsForDirectionParamsWithTimeout(timeout time.Duration) *DirectionsForDirectionParams

NewDirectionsForDirectionParamsWithTimeout creates a new DirectionsForDirectionParams object with the default values initialized, and the ability to set a timeout on a request

func (*DirectionsForDirectionParams) SetContext

func (o *DirectionsForDirectionParams) SetContext(ctx context.Context)

SetContext adds the context to the directions for direction params

func (*DirectionsForDirectionParams) SetDevid

func (o *DirectionsForDirectionParams) SetDevid(devid *string)

SetDevid adds the devid to the directions for direction params

func (*DirectionsForDirectionParams) SetDirectionID

func (o *DirectionsForDirectionParams) SetDirectionID(directionID int32)

SetDirectionID adds the directionId to the directions for direction params

func (*DirectionsForDirectionParams) SetHTTPClient

func (o *DirectionsForDirectionParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the directions for direction params

func (*DirectionsForDirectionParams) SetSignature

func (o *DirectionsForDirectionParams) SetSignature(signature *string)

SetSignature adds the signature to the directions for direction params

func (*DirectionsForDirectionParams) SetTimeout

func (o *DirectionsForDirectionParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the directions for direction params

func (*DirectionsForDirectionParams) SetToken

func (o *DirectionsForDirectionParams) SetToken(token *string)

SetToken adds the token to the directions for direction params

func (*DirectionsForDirectionParams) WithContext

WithContext adds the context to the directions for direction params

func (*DirectionsForDirectionParams) WithDevid

WithDevid adds the devid to the directions for direction params

func (*DirectionsForDirectionParams) WithDirectionID

func (o *DirectionsForDirectionParams) WithDirectionID(directionID int32) *DirectionsForDirectionParams

WithDirectionID adds the directionID to the directions for direction params

func (*DirectionsForDirectionParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the directions for direction params

func (*DirectionsForDirectionParams) WithSignature

WithSignature adds the signature to the directions for direction params

func (*DirectionsForDirectionParams) WithTimeout

WithTimeout adds the timeout to the directions for direction params

func (*DirectionsForDirectionParams) WithToken

WithToken adds the token to the directions for direction params

func (*DirectionsForDirectionParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DirectionsForDirectionReader

type DirectionsForDirectionReader struct {
	// contains filtered or unexported fields
}

DirectionsForDirectionReader is a Reader for the DirectionsForDirection structure.

func (*DirectionsForDirectionReader) ReadResponse

func (o *DirectionsForDirectionReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type DirectionsForRouteBadRequest

type DirectionsForRouteBadRequest struct {
	Payload *models.V3ErrorResponse
}

DirectionsForRouteBadRequest handles this case with default header values.

Invalid Request

func NewDirectionsForRouteBadRequest

func NewDirectionsForRouteBadRequest() *DirectionsForRouteBadRequest

NewDirectionsForRouteBadRequest creates a DirectionsForRouteBadRequest with default headers values

func (*DirectionsForRouteBadRequest) Error

func (*DirectionsForRouteBadRequest) GetPayload

type DirectionsForRouteForbidden

type DirectionsForRouteForbidden struct {
	Payload *models.V3ErrorResponse
}

DirectionsForRouteForbidden handles this case with default header values.

Access Denied

func NewDirectionsForRouteForbidden

func NewDirectionsForRouteForbidden() *DirectionsForRouteForbidden

NewDirectionsForRouteForbidden creates a DirectionsForRouteForbidden with default headers values

func (*DirectionsForRouteForbidden) Error

func (*DirectionsForRouteForbidden) GetPayload

type DirectionsForRouteOK

type DirectionsForRouteOK struct {
	Payload *models.V3DirectionsResponse
}

DirectionsForRouteOK handles this case with default header values.

The directions that a specified route travels in.

func NewDirectionsForRouteOK

func NewDirectionsForRouteOK() *DirectionsForRouteOK

NewDirectionsForRouteOK creates a DirectionsForRouteOK with default headers values

func (*DirectionsForRouteOK) Error

func (o *DirectionsForRouteOK) Error() string

func (*DirectionsForRouteOK) GetPayload

type DirectionsForRouteParams

type DirectionsForRouteParams struct {

	/*Devid
	  Your developer id

	*/
	Devid *string
	/*RouteID
	  Identifier of route; values returned by Routes API - v3/routes

	*/
	RouteID int32
	/*Signature
	  Authentication signature for request

	*/
	Signature *string
	/*Token
	  Please ignore

	*/
	Token *string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

DirectionsForRouteParams contains all the parameters to send to the API endpoint for the directions for route operation typically these are written to a http.Request

func NewDirectionsForRouteParams

func NewDirectionsForRouteParams() *DirectionsForRouteParams

NewDirectionsForRouteParams creates a new DirectionsForRouteParams object with the default values initialized.

func NewDirectionsForRouteParamsWithContext

func NewDirectionsForRouteParamsWithContext(ctx context.Context) *DirectionsForRouteParams

NewDirectionsForRouteParamsWithContext creates a new DirectionsForRouteParams object with the default values initialized, and the ability to set a context for a request

func NewDirectionsForRouteParamsWithHTTPClient

func NewDirectionsForRouteParamsWithHTTPClient(client *http.Client) *DirectionsForRouteParams

NewDirectionsForRouteParamsWithHTTPClient creates a new DirectionsForRouteParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewDirectionsForRouteParamsWithTimeout

func NewDirectionsForRouteParamsWithTimeout(timeout time.Duration) *DirectionsForRouteParams

NewDirectionsForRouteParamsWithTimeout creates a new DirectionsForRouteParams object with the default values initialized, and the ability to set a timeout on a request

func (*DirectionsForRouteParams) SetContext

func (o *DirectionsForRouteParams) SetContext(ctx context.Context)

SetContext adds the context to the directions for route params

func (*DirectionsForRouteParams) SetDevid

func (o *DirectionsForRouteParams) SetDevid(devid *string)

SetDevid adds the devid to the directions for route params

func (*DirectionsForRouteParams) SetHTTPClient

func (o *DirectionsForRouteParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the directions for route params

func (*DirectionsForRouteParams) SetRouteID

func (o *DirectionsForRouteParams) SetRouteID(routeID int32)

SetRouteID adds the routeId to the directions for route params

func (*DirectionsForRouteParams) SetSignature

func (o *DirectionsForRouteParams) SetSignature(signature *string)

SetSignature adds the signature to the directions for route params

func (*DirectionsForRouteParams) SetTimeout

func (o *DirectionsForRouteParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the directions for route params

func (*DirectionsForRouteParams) SetToken

func (o *DirectionsForRouteParams) SetToken(token *string)

SetToken adds the token to the directions for route params

func (*DirectionsForRouteParams) WithContext

WithContext adds the context to the directions for route params

func (*DirectionsForRouteParams) WithDevid

WithDevid adds the devid to the directions for route params

func (*DirectionsForRouteParams) WithHTTPClient

func (o *DirectionsForRouteParams) WithHTTPClient(client *http.Client) *DirectionsForRouteParams

WithHTTPClient adds the HTTPClient to the directions for route params

func (*DirectionsForRouteParams) WithRouteID

func (o *DirectionsForRouteParams) WithRouteID(routeID int32) *DirectionsForRouteParams

WithRouteID adds the routeID to the directions for route params

func (*DirectionsForRouteParams) WithSignature

func (o *DirectionsForRouteParams) WithSignature(signature *string) *DirectionsForRouteParams

WithSignature adds the signature to the directions for route params

func (*DirectionsForRouteParams) WithTimeout

WithTimeout adds the timeout to the directions for route params

func (*DirectionsForRouteParams) WithToken

WithToken adds the token to the directions for route params

func (*DirectionsForRouteParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DirectionsForRouteReader

type DirectionsForRouteReader struct {
	// contains filtered or unexported fields
}

DirectionsForRouteReader is a Reader for the DirectionsForRoute structure.

func (*DirectionsForRouteReader) ReadResponse

func (o *DirectionsForRouteReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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