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: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddNoteStationNotePath

func AddNoteStationNotePath(stationID int32) string

AddNoteStationNotePath returns the URL path to the station_note service add note HTTP endpoint.

func DecodeAddNoteRequest

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

DecodeAddNoteRequest returns a decoder for requests sent to the station_note add note endpoint.

func DecodeDeleteNoteRequest

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

DecodeDeleteNoteRequest returns a decoder for requests sent to the station_note delete note endpoint.

func DecodeStationRequest

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

DecodeStationRequest returns a decoder for requests sent to the station_note station endpoint.

func DecodeUpdateNoteRequest

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

DecodeUpdateNoteRequest returns a decoder for requests sent to the station_note update note endpoint.

func DeleteNoteStationNotePath

func DeleteNoteStationNotePath(stationID int32, stationNoteID int32) string

DeleteNoteStationNotePath returns the URL path to the station_note service delete note HTTP endpoint.

func EncodeAddNoteError

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

EncodeAddNoteError returns an encoder for errors returned by the add note station_note endpoint.

func EncodeAddNoteResponse

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

EncodeAddNoteResponse returns an encoder for responses returned by the station_note add note endpoint.

func EncodeDeleteNoteError

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

EncodeDeleteNoteError returns an encoder for errors returned by the delete note station_note endpoint.

func EncodeDeleteNoteResponse

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

EncodeDeleteNoteResponse returns an encoder for responses returned by the station_note delete note endpoint.

func EncodeStationError

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

EncodeStationError returns an encoder for errors returned by the station station_note endpoint.

func EncodeStationResponse

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

EncodeStationResponse returns an encoder for responses returned by the station_note station endpoint.

func EncodeUpdateNoteError

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

EncodeUpdateNoteError returns an encoder for errors returned by the update note station_note endpoint.

func EncodeUpdateNoteResponse

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

EncodeUpdateNoteResponse returns an encoder for responses returned by the station_note update note endpoint.

func Mount

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

Mount configures the mux to serve the station_note endpoints.

func MountAddNoteHandler

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

MountAddNoteHandler configures the mux to serve the "station_note" service "add note" endpoint.

func MountCORSHandler

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

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

func MountDeleteNoteHandler

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

MountDeleteNoteHandler configures the mux to serve the "station_note" service "delete note" endpoint.

func MountStationHandler

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

MountStationHandler configures the mux to serve the "station_note" service "station" endpoint.

func MountUpdateNoteHandler

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

MountUpdateNoteHandler configures the mux to serve the "station_note" service "update note" endpoint.

func NewAddNoteHandler

