server

package
v0.0.0-...-d2cf98a Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BookmarkSensorPath

func BookmarkSensorPath() string

BookmarkSensorPath returns the URL path to the sensor service bookmark HTTP endpoint.

func DataSensorPath

func DataSensorPath() string

DataSensorPath returns the URL path to the sensor service data HTTP endpoint.

func DecodeBookmarkRequest

func DecodeBookmarkRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (interface{}, error)

DecodeBookmarkRequest returns a decoder for requests sent to the sensor bookmark endpoint.

func DecodeDataRequest

func DecodeDataRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (interface{}, error)

DecodeDataRequest returns a decoder for requests sent to the sensor data endpoint.

func DecodeRecentlyRequest

func DecodeRecentlyRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (interface{}, error)

DecodeRecentlyRequest returns a decoder for requests sent to the sensor recently endpoint.

func DecodeResolveRequest

func DecodeResolveRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (interface{}, error)

DecodeResolveRequest returns a decoder for requests sent to the sensor resolve endpoint.

func DecodeStationMetaRequest

func DecodeStationMetaRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (interface{}, error)

DecodeStationMetaRequest returns a decoder for requests sent to the sensor station meta endpoint.

func DecodeTailRequest

func DecodeTailRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (interface{}, error)

DecodeTailRequest returns a decoder for requests sent to the sensor tail endpoint.

func EncodeBookmarkError

func EncodeBookmarkError(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, formatter func(err error) goahttp.Statuser) func(context.Context, http.ResponseWriter, error) error

EncodeBookmarkError returns an encoder for errors returned by the bookmark sensor endpoint.

func EncodeBookmarkResponse

func EncodeBookmarkResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, interface{}) error

EncodeBookmarkResponse returns an encoder for responses returned by the sensor bookmark endpoint.

func EncodeDataError

func EncodeDataError(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, formatter func(err error) goahttp.Statuser) func(context.Context, http.ResponseWriter, error) error

EncodeDataError returns an encoder for errors returned by the data sensor endpoint.

func EncodeDataResponse

func EncodeDataResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, interface{}) error

EncodeDataResponse returns an encoder for responses returned by the sensor data endpoint.

func EncodeMetaError

func EncodeMetaError(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, formatter func(err error) goahttp.Statuser) func(context.Context, http.ResponseWriter, error) error

EncodeMetaError returns an encoder for errors returned by the meta sensor endpoint.

func EncodeMetaResponse

func EncodeMetaResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, interface{}) error

EncodeMetaResponse returns an encoder for responses returned by the sensor meta endpoint.

func EncodeRecentlyError

func EncodeRecentlyError(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, formatter func(err error) goahttp.Statuser) func(context.Context, http.ResponseWriter, error) error

EncodeRecentlyError returns an encoder for errors returned by the recently sensor endpoint.

func EncodeRecentlyResponse

func EncodeRecentlyResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, interface{}) error

EncodeRecentlyResponse returns an encoder for responses returned by the sensor recently endpoint.

func EncodeResolveError

func EncodeResolveError(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, formatter func(err error) goahttp.Statuser) func(context.Context, http.ResponseWriter, error) error

EncodeResolveError returns an encoder for errors returned by the resolve sensor endpoint.

func EncodeResolveResponse

func EncodeResolveResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, interface{}) error

EncodeResolveResponse returns an encoder for responses returned by the sensor resolve endpoint.

func EncodeSensorMetaError

func EncodeSensorMetaError(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, formatter func(err error) goahttp.Statuser) func(context.Context, http.ResponseWriter, error) error

EncodeSensorMetaError returns an encoder for errors returned by the sensor meta sensor endpoint.

func EncodeSensorMetaResponse

func EncodeSensorMetaResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, interface{}) error

EncodeSensorMetaResponse returns an encoder for responses returned by the sensor sensor meta endpoint.

func EncodeStationMetaError

func EncodeStationMetaError(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, formatter func(err error) goahttp.Statuser) func(context.Context, http.ResponseWriter, error) error

EncodeStationMetaError returns an encoder for errors returned by the station meta sensor endpoint.

func EncodeStationMetaResponse

func EncodeStationMetaResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, interface{}) error

EncodeStationMetaResponse returns an encoder for responses returned by the sensor station meta endpoint.

func EncodeTailError

func EncodeTailError(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, formatter func(err error) goahttp.Statuser) func(context.Context, http.ResponseWriter, error) error

EncodeTailError returns an encoder for errors returned by the tail sensor endpoint.

func EncodeTailResponse

func EncodeTailResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, interface{}) error

EncodeTailResponse returns an encoder for responses returned by the sensor tail endpoint.

func MetaSensorPath

func MetaSensorPath() string

MetaSensorPath returns the URL path to the sensor service meta HTTP endpoint.

func Mount

func Mount(mux goahttp.Muxer, h *Server)

Mount configures the mux to serve the sensor endpoints.

func MountBookmarkHandler

func MountBookmarkHandler(mux goahttp.Muxer, h http.Handler)

MountBookmarkHandler configures the mux to serve the "sensor" service "bookmark" endpoint.

func MountCORSHandler

func MountCORSHandler(mux goahttp.Muxer, h http.Handler)

MountCORSHandler configures the mux to serve the CORS endpoints for the service sensor.

func MountDataHandler

func MountDataHandler(mux goahttp.Muxer, h http.Handler)

MountDataHandler configures the mux to serve the "sensor" service "data" endpoint.

func MountMetaHandler

func MountMetaHandler(mux goahttp.Muxer, h http.Handler)

MountMetaHandler configures the mux to serve the "sensor" service "meta" endpoint.

func MountRecentlyHandler

func MountRecentlyHandler(mux goahttp.Muxer, h http.Handler)

MountRecentlyHandler configures the mux to serve the "sensor" service "recently" endpoint.

func MountResolveHandler

func MountResolveHandler(mux goahttp.Muxer, h http.Handler)

MountResolveHandler configures the mux to serve the "sensor" service "resolve" endpoint.

func MountSensorMetaHandler

func MountSensorMetaHandler(mux goahttp.Muxer, h http.Handler)

