operations

package
v1.1.9 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2018 License: MIT Imports: 15 Imported by: 2

Documentation

Index

Constants

View Source
const GetSensorDataGatewayTimeoutCode int = 504

GetSensorDataGatewayTimeoutCode is the HTTP code returned for type GetSensorDataGatewayTimeout

View Source
const GetSensorDataNotFoundCode int = 404

GetSensorDataNotFoundCode is the HTTP code returned for type GetSensorDataNotFound

View Source
const GetSensorDataOKCode int = 200

GetSensorDataOKCode is the HTTP code returned for type GetSensorDataOK

View Source
const GetSensorDataRawGatewayTimeoutCode int = 504

GetSensorDataRawGatewayTimeoutCode is the HTTP code returned for type GetSensorDataRawGatewayTimeout

View Source
const GetSensorDataRawNotFoundCode int = 404

GetSensorDataRawNotFoundCode is the HTTP code returned for type GetSensorDataRawNotFound

View Source
const GetSensorDataRawOKCode int = 200

GetSensorDataRawOKCode is the HTTP code returned for type GetSensorDataRawOK

View Source
const GetSensorsListOKCode int = 200

GetSensorsListOKCode is the HTTP code returned for type GetSensorsListOK

Variables

This section is empty.

Functions

This section is empty.

Types

type GetSensorData

type GetSensorData struct {
	Context *middleware.Context
	Handler GetSensorDataHandler
}

GetSensorData swagger:route GET /sensors/{sensorId} getSensorData

Returns the data of a particular sensor

func NewGetSensorData

func NewGetSensorData(ctx *middleware.Context, handler GetSensorDataHandler) *GetSensorData

NewGetSensorData creates a new http.Handler for the get sensor data operation

func (*GetSensorData) ServeHTTP

func (o *GetSensorData) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type GetSensorDataDefault

type GetSensorDataDefault struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
	// contains filtered or unexported fields
}

GetSensorDataDefault Error

swagger:response getSensorDataDefault

func NewGetSensorDataDefault

func NewGetSensorDataDefault(code int) *GetSensorDataDefault

NewGetSensorDataDefault creates GetSensorDataDefault with default headers values

func (*GetSensorDataDefault) SetPayload

func (o *GetSensorDataDefault) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the get sensor data default response

func (*GetSensorDataDefault) SetStatusCode