func NewAddNoteHandler(
	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

NewAddNoteHandler creates a HTTP handler which loads the HTTP request and calls the "station_note" service "add note" endpoint.

func NewAddNotePayload

func NewAddNotePayload(body *AddNoteRequestBody, stationID int32, auth string) *stationnote.AddNotePayload

NewAddNotePayload builds a station_note service add note endpoint payload.

func NewCORSHandler

func NewCORSHandler() http.Handler

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

func NewDeleteNoteHandler

func NewDeleteNoteHandler(
	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

NewDeleteNoteHandler creates a HTTP handler which loads the HTTP request and calls the "station_note" service "delete note" endpoint.

func NewDeleteNotePayload

func NewDeleteNotePayload(stationID int32, stationNoteID int32, auth string) *stationnote.DeleteNotePayload

NewDeleteNotePayload builds a station_note service delete note endpoint payload.

func NewStationHandler

func NewStationHandler(
	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

NewStationHandler creates a HTTP handler which loads the HTTP request and calls the "station_note" service "station" endpoint.

func NewStationPayload

func NewStationPayload(stationID int32, auth *string) *stationnote.StationPayload

NewStationPayload builds a station_note service station endpoint payload.

func NewUpdateNoteHandler

func NewUpdateNoteHandler(
	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

NewUpdateNoteHandler creates a HTTP handler which loads the HTTP request and calls the "station_note" service "update note" endpoint.

func NewUpdateNotePayload

func NewUpdateNotePayload(body *UpdateNoteRequestBody, stationID int32, stationNoteID int32, auth string) *stationnote.UpdateNotePayload

NewUpdateNotePayload builds a station_note service update note endpoint payload.

func StationStationNotePath

func StationStationNotePath(stationID int32) string

StationStationNotePath returns the URL path to the station_note service station HTTP endpoint.

func UpdateNoteStationNotePath

func UpdateNoteStationNotePath(stationID int32, stationNoteID int32) string

UpdateNoteStationNotePath returns the URL path to the station_note service update note HTTP endpoint.

func ValidateAddNoteRequestBody

func ValidateAddNoteRequestBody(body *AddNoteRequestBody) (err error)

ValidateAddNoteRequestBody runs the validations defined on Add NoteRequestBody

func ValidateUpdateNoteRequestBody

func ValidateUpdateNoteRequestBody(body *UpdateNoteRequestBody) (err error)

ValidateUpdateNoteRequestBody runs the validations defined on Update NoteRequestBody

Types

type AddNoteBadRequestResponseBody

type AddNoteBadRequestResponseBody 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"`
}

AddNoteBadRequestResponseBody is the type of the "station_note" service "add note" endpoint HTTP response body for the "bad-request" error.

func NewAddNoteBadRequestResponseBody

func NewAddNoteBadRequestResponseBody(res *goa.ServiceError) *AddNoteBadRequestResponseBody

NewAddNoteBadRequestResponseBody builds the HTTP response body from the result of the "add note" endpoint of the "station_note" service.

type AddNoteForbiddenResponseBody

type AddNoteForbiddenResponseBody 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"`
}

AddNoteForbiddenResponseBody is the type of the "station_note" service "add note" endpoint HTTP response body for the "forbidden" error.

func NewAddNoteForbiddenResponseBody

func NewAddNoteForbiddenResponseBody(res *goa.ServiceError) *AddNoteForbiddenResponseBody

NewAddNoteForbiddenResponseBody builds the HTTP response body from the result of the "add note" endpoint of the "station_note" service.

type AddNoteNotFoundResponseBody

type AddNoteNotFoundResponseBody 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"`
}

AddNoteNotFoundResponseBody is the type of the "station_note" service "add note" endpoint HTTP response body for the "not-found" error.

func NewAddNoteNotFoundResponseBody

func NewAddNoteNotFoundResponseBody(res *goa.ServiceError) *AddNoteNotFoundResponseBody

NewAddNoteNotFoundResponseBody builds the HTTP response body from the result of the "add note" endpoint of the "station_note" service.

type AddNoteRequestBody

type AddNoteRequestBody struct {
	UserID *int32  `form:"userId,omitempty" json:"userId,omitempty" xml:"userId,omitempty"`
	Body   *string `form:"body,omitempty" json:"body,omitempty" xml:"body,omitempty"`
}

AddNoteRequestBody is the type of the "station_note" service "add note" endpoint HTTP request body.

type AddNoteResponseBody

type AddNoteResponseBody struct {
	ID        int32                          `form:"id" json:"id" xml:"id"`
	CreatedAt int64                          `form:"createdAt" json:"createdAt" xml:"createdAt"`
	UpdatedAt int64                          `form:"updatedAt" json:"updatedAt" xml:"updatedAt"`
	Author    *StationNoteAuthorResponseBody `form:"author" json:"author" xml:"author"`
	Body      string                         `form:"body" json:"body" xml:"body"`
}

AddNoteResponseBody is the type of the "station_note" service "add note" endpoint HTTP response body.

func NewAddNoteResponseBody

func NewAddNoteResponseBody(res *stationnoteviews.StationNoteView) *AddNoteResponseBody

NewAddNoteResponseBody builds the HTTP response body from the result of the "add note" endpoint of the "station_note" service.

type AddNoteUnauthorizedResponseBody

type AddNoteUnauthorizedResponseBody 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"`
}

AddNoteUnauthorizedResponseBody is the type of the "station_note" service "add note" endpoint HTTP response body for the "unauthorized" error.

func NewAddNoteUnauthorizedResponseBody

func NewAddNoteUnauthorizedResponseBody(res *goa.ServiceError) *AddNoteUnauthorizedResponseBody

NewAddNoteUnauthorizedResponseBody builds the HTTP response body from the result of the "add note" endpoint of the "station_note" service.

type DeleteNoteBadRequestResponseBody

type DeleteNoteBadRequestResponseBody 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"`
}

DeleteNoteBadRequestResponseBody is the type of the "station_note" service "delete note" endpoint HTTP response body for the "bad-request" error.

func NewDeleteNoteBadRequestResponseBody

func NewDeleteNoteBadRequestResponseBody(res *goa.ServiceError) *DeleteNoteBadRequestResponseBody

NewDeleteNoteBadRequestResponseBody builds the HTTP response body from the result of the "delete note" endpoint of the "station_note" service.

type DeleteNoteForbiddenResponseBody