MountSensorMetaHandler configures the mux to serve the "sensor" service "sensor meta" endpoint.

func MountStationMetaHandler

func MountStationMetaHandler(mux goahttp.Muxer, h http.Handler)

MountStationMetaHandler configures the mux to serve the "sensor" service "station meta" endpoint.

func MountTailHandler

func MountTailHandler(mux goahttp.Muxer, h http.Handler)

MountTailHandler configures the mux to serve the "sensor" service "tail" endpoint.

func NewBookmarkHandler

func NewBookmarkHandler(
	endpoint goa.Endpoint,
	mux goahttp.Muxer,
	decoder func(*http.Request) goahttp.Decoder,
	encoder func(context.Context, http.ResponseWriter) goahttp.Encoder,
	errhandler func(context.Context, http.ResponseWriter, error),
	formatter func(err error) goahttp.Statuser,
) http.Handler

NewBookmarkHandler creates a HTTP handler which loads the HTTP request and calls the "sensor" service "bookmark" endpoint.

func NewBookmarkPayload

func NewBookmarkPayload(bookmark string, auth *string) *sensor.BookmarkPayload

NewBookmarkPayload builds a sensor service bookmark endpoint payload.

func NewCORSHandler

func NewCORSHandler() http.Handler

NewCORSHandler creates a HTTP handler which returns a simple 200 response.

func NewDataHandler

func NewDataHandler(
	endpoint goa.Endpoint,
	mux goahttp.Muxer,
	decoder func(*http.Request) goahttp.Decoder,
	encoder func(context.Context, http.ResponseWriter) goahttp.Encoder,
	errhandler func(context.Context, http.ResponseWriter, error),
	formatter func(err error) goahttp.Statuser,
) http.Handler

NewDataHandler creates a HTTP handler which loads the HTTP request and calls the "sensor" service "data" endpoint.

func NewDataPayload

func NewDataPayload(start *int64, end *int64, stations *string, sensors *string, resolution *int32, aggregate *string, complete *bool, tail *int32, backend *string, auth *string) *sensor.DataPayload

NewDataPayload builds a sensor service data endpoint payload.

func NewMetaHandler

func NewMetaHandler(
	endpoint goa.Endpoint,
	mux goahttp.Muxer,
	decoder func(*http.Request) goahttp.Decoder,
	encoder func(context.Context, http.ResponseWriter) goahttp.Encoder,
	errhandler func(context.Context, http.ResponseWriter, error),
	formatter func(err error) goahttp.Statuser,
) http.Handler

NewMetaHandler creates a HTTP handler which loads the HTTP request and calls the "sensor" service "meta" endpoint.

func NewRecentlyHandler

func NewRecentlyHandler(
	endpoint goa.Endpoint,
	mux goahttp.Muxer,
	decoder func(*http.Request) goahttp.Decoder,
	encoder func(context.Context, http.ResponseWriter) goahttp.Encoder,
	errhandler func(context.Context, http.ResponseWriter, error),
	formatter func(err error) goahttp.Statuser,
) http.Handler

NewRecentlyHandler creates a HTTP handler which loads the HTTP request and calls the "sensor" service "recently" endpoint.

func NewRecentlyPayload

func NewRecentlyPayload(stations *string, windows *string, auth *string) *sensor.RecentlyPayload

NewRecentlyPayload builds a sensor service recently endpoint payload.

func NewResolveHandler

func NewResolveHandler(
	endpoint goa.Endpoint,
	mux goahttp.Muxer,
	decoder func(*http.Request) goahttp.Decoder,
	encoder func(context.Context, http.ResponseWriter) goahttp.Encoder,
	errhandler func(context.Context, http.ResponseWriter, error),
	formatter func(err error) goahttp.Statuser,
) http.Handler

NewResolveHandler creates a HTTP handler which loads the HTTP request and calls the "sensor" service "resolve" endpoint.

func NewResolvePayload

func NewResolvePayload(v2 string, auth *string) *sensor.ResolvePayload

NewResolvePayload builds a sensor service resolve endpoint payload.

func NewSensorMetaHandler

func NewSensorMetaHandler(
	endpoint goa.Endpoint,
	mux goahttp.Muxer,
	decoder func(*http.Request) goahttp.Decoder,
	encoder func(context.Context, http.ResponseWriter) goahttp.Encoder,
	errhandler func(context.Context, http.ResponseWriter, error),
	formatter func(err error) goahttp.Statuser,
) http.Handler

NewSensorMetaHandler creates a HTTP handler which loads the HTTP request and calls the "sensor" service "sensor meta" endpoint.

func NewStationMetaHandler

func NewStationMetaHandler(
	endpoint goa.Endpoint,
	mux goahttp.Muxer,
	decoder func(*http.Request) goahttp.Decoder,
	encoder func(context.Context, http.ResponseWriter) goahttp.Encoder,
	errhandler func(context.Context, http.ResponseWriter, error),
	formatter func(err error) goahttp.Statuser,
) http.Handler

NewStationMetaHandler creates a HTTP handler which loads the HTTP request and calls the "sensor" service "station meta" endpoint.

func NewStationMetaPayload

func NewStationMetaPayload(stations *string) *sensor.StationMetaPayload

NewStationMetaPayload builds a sensor service station meta endpoint payload.

func NewTailHandler

func NewTailHandler(
	endpoint goa.Endpoint,
	mux goahttp.Muxer,
	decoder func(*http.Request) goahttp.Decoder,
	encoder func(context.Context, http.ResponseWriter) goahttp.Encoder,
	errhandler func(context.Context, http.ResponseWriter, error),
	formatter func(err error) goahttp.Statuser,
) http.Handler

NewTailHandler creates a HTTP handler which loads the HTTP request and calls the "sensor" service "tail" endpoint.

func NewTailPayload

func NewTailPayload(stations *string, backend *string, auth *string) *sensor.TailPayload

NewTailPayload builds a sensor service tail endpoint payload.

func RecentlySensorPath

func RecentlySensorPath() string

RecentlySensorPath returns the URL path to the sensor service recently HTTP endpoint.