func (o *GetSensorDataDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get sensor data default response

func (*GetSensorDataDefault) WithPayload

WithPayload adds the payload to the get sensor data default response

func (*GetSensorDataDefault) WithStatusCode

func (o *GetSensorDataDefault) WithStatusCode(code int) *GetSensorDataDefault

WithStatusCode adds the status to the get sensor data default response

func (*GetSensorDataDefault) WriteResponse

func (o *GetSensorDataDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetSensorDataGatewayTimeout

type GetSensorDataGatewayTimeout struct {
}

GetSensorDataGatewayTimeout Sensor is not available.

swagger:response getSensorDataGatewayTimeout

func NewGetSensorDataGatewayTimeout

func NewGetSensorDataGatewayTimeout() *GetSensorDataGatewayTimeout

NewGetSensorDataGatewayTimeout creates GetSensorDataGatewayTimeout with default headers values

func (*GetSensorDataGatewayTimeout) WriteResponse

func (o *GetSensorDataGatewayTimeout) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetSensorDataHandler

type GetSensorDataHandler interface {
	Handle(GetSensorDataParams) middleware.Responder
}

GetSensorDataHandler interface for that can handle valid get sensor data params

type GetSensorDataHandlerFunc

type GetSensorDataHandlerFunc func(GetSensorDataParams) middleware.Responder

GetSensorDataHandlerFunc turns a function with the right signature into a get sensor data handler

func (GetSensorDataHandlerFunc) Handle

Handle executing the request and returning a response

type GetSensorDataNotFound

type GetSensorDataNotFound struct {
}

GetSensorDataNotFound Sensor not found.

swagger:response getSensorDataNotFound

func NewGetSensorDataNotFound

func NewGetSensorDataNotFound() *GetSensorDataNotFound

NewGetSensorDataNotFound creates GetSensorDataNotFound with default headers values

func (*GetSensorDataNotFound) WriteResponse

func (o *GetSensorDataNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetSensorDataOK

type GetSensorDataOK struct {

	/*
	  In: Body
	*/
	Payload *models.SensorResponse `json:"body,omitempty"`
}

GetSensorDataOK Success

swagger:response getSensorDataOK

func NewGetSensorDataOK

func NewGetSensorDataOK() *GetSensorDataOK

NewGetSensorDataOK creates GetSensorDataOK with default headers values

func (*GetSensorDataOK) SetPayload

func (o *GetSensorDataOK) SetPayload(payload *models.SensorResponse)

SetPayload sets the payload to the get sensor data o k response

func (*GetSensorDataOK) WithPayload

func (o *GetSensorDataOK) WithPayload(payload *models.SensorResponse) *GetSensorDataOK

WithPayload adds the payload to the get sensor data o k response

func (*GetSensorDataOK) WriteResponse

func (o *GetSensorDataOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetSensorDataParams

type GetSensorDataParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*
	  Required: true
	  In: path
	*/
	SensorID string
}

GetSensorDataParams contains all the bound params for the get sensor data operation typically these are obtained from a http.Request

swagger:parameters getSensorData

func NewGetSensorDataParams

func NewGetSensorDataParams() GetSensorDataParams

NewGetSensorDataParams creates a new GetSensorDataParams object with the default values initialized.

func (*GetSensorDataParams) BindRequest

func (o *GetSensorDataParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls

type GetSensorDataRaw

type GetSensorDataRaw struct {
	Context *middleware.Context
	Handler GetSensorDataRawHandler
}

GetSensorDataRaw swagger:route GET /sensors/{sensorId}/raw getSensorDataRaw

Returns the data of a particular sensor in simple JSON

func NewGetSensorDataRaw

func NewGetSensorDataRaw(ctx *middleware.Context, handler GetSensorDataRawHandler) *GetSensorDataRaw

NewGetSensorDataRaw creates a new http.Handler for the get sensor data raw operation

func (*GetSensorDataRaw) ServeHTTP

func (o *GetSensorDataRaw) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type GetSensorDataRawDefault

type GetSensorDataRawDefault struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
	// contains filtered or unexported fields
}

GetSensorDataRawDefault Error

swagger:response getSensorDataRawDefault

func NewGetSensorDataRawDefault

func NewGetSensorDataRawDefault(code int) *GetSensorDataRawDefault

NewGetSensorDataRawDefault creates GetSensorDataRawDefault with default headers values

func (*GetSensorDataRawDefault) SetPayload

func (o *GetSensorDataRawDefault) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the get sensor data raw default response

func (*GetSensorDataRawDefault) SetStatusCode

func (o *GetSensorDataRawDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get sensor data raw default response

func (*GetSensorDataRawDefault) WithPayload

WithPayload adds the payload to the get sensor data raw default response

func (*GetSensorDataRawDefault) WithStatusCode

func (o *GetSensorDataRawDefault) WithStatusCode(code int) *GetSensorDataRawDefault

WithStatusCode adds the status to the get sensor data raw default response

func (*GetSensorDataRawDefault) WriteResponse

func (o *GetSensorDataRawDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetSensorDataRawGatewayTimeout

type GetSensorDataRawGatewayTimeout struct {
}

GetSensorDataRawGatewayTimeout Sensor is not available.

swagger:response getSensorDataRawGatewayTimeout

func NewGetSensorDataRawGatewayTimeout

func NewGetSensorDataRawGatewayTimeout() *GetSensorDataRawGatewayTimeout

NewGetSensorDataRawGatewayTimeout creates GetSensorDataRawGatewayTimeout with default headers values

func (*GetSensorDataRawGatewayTimeout) WriteResponse

func (o *GetSensorDataRawGatewayTimeout) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetSensorDataRawHandler

type GetSensorDataRawHandler interface {
	Handle(GetSensorDataRawParams) middleware.Responder
}

GetSensorDataRawHandler interface for that can handle valid get sensor data raw params

type GetSensorDataRawHandlerFunc

type GetSensorDataRawHandlerFunc func(GetSensorDataRawParams) middleware.Responder

GetSensorDataRawHandlerFunc turns a function with the right signature into a get sensor data raw handler

func (GetSensorDataRawHandlerFunc) Handle

Handle executing the request and returning a response

type GetSensorDataRawNotFound

type GetSensorDataRawNotFound struct {
}

GetSensorDataRawNotFound Sensor not found.

swagger:response getSensorDataRawNotFound

func NewGetSensorDataRawNotFound

func NewGetSensorDataRawNotFound() *GetSensorDataRawNotFound

NewGetSensorDataRawNotFound creates GetSensorDataRawNotFound with default headers values

func (*GetSensorDataRawNotFound) WriteResponse

func (o *GetSensorDataRawNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetSensorDataRawOK

type GetSensorDataRawOK struct {

	/*
	  In: Body
	*/
	Payload *models.SensorResponseRaw `json:"body,omitempty"`
}

GetSensorDataRawOK Success

swagger:response getSensorDataRawOK

func NewGetSensorDataRawOK

func NewGetSensorDataRawOK() *GetSensorDataRawOK

NewGetSensorDataRawOK creates GetSensorDataRawOK with default headers values

func (*GetSensorDataRawOK) SetPayload

func (o *GetSensorDataRawOK) SetPayload(payload *models.SensorResponseRaw)

SetPayload sets the payload to the get sensor data raw o k response

func (*GetSensorDataRawOK) WithPayload

WithPayload adds the payload to the get sensor data raw o k response

func (*GetSensorDataRawOK) WriteResponse

func (o *GetSensorDataRawOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetSensorDataRawParams

type GetSensorDataRawParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*
	  Required: true
	  In: path
	*/
	SensorID string
}

GetSensorDataRawParams contains all the bound params for the get sensor data raw operation typically these are obtained from a http.Request

swagger:parameters getSensorDataRaw

func NewGetSensorDataRawParams

func NewGetSensorDataRawParams() GetSensorDataRawParams

NewGetSensorDataRawParams creates a new GetSensorDataRawParams object with the default values initialized.

func (*GetSensorDataRawParams) BindRequest

func (o *GetSensorDataRawParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls

type GetSensorDataRawURL

type GetSensorDataRawURL struct {
	SensorID string
	// contains filtered or unexported fields
}

GetSensorDataRawURL generates an URL for the get sensor data raw operation

func (*GetSensorDataRawURL) Build

func (o *GetSensorDataRawURL) Build() (*url.URL, error)

Build a url path and query string

func (*GetSensorDataRawURL) BuildFull

func (o *GetSensorDataRawURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*GetSensorDataRawURL) Must

func (o *GetSensorDataRawURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*GetSensorDataRawURL) SetBasePath

func (o *GetSensorDataRawURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*GetSensorDataRawURL) String

func (o *GetSensorDataRawURL) String() string

String returns the string representation of the path with query string

func (*GetSensorDataRawURL) StringFull

func (o *GetSensorDataRawURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*GetSensorDataRawURL) WithBasePath

func (o *GetSensorDataRawURL) WithBasePath(bp string) *GetSensorDataRawURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type GetSensorDataURL

type GetSensorDataURL struct {
	SensorID string
	// contains filtered or unexported fields
}

GetSensorDataURL generates an URL for the get sensor data operation

func (*GetSensorDataURL) Build

func (o *GetSensorDataURL) Build() (*url.URL, error)

Build a url path and query string

func (*GetSensorDataURL) BuildFull

func (o *GetSensorDataURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*GetSensorDataURL) Must

func (o *GetSensorDataURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*GetSensorDataURL) SetBasePath

func (o *GetSensorDataURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*GetSensorDataURL) String

func (o *GetSensorDataURL) String() string

String returns the string representation of the path with query string

func (*GetSensorDataURL) StringFull

func (o *GetSensorDataURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*GetSensorDataURL) WithBasePath

func (o *GetSensorDataURL) WithBasePath(bp string) *GetSensorDataURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type GetSensorsList

type GetSensorsList struct {
	Context *middleware.Context
	Handler GetSensorsListHandler
}

GetSensorsList swagger:route GET /sensors getSensorsList

Returns the list of sensors

func NewGetSensorsList

func NewGetSensorsList(ctx *middleware.Context, handler GetSensorsListHandler) *GetSensorsList

NewGetSensorsList creates a new http.Handler for the get sensors list operation

func (*GetSensorsList) ServeHTTP

func (o *GetSensorsList) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type GetSensorsListDefault

type GetSensorsListDefault struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
	// contains filtered or unexported fields
}

GetSensorsListDefault Error

swagger:response getSensorsListDefault

func NewGetSensorsListDefault

func NewGetSensorsListDefault(code int) *GetSensorsListDefault

NewGetSensorsListDefault creates GetSensorsListDefault with default headers values

func (*GetSensorsListDefault) SetPayload

func (o *GetSensorsListDefault) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the get sensors list default response

func (*GetSensorsListDefault) SetStatusCode

func (o *GetSensorsListDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get sensors list default response

func (*GetSensorsListDefault) WithPayload

WithPayload adds the payload to the get sensors list default response

func (*GetSensorsListDefault) WithStatusCode

func (o *GetSensorsListDefault) WithStatusCode(code int) *GetSensorsListDefault

WithStatusCode adds the status to the get sensors list default response

func (*GetSensorsListDefault) WriteResponse

func (o *GetSensorsListDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetSensorsListHandler

type GetSensorsListHandler interface {
	Handle(GetSensorsListParams) middleware.Responder
}

GetSensorsListHandler interface for that can handle valid get sensors list params

type GetSensorsListHandlerFunc

type GetSensorsListHandlerFunc func(GetSensorsListParams) middleware.Responder

GetSensorsListHandlerFunc turns a function with the right signature into a get sensors list handler

func (GetSensorsListHandlerFunc) Handle

Handle executing the request and returning a response

type GetSensorsListOK

type GetSensorsListOK struct {

	/*
	  In: Body
	*/
	Payload *models.SensorList `json:"body,omitempty"`
}

GetSensorsListOK Success

swagger:response getSensorsListOK

func NewGetSensorsListOK

func NewGetSensorsListOK() *GetSensorsListOK

NewGetSensorsListOK creates GetSensorsListOK with default headers values

func (*GetSensorsListOK) SetPayload

func (o *GetSensorsListOK) SetPayload(payload *models.SensorList)

SetPayload sets the payload to the get sensors list o k response

func (*GetSensorsListOK) WithPayload

func (o *GetSensorsListOK) WithPayload(payload *models.SensorList) *GetSensorsListOK

WithPayload adds the payload to the get sensors list o k response

func (*GetSensorsListOK) WriteResponse

func (o *GetSensorsListOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetSensorsListParams

type GetSensorsListParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`
}

GetSensorsListParams contains all the bound params for the get sensors list operation typically these are obtained from a http.Request

swagger:parameters getSensorsList

func NewGetSensorsListParams

func NewGetSensorsListParams() GetSensorsListParams

NewGetSensorsListParams creates a new GetSensorsListParams object with the default values initialized.

func (*GetSensorsListParams) BindRequest

func (o *GetSensorsListParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls

type GetSensorsListURL

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

GetSensorsListURL generates an URL for the get sensors list operation

func (*GetSensorsListURL) Build

func (o *GetSensorsListURL) Build() (*url.URL, error)

Build a url path and query string

func (*GetSensorsListURL) BuildFull

func (o *GetSensorsListURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*GetSensorsListURL) Must

func (o *GetSensorsListURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*GetSensorsListURL) SetBasePath

func (o *GetSensorsListURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*GetSensorsListURL) String

func (o *GetSensorsListURL) String() string

String returns the string representation of the path with query string

func (*GetSensorsListURL) StringFull

func (o *GetSensorsListURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*GetSensorsListURL) WithBasePath

func (o *GetSensorsListURL) WithBasePath(bp string) *GetSensorsListURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type JupiterAPI

type JupiterAPI struct {
	Middleware func(middleware.Builder) http.Handler

	// BasicAuthenticator generates a runtime.Authenticator from the supplied basic auth function.
	// It has a default implemention in the security package, however you can replace it for your particular usage.
	BasicAuthenticator func(security.UserPassAuthentication) runtime.Authenticator
	// APIKeyAuthenticator generates a runtime.Authenticator from the supplied token auth function.
	// It has a default implemention in the security package, however you can replace it for your particular usage.
	APIKeyAuthenticator func(string, string, security.TokenAuthentication) runtime.Authenticator
	// BearerAuthenticator generates a runtime.Authenticator from the supplied bearer token auth function.
	// It has a default implemention in the security package, however you can replace it for your particular usage.
	BearerAuthenticator func(string, security.ScopedTokenAuthentication) runtime.Authenticator

	// JSONConsumer registers a consumer for a "application/json" mime type
	JSONConsumer runtime.Consumer

	// JSONProducer registers a producer for a "application/json" mime type
	JSONProducer runtime.Producer

	// GetSensorDataHandler sets the operation handler for the get sensor data operation
	GetSensorDataHandler GetSensorDataHandler
	// GetSensorDataRawHandler sets the operation handler for the get sensor data raw operation
	GetSensorDataRawHandler GetSensorDataRawHandler
	// GetSensorsListHandler sets the operation handler for the get sensors list operation
	GetSensorsListHandler GetSensorsListHandler

	// ServeError is called when an error is received, there is a default handler
	// but you can set your own with this
	ServeError func(http.ResponseWriter, *http.Request, error)

	// ServerShutdown is called when the HTTP(S) server is shut down and done
	// handling all active connections and does not accept connections any more
	ServerShutdown func()

	// Custom command line argument groups with their descriptions
	CommandLineOptionsGroups []swag.CommandLineOptionsGroup

	// User defined logger function.
	Logger func(string, ...interface{})
	// contains filtered or unexported fields
}

JupiterAPI the jupiter API

func NewJupiterAPI

func NewJupiterAPI(spec *loads.Document) *JupiterAPI

NewJupiterAPI creates a new Jupiter instance

func (*JupiterAPI) AuthenticatorsFor

func (o *JupiterAPI) AuthenticatorsFor(schemes map[string]spec.SecurityScheme) map[string]runtime.Authenticator

AuthenticatorsFor gets the authenticators for the specified security schemes

func (*JupiterAPI) Authorizer

func (o *JupiterAPI) Authorizer() runtime.Authorizer

Authorizer returns the registered authorizer

func (*JupiterAPI) ConsumersFor

func (o *JupiterAPI) ConsumersFor(mediaTypes []string) map[string]runtime.Consumer

ConsumersFor gets the consumers for the specified media types

func (*JupiterAPI) Context

func (o *JupiterAPI) Context() *middleware.Context

Context returns the middleware context for the jupiter API

func (*JupiterAPI) DefaultConsumes

func (o *JupiterAPI) DefaultConsumes() string

DefaultConsumes returns the default consumes media type

func (*JupiterAPI) DefaultProduces

func (o *JupiterAPI) DefaultProduces() string

DefaultProduces returns the default produces media type

func (*JupiterAPI) Formats

func (o *JupiterAPI) Formats() strfmt.Registry

Formats returns the registered string formats

func (*JupiterAPI) HandlerFor

func (o *JupiterAPI) HandlerFor(method, path string) (http.Handler, bool)

HandlerFor gets a http.Handler for the provided operation method and path

func (*JupiterAPI) Init

func (o *JupiterAPI) Init()

Init allows you to just initialize the handler cache, you can then recompose the middelware as you see fit

func (*JupiterAPI) ProducersFor

func (o *JupiterAPI) ProducersFor(mediaTypes []string) map[string]runtime.Producer

ProducersFor gets the producers for the specified media types

func (*JupiterAPI) RegisterFormat

func (o *JupiterAPI) RegisterFormat(name string, format strfmt.Format, validator strfmt.Validator)

RegisterFormat registers a custom format validator

func (*JupiterAPI) Serve

func (o *JupiterAPI) Serve(builder middleware.Builder) http.Handler

Serve creates a http handler to serve the API over HTTP can be used directly in http.ListenAndServe(":8000", api.Serve(nil))

func (*JupiterAPI) ServeErrorFor

func (o *JupiterAPI) ServeErrorFor(operationID string) func(http.ResponseWriter, *http.Request, error)

ServeErrorFor gets a error handler for a given operation id

func (*JupiterAPI) SetDefaultConsumes

func (o *JupiterAPI) SetDefaultConsumes(mediaType string)

SetDefaultConsumes returns the default consumes media type

func (*JupiterAPI) SetDefaultProduces

func (o *JupiterAPI) SetDefaultProduces(mediaType string)

SetDefaultProduces sets the default produces media type

func (*JupiterAPI) SetSpec

func (o *JupiterAPI) SetSpec(spec *loads.Document)

SetSpec sets a spec that will be served for the clients.

func (*JupiterAPI) Validate

func (o *JupiterAPI) Validate() error

Validate validates the registrations in the JupiterAPI

Jump to

Keyboard shortcuts

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