type DeleteNoteForbiddenResponseBody 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"`
}

DeleteNoteForbiddenResponseBody is the type of the "station_note" service "delete note" endpoint HTTP response body for the "forbidden" error.

func NewDeleteNoteForbiddenResponseBody

func NewDeleteNoteForbiddenResponseBody(res *goa.ServiceError) *DeleteNoteForbiddenResponseBody

NewDeleteNoteForbiddenResponseBody builds the HTTP response body from the result of the "delete note" endpoint of the "station_note" service.

type DeleteNoteNotFoundResponseBody

type DeleteNoteNotFoundResponseBody 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"`
}

DeleteNoteNotFoundResponseBody is the type of the "station_note" service "delete note" endpoint HTTP response body for the "not-found" error.

func NewDeleteNoteNotFoundResponseBody

func NewDeleteNoteNotFoundResponseBody(res *goa.ServiceError) *DeleteNoteNotFoundResponseBody

NewDeleteNoteNotFoundResponseBody builds the HTTP response body from the result of the "delete note" endpoint of the "station_note" service.

type DeleteNoteUnauthorizedResponseBody

type DeleteNoteUnauthorizedResponseBody 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"`
}

DeleteNoteUnauthorizedResponseBody is the type of the "station_note" service "delete note" endpoint HTTP response body for the "unauthorized" error.

func NewDeleteNoteUnauthorizedResponseBody

func NewDeleteNoteUnauthorizedResponseBody(res *goa.ServiceError) *DeleteNoteUnauthorizedResponseBody

NewDeleteNoteUnauthorizedResponseBody builds the HTTP response body from the result of the "delete note" endpoint of the "station_note" 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 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 Server

type Server struct {
	Mounts     []*MountPoint
	Station    http.Handler
	AddNote    http.Handler
	UpdateNote http.Handler
	DeleteNote http.Handler
	CORS       http.Handler
}

Server lists the station_note service endpoint HTTP handlers.

func New

func New(
	e *stationnote.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 station_note 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 StationBadRequestResponseBody

type StationBadRequestResponseBody 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"`
}

StationBadRequestResponseBody is the type of the "station_note" service "station" endpoint HTTP response body for the "bad-request" error.

func NewStationBadRequestResponseBody

func NewStationBadRequestResponseBody(res *goa.ServiceError) *StationBadRequestResponseBody

NewStationBadRequestResponseBody builds the HTTP response body from the result of the "station" endpoint of the "station_note" service.

type StationForbiddenResponseBody

type StationForbiddenResponseBody 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"`
}

StationForbiddenResponseBody is the type of the "station_note" service "station" endpoint HTTP response body for the "forbidden" error.

func NewStationForbiddenResponseBody

func NewStationForbiddenResponseBody(res *goa.ServiceError) *StationForbiddenResponseBody

NewStationForbiddenResponseBody builds the HTTP response body from the result of the "station" endpoint of the "station_note" service.

type StationNotFoundResponseBody

type StationNotFoundResponseBody 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"`
}

StationNotFoundResponseBody is the type of the "station_note" service "station" endpoint HTTP response body for the "not-found" error.

func NewStationNotFoundResponseBody

func NewStationNotFoundResponseBody(res *goa.ServiceError) *StationNotFoundResponseBody

NewStationNotFoundResponseBody builds the HTTP response body from the result of the "station" endpoint of the "station_note" service.

type StationNoteAuthorPhotoResponseBody

type StationNoteAuthorPhotoResponseBody struct {
	URL string `form:"url" json:"url" xml:"url"`
}

StationNoteAuthorPhotoResponseBody is used to define fields on response body types.

type StationNoteAuthorResponseBody

type StationNoteAuthorResponseBody struct {
	ID    int32                               `form:"id" json:"id" xml:"id"`
	Name  string                              `form:"name" json:"name" xml:"name"`
	Photo *StationNoteAuthorPhotoResponseBody `form:"photo,omitempty" json:"photo,omitempty" xml:"photo,omitempty"`
}

StationNoteAuthorResponseBody is used to define fields on response body types.

type StationNoteResponseBody

type StationNoteResponseBody struct {
	ID        int32                          `form:"id" json:"id" xml:"id"`
	CreatedAt int64                          `form:"createdAt" json:"createdAt" xml:"createdAt"`
	UpdatedAt int64                          `form:"updatedAt" json:"updatedAt" xml:"updatedAt"`
	Author    *StationNoteAuthorResponseBody `form:"author" json:"author" xml:"author"`
	Body      string                         `form:"body" json:"body" xml:"body"`
}