func ResolveSensorPath

func ResolveSensorPath() string

ResolveSensorPath returns the URL path to the sensor service resolve HTTP endpoint.

func SensorMetaSensorPath

func SensorMetaSensorPath() string

SensorMetaSensorPath returns the URL path to the sensor service sensor meta HTTP endpoint.

func StationMetaSensorPath

func StationMetaSensorPath() string

StationMetaSensorPath returns the URL path to the sensor service station meta HTTP endpoint.

func TailSensorPath

func TailSensorPath() string

TailSensorPath returns the URL path to the sensor service tail HTTP endpoint.

Types

type BookmarkBadRequestResponseBody

type BookmarkBadRequestResponseBody struct {
	// Name is the name of this class of errors.
	Name string `form:"name" json:"name" xml:"name"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID string `form:"id" json:"id" xml:"id"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message string `form:"message" json:"message" xml:"message"`
	// Is the error temporary?
	Temporary bool `form:"temporary" json:"temporary" xml:"temporary"`
	// Is the error a timeout?
	Timeout bool `form:"timeout" json:"timeout" xml:"timeout"`
	// Is the error a server-side fault?
	Fault bool `form:"fault" json:"fault" xml:"fault"`
}

BookmarkBadRequestResponseBody is the type of the "sensor" service "bookmark" endpoint HTTP response body for the "bad-request" error.

func NewBookmarkBadRequestResponseBody

func NewBookmarkBadRequestResponseBody(res *goa.ServiceError) *BookmarkBadRequestResponseBody

NewBookmarkBadRequestResponseBody builds the HTTP response body from the result of the "bookmark" endpoint of the "sensor" service.

type BookmarkForbiddenResponseBody

type BookmarkForbiddenResponseBody struct {
	// Name is the name of this class of errors.
	Name string `form:"name" json:"name" xml:"name"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID string `form:"id" json:"id" xml:"id"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message string `form:"message" json:"message" xml:"message"`
	// Is the error temporary?
	Temporary bool `form:"temporary" json:"temporary" xml:"temporary"`
	// Is the error a timeout?
	Timeout bool `form:"timeout" json:"timeout" xml:"timeout"`
	// Is the error a server-side fault?
	Fault bool `form:"fault" json:"fault" xml:"fault"`
}

BookmarkForbiddenResponseBody is the type of the "sensor" service "bookmark" endpoint HTTP response body for the "forbidden" error.

func NewBookmarkForbiddenResponseBody

func NewBookmarkForbiddenResponseBody(res *goa.ServiceError) *BookmarkForbiddenResponseBody

NewBookmarkForbiddenResponseBody builds the HTTP response body from the result of the "bookmark" endpoint of the "sensor" service.

type BookmarkNotFoundResponseBody

type BookmarkNotFoundResponseBody struct {
	// Name is the name of this class of errors.
	Name string `form:"name" json:"name" xml:"name"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID string `form:"id" json:"id" xml:"id"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message string `form:"message" json:"message" xml:"message"`
	// Is the error temporary?
	Temporary bool `form:"temporary" json:"temporary" xml:"temporary"`
	// Is the error a timeout?
	Timeout bool `form:"timeout" json:"timeout" xml:"timeout"`
	// Is the error a server-side fault?
	Fault bool `form:"fault" json:"fault" xml:"fault"`
}

BookmarkNotFoundResponseBody is the type of the "sensor" service "bookmark" endpoint HTTP response body for the "not-found" error.

func NewBookmarkNotFoundResponseBody

func NewBookmarkNotFoundResponseBody(res *goa.ServiceError) *BookmarkNotFoundResponseBody

NewBookmarkNotFoundResponseBody builds the HTTP response body from the result of the "bookmark" endpoint of the "sensor" service.

type BookmarkResponseBody

type BookmarkResponseBody struct {
	URL      string `form:"url" json:"url" xml:"url"`
	Bookmark string `form:"bookmark" json:"bookmark" xml:"bookmark"`
	Token    string `form:"token" json:"token" xml:"token"`
}

BookmarkResponseBody is the type of the "sensor" service "bookmark" endpoint HTTP response body.

func NewBookmarkResponseBody

func NewBookmarkResponseBody(res *sensorviews.SavedBookmarkView) *BookmarkResponseBody

NewBookmarkResponseBody builds the HTTP response body from the result of the "bookmark" endpoint of the "sensor" service.

type BookmarkUnauthorizedResponseBody

type BookmarkUnauthorizedResponseBody struct {
	// Name is the name of this class of errors.
	Name string `form:"name" json:"name" xml:"name"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID string `form:"id" json:"id" xml:"id"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message string `form:"message" json:"message" xml:"message"`
	// Is the error temporary?
	Temporary bool `form:"temporary" json:"temporary" xml:"temporary"`
	// Is the error a timeout?
	Timeout bool `form:"timeout" json:"timeout" xml:"timeout"`
	// Is the error a server-side fault?
	Fault bool `form:"fault" json:"fault" xml:"fault"`
}

BookmarkUnauthorizedResponseBody is the type of the "sensor" service "bookmark" endpoint HTTP response body for the "unauthorized" error.

func NewBookmarkUnauthorizedResponseBody

func NewBookmarkUnauthorizedResponseBody(res *goa.ServiceError) *BookmarkUnauthorizedResponseBody

NewBookmarkUnauthorizedResponseBody builds the HTTP response body from the result of the "bookmark" endpoint of the "sensor" service.

type DataBadRequestResponseBody

type DataBadRequestResponseBody struct {
	// Name is the name of this class of errors.
	Name string `form:"name" json:"name" xml:"name"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID string `form:"id" json:"id" xml:"id"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message string `form:"message" json:"message" xml:"message"`
	// Is the error temporary?
	Temporary bool `form:"temporary" json:"temporary" xml:"temporary"`
	// Is the error a timeout?
	Timeout bool `form:"timeout" json:"timeout" xml:"timeout"`
	// Is the error a server-side fault?
	Fault bool `form:"fault" json:"fault" xml:"fault"`
}