StationNoteResponseBody is used to define fields on response body types.

type StationResponseBody

type StationResponseBody struct {
	Notes []*StationNoteResponseBody `form:"notes" json:"notes" xml:"notes"`
}

StationResponseBody is the type of the "station_note" service "station" endpoint HTTP response body.

func NewStationResponseBody

func NewStationResponseBody(res *stationnoteviews.StationNotesView) *StationResponseBody

NewStationResponseBody builds the HTTP response body from the result of the "station" endpoint of the "station_note" service.

type StationUnauthorizedResponseBody

type StationUnauthorizedResponseBody 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"`
}

StationUnauthorizedResponseBody is the type of the "station_note" service "station" endpoint HTTP response body for the "unauthorized" error.

func NewStationUnauthorizedResponseBody

func NewStationUnauthorizedResponseBody(res *goa.ServiceError) *StationUnauthorizedResponseBody

NewStationUnauthorizedResponseBody builds the HTTP response body from the result of the "station" endpoint of the "station_note" service.

type UpdateNoteBadRequestResponseBody

type UpdateNoteBadRequestResponseBody 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"`
}

UpdateNoteBadRequestResponseBody is the type of the "station_note" service "update note" endpoint HTTP response body for the "bad-request" error.

func NewUpdateNoteBadRequestResponseBody

func NewUpdateNoteBadRequestResponseBody(res *goa.ServiceError) *UpdateNoteBadRequestResponseBody

NewUpdateNoteBadRequestResponseBody builds the HTTP response body from the result of the "update note" endpoint of the "station_note" service.

type UpdateNoteForbiddenResponseBody

type UpdateNoteForbiddenResponseBody 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"`
}

UpdateNoteForbiddenResponseBody is the type of the "station_note" service "update note" endpoint HTTP response body for the "forbidden" error.

func NewUpdateNoteForbiddenResponseBody

func NewUpdateNoteForbiddenResponseBody(res *goa.ServiceError) *UpdateNoteForbiddenResponseBody

NewUpdateNoteForbiddenResponseBody builds the HTTP response body from the result of the "update note" endpoint of the "station_note" service.

type UpdateNoteNotFoundResponseBody

type UpdateNoteNotFoundResponseBody 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"`
}

UpdateNoteNotFoundResponseBody is the type of the "station_note" service "update note" endpoint HTTP response body for the "not-found" error.

func NewUpdateNoteNotFoundResponseBody

func NewUpdateNoteNotFoundResponseBody(res *goa.ServiceError) *UpdateNoteNotFoundResponseBody

NewUpdateNoteNotFoundResponseBody builds the HTTP response body from the result of the "update note" endpoint of the "station_note" service.

type UpdateNoteRequestBody

type UpdateNoteRequestBody struct {
	Body *string `form:"body,omitempty" json:"body,omitempty" xml:"body,omitempty"`
}

UpdateNoteRequestBody is the type of the "station_note" service "update note" endpoint HTTP request body.

type UpdateNoteResponseBody

type UpdateNoteResponseBody struct {
	ID        int32                          `form:"id" json:"id" xml:"id"`
	CreatedAt int64                          `form:"createdAt" json:"createdAt" xml:"createdAt"`
	UpdatedAt int64                          `form:"updatedAt" json:"updatedAt" xml:"updatedAt"`
	Author    *StationNoteAuthorResponseBody `form:"author" json:"author" xml:"author"`
	Body      string                         `form:"body" json:"body" xml:"body"`
}

UpdateNoteResponseBody is the type of the "station_note" service "update note" endpoint HTTP response body.

func NewUpdateNoteResponseBody

func NewUpdateNoteResponseBody(res *stationnoteviews.StationNoteView) *UpdateNoteResponseBody

NewUpdateNoteResponseBody builds the HTTP response body from the result of the "update note" endpoint of the "station_note" service.

type UpdateNoteUnauthorizedResponseBody

type UpdateNoteUnauthorizedResponseBody 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"`
}

UpdateNoteUnauthorizedResponseBody is the type of the "station_note" service "update note" endpoint HTTP response body for the "unauthorized" error.

func NewUpdateNoteUnauthorizedResponseBody

func NewUpdateNoteUnauthorizedResponseBody(res *goa.ServiceError) *UpdateNoteUnauthorizedResponseBody

NewUpdateNoteUnauthorizedResponseBody builds the HTTP response body from the result of the "update note" endpoint of the "station_note" service.

Jump to

Keyboard shortcuts

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