DataBadRequestResponseBody is the type of the "sensor" service "data" endpoint HTTP response body for the "bad-request" error.

func NewDataBadRequestResponseBody

func NewDataBadRequestResponseBody(res *goa.ServiceError) *DataBadRequestResponseBody

NewDataBadRequestResponseBody builds the HTTP response body from the result of the "data" endpoint of the "sensor" service.

type DataForbiddenResponseBody

type DataForbiddenResponseBody struct {
	// Name is the name of this class of errors.
	Name string `form:"name" json:"name" xml:"name"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID string `form:"id" json:"id" xml:"id"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message string `form:"message" json:"message" xml:"message"`
	// Is the error temporary?
	Temporary bool `form:"temporary" json:"temporary" xml:"temporary"`
	// Is the error a timeout?
	Timeout bool `form:"timeout" json:"timeout" xml:"timeout"`
	// Is the error a server-side fault?
	Fault bool `form:"fault" json:"fault" xml:"fault"`
}

DataForbiddenResponseBody is the type of the "sensor" service "data" endpoint HTTP response body for the "forbidden" error.

func NewDataForbiddenResponseBody

func NewDataForbiddenResponseBody(res *goa.ServiceError) *DataForbiddenResponseBody

NewDataForbiddenResponseBody builds the HTTP response body from the result of the "data" endpoint of the "sensor" service.

type DataNotFoundResponseBody

type DataNotFoundResponseBody struct {
	// Name is the name of this class of errors.
	Name string `form:"name" json:"name" xml:"name"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID string `form:"id" json:"id" xml:"id"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message string `form:"message" json:"message" xml:"message"`
	// Is the error temporary?
	Temporary bool `form:"temporary" json:"temporary" xml:"temporary"`
	// Is the error a timeout?
	Timeout bool `form:"timeout" json:"timeout" xml:"timeout"`
	// Is the error a server-side fault?
	Fault bool `form:"fault" json:"fault" xml:"fault"`
}

DataNotFoundResponseBody is the type of the "sensor" service "data" endpoint HTTP response body for the "not-found" error.

func NewDataNotFoundResponseBody

func NewDataNotFoundResponseBody(res *goa.ServiceError) *DataNotFoundResponseBody

NewDataNotFoundResponseBody builds the HTTP response body from the result of the "data" endpoint of the "sensor" service.

type DataUnauthorizedResponseBody

type DataUnauthorizedResponseBody struct {
	// Name is the name of this class of errors.
	Name string `form:"name" json:"name" xml:"name"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID string `form:"id" json:"id" xml:"id"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message string `form:"message" json:"message" xml:"message"`
	// Is the error temporary?
	Temporary bool `form:"temporary" json:"temporary" xml:"temporary"`
	// Is the error a timeout?
	Timeout bool `form:"timeout" json:"timeout" xml:"timeout"`
	// Is the error a server-side fault?
	Fault bool `form:"fault" json:"fault" xml:"fault"`
}

DataUnauthorizedResponseBody is the type of the "sensor" service "data" endpoint HTTP response body for the "unauthorized" error.

func NewDataUnauthorizedResponseBody

func NewDataUnauthorizedResponseBody(res *goa.ServiceError) *DataUnauthorizedResponseBody

NewDataUnauthorizedResponseBody builds the HTTP response body from the result of the "data" endpoint of the "sensor" service.

type ErrorNamer

type ErrorNamer interface {
	ErrorName() string
}

ErrorNamer is an interface implemented by generated error structs that exposes the name of the error as defined in the design.

type MetaBadRequestResponseBody

type MetaBadRequestResponseBody struct {
	// Name is the name of this class of errors.
	Name string `form:"name" json:"name" xml:"name"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID string `form:"id" json:"id" xml:"id"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message string `form:"message" json:"message" xml:"message"`
	// Is the error temporary?
	Temporary bool `form:"temporary" json:"temporary" xml:"temporary"`
	// Is the error a timeout?
	Timeout bool `form:"timeout" json:"timeout" xml:"timeout"`
	// Is the error a server-side fault?
	Fault bool `form:"fault" json:"fault" xml:"fault"`
}

MetaBadRequestResponseBody is the type of the "sensor" service "meta" endpoint HTTP response body for the "bad-request" error.

func NewMetaBadRequestResponseBody

func NewMetaBadRequestResponseBody(res *goa.ServiceError) *MetaBadRequestResponseBody

NewMetaBadRequestResponseBody builds the HTTP response body from the result of the "meta" endpoint of the "sensor" service.

type MetaForbiddenResponseBody

type MetaForbiddenResponseBody struct {
	// Name is the name of this class of errors.
	Name string `form:"name" json:"name" xml:"name"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID string `form:"id" json:"id" xml:"id"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message string `form:"message" json:"message" xml:"message"`
	// Is the error temporary?
	Temporary bool `form:"temporary" json:"temporary" xml:"temporary"`
	// Is the error a timeout?
	Timeout bool `form:"timeout" json:"timeout" xml:"timeout"`
	// Is the error a server-side fault?
	Fault bool `form:"fault" json:"fault" xml:"fault"`
}

MetaForbiddenResponseBody is the type of the "sensor" service "meta" endpoint HTTP response body for the "forbidden" error.

func NewMetaForbiddenResponseBody

func NewMetaForbiddenResponseBody(res *goa.ServiceError) *MetaForbiddenResponseBody

NewMetaForbiddenResponseBody builds the HTTP response body from the result of the "meta" endpoint of the "sensor" service.

type MetaNotFoundResponseBody

type MetaNotFoundResponseBody struct {
	// Name is the name of this class of errors.
	Name string `form:"name" json:"name" xml:"name"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID string `form:"id" json:"id" xml:"id"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message string `form:"message" json:"message" xml:"message"`
	// Is the error temporary?
	Temporary bool `form:"temporary" json:"temporary" xml:"temporary"`
	// Is the error a timeout?
	Timeout bool `form:"timeout" json:"timeout" xml:"timeout"`
	// Is the error a server-side fault?
	Fault bool `form:"fault" json:"fault" xml:"fault"`
}

MetaNotFoundResponseBody is the type of the "sensor" service "meta" endpoint HTTP response body for the "not-found" error.

func NewMetaNotFoundResponseBody

func NewMetaNotFoundResponseBody(res *goa.ServiceError) *MetaNotFoundResponseBody

NewMetaNotFoundResponseBody builds the HTTP response body from the result of the "meta" endpoint of the "sensor" service.

type MetaUnauthorizedResponseBody

type MetaUnauthorizedResponseBody struct {
	// Name is the name of this class of errors.
	Name string `form:"name" json:"name" xml:"name"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID string `form:"id" json:"id" xml:"id"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message string `form:"message" json:"message" xml:"message"`
	// Is the error temporary?
	Temporary bool `form:"temporary" json:"temporary" xml:"temporary"`
	// Is the error a timeout?
	Timeout bool `form:"timeout" json:"timeout" xml:"timeout"`
	// Is the error a server-side fault?
	Fault bool `form:"fault" json:"fault" xml:"fault"`
}

MetaUnauthorizedResponseBody is the type of the "sensor" service "meta" endpoint HTTP response body for the "unauthorized" error.

func NewMetaUnauthorizedResponseBody

func NewMetaUnauthorizedResponseBody(res *goa.ServiceError) *MetaUnauthorizedResponseBody

NewMetaUnauthorizedResponseBody builds the HTTP response body from the result of the "meta" endpoint of the "sensor" service.

type MountPoint

type MountPoint struct {
	// Method is the name of the service method served by the mounted HTTP handler.
	Method string
	// Verb is the HTTP method used to match requests to the mounted handler.
	Verb string
	// Pattern is the HTTP request path pattern used to match requests to the
	// mounted handler.
	Pattern string
}

MountPoint holds information about the mounted endpoints.

type RecentlyBadRequestResponseBody

type RecentlyBadRequestResponseBody struct {
	// Name is the name of this class of errors.
	Name string `form:"name" json:"name" xml:"name"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID string `form:"id" json:"id" xml:"id"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message string `form:"message" json:"message" xml:"message"`
	// Is the error temporary?
	Temporary bool `form:"temporary" json:"temporary" xml:"temporary"`
	// Is the error a timeout?
	Timeout bool `form:"timeout" json:"timeout" xml:"timeout"`
	// Is the error a server-side fault?
	Fault bool `form:"fault" json:"fault" xml:"fault"`
}

RecentlyBadRequestResponseBody is the type of the "sensor" service "recently" endpoint HTTP response body for the "bad-request" error.

func NewRecentlyBadRequestResponseBody

func NewRecentlyBadRequestResponseBody(res *goa.ServiceError) *RecentlyBadRequestResponseBody

NewRecentlyBadRequestResponseBody builds the HTTP response body from the result of the "recently" endpoint of the "sensor" service.

type RecentlyForbiddenResponseBody

type RecentlyForbiddenResponseBody struct {
	// Name is the name of this class of errors.
	Name string `form:"name" json:"name" xml:"name"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID string `form:"id" json:"id" xml:"id"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message string `form:"message" json:"message" xml:"message"`
	// Is the error temporary?
	Temporary bool `form:"temporary" json:"temporary" xml:"temporary"`
	// Is the error a timeout?
	Timeout bool `form:"timeout" json:"timeout" xml:"timeout"`
	// Is the error a server-side fault?
	Fault bool `form:"fault" json:"fault" xml:"fault"`
}

RecentlyForbiddenResponseBody is the type of the "sensor" service "recently" endpoint HTTP response body for the "forbidden" error.

func NewRecentlyForbiddenResponseBody

func NewRecentlyForbiddenResponseBody(res *goa.ServiceError) *RecentlyForbiddenResponseBody

NewRecentlyForbiddenResponseBody builds the HTTP response body from the result of the "recently" endpoint of the "sensor" service.

type RecentlyNotFoundResponseBody

type RecentlyNotFoundResponseBody struct {
	// Name is the name of this class of errors.
	Name string `form:"name" json:"name" xml:"name"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID string `form:"id" json:"id" xml:"id"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message string `form:"message" json:"message" xml:"message"`
	// Is the error temporary?
	Temporary bool `form:"temporary" json:"temporary" xml:"temporary"`
	// Is the error a timeout?
	Timeout bool `form:"timeout" json:"timeout" xml:"timeout"`
	// Is the error a server-side fault?
	Fault bool `form:"fault" json:"fault" xml:"fault"`
}

RecentlyNotFoundResponseBody is the type of the "sensor" service "recently" endpoint HTTP response body for the "not-found" error.

func NewRecentlyNotFoundResponseBody

func NewRecentlyNotFoundResponseBody(res *goa.ServiceError) *RecentlyNotFoundResponseBody

NewRecentlyNotFoundResponseBody builds the HTTP response body from the result of the "recently" endpoint of the "sensor" service.

type RecentlyUnauthorizedResponseBody

type RecentlyUnauthorizedResponseBody struct {
	// Name is the name of this class of errors.
	Name string `form:"name" json:"name" xml:"name"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID string `form:"id" json:"id" xml:"id"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message string `form:"message" json:"message" xml:"message"`
	// Is the error temporary?
	Temporary bool `form:"temporary" json:"temporary" xml:"temporary"`
	// Is the error a timeout?
	Timeout bool `form:"timeout" json:"timeout" xml:"timeout"`
	// Is the error a server-side fault?
	Fault bool `form:"fault" json:"fault" xml:"fault"`
}

RecentlyUnauthorizedResponseBody is the type of the "sensor" service "recently" endpoint HTTP response body for the "unauthorized" error.

func NewRecentlyUnauthorizedResponseBody

func NewRecentlyUnauthorizedResponseBody(res *goa.ServiceError) *RecentlyUnauthorizedResponseBody

NewRecentlyUnauthorizedResponseBody builds the HTTP response body from the result of the "recently" endpoint of the "sensor" service.

type ResolveBadRequestResponseBody

type ResolveBadRequestResponseBody struct {
	// Name is the name of this class of errors.
	Name string `form:"name" json:"name" xml:"name"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID string `form:"id" json:"id" xml:"id"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message string `form:"message" json:"message" xml:"message"`
	// Is the error temporary?
	Temporary bool `form:"temporary" json:"temporary" xml:"temporary"`
	// Is the error a timeout?
	Timeout bool `form:"timeout" json:"timeout" xml:"timeout"`
	// Is the error a server-side fault?
	Fault bool `form:"fault" json:"fault" xml:"fault"`
}

ResolveBadRequestResponseBody is the type of the "sensor" service "resolve" endpoint HTTP response body for the "bad-request" error.

func NewResolveBadRequestResponseBody

func NewResolveBadRequestResponseBody(res *goa.ServiceError) *ResolveBadRequestResponseBody

NewResolveBadRequestResponseBody builds the HTTP response body from the result of the "resolve" endpoint of the "sensor" service.

type ResolveForbiddenResponseBody

type ResolveForbiddenResponseBody struct {
	// Name is the name of this class of errors.
	Name string `form:"name" json:"name" xml:"name"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID string `form:"id" json:"id" xml:"id"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message string `form:"message" json:"message" xml:"message"`
	// Is the error temporary?
	Temporary bool `form:"temporary" json:"temporary" xml:"temporary"`
	// Is the error a timeout?
	Timeout bool `form:"timeout" json:"timeout" xml:"timeout"`
	// Is the error a server-side fault?
	Fault bool `form:"fault" json:"fault" xml:"fault"`
}

ResolveForbiddenResponseBody is the type of the "sensor" service "resolve" endpoint HTTP response body for the "forbidden" error.

func NewResolveForbiddenResponseBody

func NewResolveForbiddenResponseBody(res *goa.ServiceError) *ResolveForbiddenResponseBody

NewResolveForbiddenResponseBody builds the HTTP response body from the result of the "resolve" endpoint of the "sensor" service.

type ResolveNotFoundResponseBody

type ResolveNotFoundResponseBody struct {
	// Name is the name of this class of errors.
	Name string `form:"name" json:"name" xml:"name"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID string `form:"id" json:"id" xml:"id"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message string `form:"message" json:"message" xml:"message"`
	// Is the error temporary?
	Temporary bool `form:"temporary" json:"temporary" xml:"temporary"`
	// Is the error a timeout?
	Timeout bool `form:"timeout" json:"timeout" xml:"timeout"`
	// Is the error a server-side fault?
	Fault bool `form:"fault" json:"fault" xml:"fault"`
}

ResolveNotFoundResponseBody is the type of the "sensor" service "resolve" endpoint HTTP response body for the "not-found" error.

func NewResolveNotFoundResponseBody

func NewResolveNotFoundResponseBody(res *goa.ServiceError) *ResolveNotFoundResponseBody

NewResolveNotFoundResponseBody builds the HTTP response body from the result of the "resolve" endpoint of the "sensor" service.

type ResolveResponseBody

type ResolveResponseBody struct {
	URL      string `form:"url" json:"url" xml:"url"`
	Bookmark string `form:"bookmark" json:"bookmark" xml:"bookmark"`
	Token    string `form:"token" json:"token" xml:"token"`
}

ResolveResponseBody is the type of the "sensor" service "resolve" endpoint HTTP response body.

func NewResolveResponseBody

func NewResolveResponseBody(res *sensorviews.SavedBookmarkView) *ResolveResponseBody

NewResolveResponseBody builds the HTTP response body from the result of the "resolve" endpoint of the "sensor" service.

type ResolveUnauthorizedResponseBody

type ResolveUnauthorizedResponseBody struct {
	// Name is the name of this class of errors.
	Name string `form:"name" json:"name" xml:"name"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID string `form:"id" json:"id" xml:"id"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message string `form:"message" json:"message" xml:"message"`
	// Is the error temporary?
	Temporary bool `form:"temporary" json:"temporary" xml:"temporary"`
	// Is the error a timeout?
	Timeout bool `form:"timeout" json:"timeout" xml:"timeout"`
	// Is the error a server-side fault?
	Fault bool `form:"fault" json:"fault" xml:"fault"`
}

ResolveUnauthorizedResponseBody is the type of the "sensor" service "resolve" endpoint HTTP response body for the "unauthorized" error.

func NewResolveUnauthorizedResponseBody

func NewResolveUnauthorizedResponseBody(res *goa.ServiceError) *ResolveUnauthorizedResponseBody

NewResolveUnauthorizedResponseBody builds the HTTP response body from the result of the "resolve" endpoint of the "sensor" service.

type SensorMetaBadRequestResponseBody

type SensorMetaBadRequestResponseBody struct {
	// Name is the name of this class of errors.
	Name string `form:"name" json:"name" xml:"name"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID string `form:"id" json:"id" xml:"id"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message string `form:"message" json:"message" xml:"message"`
	// Is the error temporary?
	Temporary bool `form:"temporary" json:"temporary" xml:"temporary"`
	// Is the error a timeout?
	Timeout bool `form:"timeout" json:"timeout" xml:"timeout"`
	// Is the error a server-side fault?
	Fault bool `form:"fault" json:"fault" xml:"fault"`
}

SensorMetaBadRequestResponseBody is the type of the "sensor" service "sensor meta" endpoint HTTP response body for the "bad-request" error.

func NewSensorMetaBadRequestResponseBody

func NewSensorMetaBadRequestResponseBody(res *goa.ServiceError) *SensorMetaBadRequestResponseBody

NewSensorMetaBadRequestResponseBody builds the HTTP response body from the result of the "sensor meta" endpoint of the "sensor" service.

type SensorMetaForbiddenResponseBody

type SensorMetaForbiddenResponseBody struct {
	// Name is the name of this class of errors.
	Name string `form:"name" json:"name" xml:"name"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID string `form:"id" json:"id" xml:"id"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message string `form:"message" json:"message" xml:"message"`
	// Is the error temporary?
	Temporary bool `form:"temporary" json:"temporary" xml:"temporary"`
	// Is the error a timeout?
	Timeout bool `form:"timeout" json:"timeout" xml:"timeout"`
	// Is the error a server-side fault?
	Fault bool `form:"fault" json:"fault" xml:"fault"`
}

SensorMetaForbiddenResponseBody is the type of the "sensor" service "sensor meta" endpoint HTTP response body for the "forbidden" error.

func NewSensorMetaForbiddenResponseBody

func NewSensorMetaForbiddenResponseBody(res *goa.ServiceError) *SensorMetaForbiddenResponseBody

NewSensorMetaForbiddenResponseBody builds the HTTP response body from the result of the "sensor meta" endpoint of the "sensor" service.

type SensorMetaNotFoundResponseBody

type SensorMetaNotFoundResponseBody struct {
	// Name is the name of this class of errors.
	Name string `form:"name" json:"name" xml:"name"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID string `form:"id" json:"id" xml:"id"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message string `form:"message" json:"message" xml:"message"`
	// Is the error temporary?
	Temporary bool `form:"temporary" json:"temporary" xml:"temporary"`
	// Is the error a timeout?
	Timeout bool `form:"timeout" json:"timeout" xml:"timeout"`
	// Is the error a server-side fault?
	Fault bool `form:"fault" json:"fault" xml:"fault"`
}

SensorMetaNotFoundResponseBody is the type of the "sensor" service "sensor meta" endpoint HTTP response body for the "not-found" error.

func NewSensorMetaNotFoundResponseBody

func NewSensorMetaNotFoundResponseBody(res *goa.ServiceError) *SensorMetaNotFoundResponseBody

NewSensorMetaNotFoundResponseBody builds the HTTP response body from the result of the "sensor meta" endpoint of the "sensor" service.

type SensorMetaUnauthorizedResponseBody

type SensorMetaUnauthorizedResponseBody struct {
	// Name is the name of this class of errors.
	Name string `form:"name" json:"name" xml:"name"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID string `form:"id" json:"id" xml:"id"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message string `form:"message" json:"message" xml:"message"`
	// Is the error temporary?
	Temporary bool `form:"temporary" json:"temporary" xml:"temporary"`
	// Is the error a timeout?
	Timeout bool `form:"timeout" json:"timeout" xml:"timeout"`
	// Is the error a server-side fault?
	Fault bool `form:"fault" json:"fault" xml:"fault"`
}

SensorMetaUnauthorizedResponseBody is the type of the "sensor" service "sensor meta" endpoint HTTP response body for the "unauthorized" error.

func NewSensorMetaUnauthorizedResponseBody

func NewSensorMetaUnauthorizedResponseBody(res *goa.ServiceError) *SensorMetaUnauthorizedResponseBody

NewSensorMetaUnauthorizedResponseBody builds the HTTP response body from the result of the "sensor meta" endpoint of the "sensor" service.

type Server

type Server struct {
	Mounts      []*MountPoint
	Meta        http.Handler
	StationMeta http.Handler
	SensorMeta  http.Handler
	Data        http.Handler
	Tail        http.Handler
	Recently    http.Handler
	Bookmark    http.Handler
	Resolve     http.Handler
	CORS        http.Handler
}

Server lists the sensor service endpoint HTTP handlers.

func New

func New(
	e *sensor.Endpoints,
	mux goahttp.Muxer,
	decoder func(*http.Request) goahttp.Decoder,
	encoder func(context.Context, http.ResponseWriter) goahttp.Encoder,
	errhandler func(context.Context, http.ResponseWriter, error),
	formatter func(err error) goahttp.Statuser,
) *Server

New instantiates HTTP handlers for all the sensor service endpoints using the provided encoder and decoder. The handlers are mounted on the given mux using the HTTP verb and path defined in the design. errhandler is called whenever a response fails to be encoded. formatter is used to format errors returned by the service methods prior to encoding. Both errhandler and formatter are optional and can be nil.

func (*Server) Service

func (s *Server) Service() string

Service returns the name of the service served.

func (*Server) Use

func (s *Server) Use(m func(http.Handler) http.Handler)

Use wraps the server handlers with the given middleware.

type StationMetaBadRequestResponseBody

type StationMetaBadRequestResponseBody struct {
	// Name is the name of this class of errors.
	Name string `form:"name" json:"name" xml:"name"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID string `form:"id" json:"id" xml:"id"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message string `form:"message" json:"message" xml:"message"`
	// Is the error temporary?
	Temporary bool `form:"temporary" json:"temporary" xml:"temporary"`
	// Is the error a timeout?
	Timeout bool `form:"timeout" json:"timeout" xml:"timeout"`
	// Is the error a server-side fault?
	Fault bool `form:"fault" json:"fault" xml:"fault"`
}

StationMetaBadRequestResponseBody is the type of the "sensor" service "station meta" endpoint HTTP response body for the "bad-request" error.

func NewStationMetaBadRequestResponseBody

func NewStationMetaBadRequestResponseBody(res *goa.ServiceError) *StationMetaBadRequestResponseBody

NewStationMetaBadRequestResponseBody builds the HTTP response body from the result of the "station meta" endpoint of the "sensor" service.

type StationMetaForbiddenResponseBody

type StationMetaForbiddenResponseBody struct {
	// Name is the name of this class of errors.
	Name string `form:"name" json:"name" xml:"name"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID string `form:"id" json:"id" xml:"id"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message string `form:"message" json:"message" xml:"message"`
	// Is the error temporary?
	Temporary bool `form:"temporary" json:"temporary" xml:"temporary"`
	// Is the error a timeout?
	Timeout bool `form:"timeout" json:"timeout" xml:"timeout"`
	// Is the error a server-side fault?
	Fault bool `form:"fault" json:"fault" xml:"fault"`
}

StationMetaForbiddenResponseBody is the type of the "sensor" service "station meta" endpoint HTTP response body for the "forbidden" error.

func NewStationMetaForbiddenResponseBody

func NewStationMetaForbiddenResponseBody(res *goa.ServiceError) *StationMetaForbiddenResponseBody

NewStationMetaForbiddenResponseBody builds the HTTP response body from the result of the "station meta" endpoint of the "sensor" service.

type StationMetaNotFoundResponseBody

type StationMetaNotFoundResponseBody struct {
	// Name is the name of this class of errors.
	Name string `form:"name" json:"name" xml:"name"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID string `form:"id" json:"id" xml:"id"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message string `form:"message" json:"message" xml:"message"`
	// Is the error temporary?
	Temporary bool `form:"temporary" json:"temporary" xml:"temporary"`
	// Is the error a timeout?
	Timeout bool `form:"timeout" json:"timeout" xml:"timeout"`
	// Is the error a server-side fault?
	Fault bool `form:"fault" json:"fault" xml:"fault"`
}

StationMetaNotFoundResponseBody is the type of the "sensor" service "station meta" endpoint HTTP response body for the "not-found" error.

func NewStationMetaNotFoundResponseBody

func NewStationMetaNotFoundResponseBody(res *goa.ServiceError) *StationMetaNotFoundResponseBody

NewStationMetaNotFoundResponseBody builds the HTTP response body from the result of the "station meta" endpoint of the "sensor" service.

type StationMetaUnauthorizedResponseBody

type StationMetaUnauthorizedResponseBody struct {
	// Name is the name of this class of errors.
	Name string `form:"name" json:"name" xml:"name"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID string `form:"id" json:"id" xml:"id"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message string `form:"message" json:"message" xml:"message"`
	// Is the error temporary?
	Temporary bool `form:"temporary" json:"temporary" xml:"temporary"`
	// Is the error a timeout?
	Timeout bool `form:"timeout" json:"timeout" xml:"timeout"`
	// Is the error a server-side fault?
	Fault bool `form:"fault" json:"fault" xml:"fault"`
}

StationMetaUnauthorizedResponseBody is the type of the "sensor" service "station meta" endpoint HTTP response body for the "unauthorized" error.

func NewStationMetaUnauthorizedResponseBody

func NewStationMetaUnauthorizedResponseBody(res *goa.ServiceError) *StationMetaUnauthorizedResponseBody

NewStationMetaUnauthorizedResponseBody builds the HTTP response body from the result of the "station meta" endpoint of the "sensor" service.

type TailBadRequestResponseBody

type TailBadRequestResponseBody struct {
	// Name is the name of this class of errors.
	Name string `form:"name" json:"name" xml:"name"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID string `form:"id" json:"id" xml:"id"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message string `form:"message" json:"message" xml:"message"`
	// Is the error temporary?
	Temporary bool `form:"temporary" json:"temporary" xml:"temporary"`
	// Is the error a timeout?
	Timeout bool `form:"timeout" json:"timeout" xml:"timeout"`
	// Is the error a server-side fault?
	Fault bool `form:"fault" json:"fault" xml:"fault"`
}

TailBadRequestResponseBody is the type of the "sensor" service "tail" endpoint HTTP response body for the "bad-request" error.

func NewTailBadRequestResponseBody

func NewTailBadRequestResponseBody(res *goa.ServiceError) *TailBadRequestResponseBody

NewTailBadRequestResponseBody builds the HTTP response body from the result of the "tail" endpoint of the "sensor" service.

type TailForbiddenResponseBody

type TailForbiddenResponseBody struct {
	// Name is the name of this class of errors.
	Name string `form:"name" json:"name" xml:"name"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID string `form:"id" json:"id" xml:"id"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message string `form:"message" json:"message" xml:"message"`
	// Is the error temporary?
	Temporary bool `form:"temporary" json:"temporary" xml:"temporary"`
	// Is the error a timeout?
	Timeout bool `form:"timeout" json:"timeout" xml:"timeout"`
	// Is the error a server-side fault?
	Fault bool `form:"fault" json:"fault" xml:"fault"`
}

TailForbiddenResponseBody is the type of the "sensor" service "tail" endpoint HTTP response body for the "forbidden" error.

func NewTailForbiddenResponseBody

func NewTailForbiddenResponseBody(res *goa.ServiceError) *TailForbiddenResponseBody

NewTailForbiddenResponseBody builds the HTTP response body from the result of the "tail" endpoint of the "sensor" service.

type TailNotFoundResponseBody

type TailNotFoundResponseBody struct {
	// Name is the name of this class of errors.
	Name string `form:"name" json:"name" xml:"name"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID string `form:"id" json:"id" xml:"id"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message string `form:"message" json:"message" xml:"message"`
	// Is the error temporary?
	Temporary bool `form:"temporary" json:"temporary" xml:"temporary"`
	// Is the error a timeout?
	Timeout bool `form:"timeout" json:"timeout" xml:"timeout"`
	// Is the error a server-side fault?
	Fault bool `form:"fault" json:"fault" xml:"fault"`
}

TailNotFoundResponseBody is the type of the "sensor" service "tail" endpoint HTTP response body for the "not-found" error.

func NewTailNotFoundResponseBody

func NewTailNotFoundResponseBody(res *goa.ServiceError) *TailNotFoundResponseBody

NewTailNotFoundResponseBody builds the HTTP response body from the result of the "tail" endpoint of the "sensor" service.

type TailUnauthorizedResponseBody

type TailUnauthorizedResponseBody struct {
	// Name is the name of this class of errors.
	Name string `form:"name" json:"name" xml:"name"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID string `form:"id" json:"id" xml:"id"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message string `form:"message" json:"message" xml:"message"`
	// Is the error temporary?
	Temporary bool `form:"temporary" json:"temporary" xml:"temporary"`
	// Is the error a timeout?
	Timeout bool `form:"timeout" json:"timeout" xml:"timeout"`
	// Is the error a server-side fault?
	Fault bool `form:"fault" json:"fault" xml:"fault"`
}

TailUnauthorizedResponseBody is the type of the "sensor" service "tail" endpoint HTTP response body for the "unauthorized" error.

func NewTailUnauthorizedResponseBody

func NewTailUnauthorizedResponseBody(res *goa.ServiceError) *TailUnauthorizedResponseBody

NewTailUnauthorizedResponseBody builds the HTTP response body from the result of the "tail" endpoint of the "sensor" service.

Jump to

Keyboard shortcuts

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