client

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: 13 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 BuildAddNotePayload

func BuildAddNotePayload(stationNoteAddNoteBody string, stationNoteAddNoteStationID string, stationNoteAddNoteAuth string) (*stationnote.AddNotePayload, error)

BuildAddNotePayload builds the payload for the station_note add note endpoint from CLI flags.

func BuildDeleteNotePayload

func BuildDeleteNotePayload(stationNoteDeleteNoteStationID string, stationNoteDeleteNoteStationNoteID string, stationNoteDeleteNoteAuth string) (*stationnote.DeleteNotePayload, error)

BuildDeleteNotePayload builds the payload for the station_note delete note endpoint from CLI flags.

func BuildStationPayload

func BuildStationPayload(stationNoteStationStationID string, stationNoteStationAuth string) (*stationnote.StationPayload, error)

BuildStationPayload builds the payload for the station_note station endpoint from CLI flags.

func BuildUpdateNotePayload

func BuildUpdateNotePayload(stationNoteUpdateNoteBody string, stationNoteUpdateNoteStationID string, stationNoteUpdateNoteStationNoteID string, stationNoteUpdateNoteAuth string) (*stationnote.UpdateNotePayload, error)

BuildUpdateNotePayload builds the payload for the station_note update note endpoint from CLI flags.

func DecodeAddNoteResponse

func DecodeAddNoteResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)

DecodeAddNoteResponse returns a decoder for responses returned by the station_note add note endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeAddNoteResponse may return the following errors:

  • "unauthorized" (type *goa.ServiceError): http.StatusUnauthorized
  • "forbidden" (type *goa.ServiceError): http.StatusForbidden
  • "not-found" (type *goa.ServiceError): http.StatusNotFound
  • "bad-request" (type *goa.ServiceError): http.StatusBadRequest
  • error: internal error

func DecodeDeleteNoteResponse

func DecodeDeleteNoteResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)

DecodeDeleteNoteResponse returns a decoder for responses returned by the station_note delete note endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeDeleteNoteResponse may return the following errors:

  • "unauthorized" (type *goa.ServiceError): http.StatusUnauthorized
  • "forbidden" (type *goa.ServiceError): http.StatusForbidden
  • "not-found" (type *goa.ServiceError): http.StatusNotFound
  • "bad-request" (type *goa.ServiceError): http.StatusBadRequest
  • error: internal error

func DecodeStationResponse

func DecodeStationResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)

DecodeStationResponse returns a decoder for responses returned by the station_note station endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeStationResponse may return the following errors:

  • "unauthorized" (type *goa.ServiceError): http.StatusUnauthorized
  • "forbidden" (type *goa.ServiceError): http.StatusForbidden
  • "not-found" (type *goa.ServiceError): http.StatusNotFound
  • "bad-request" (type *goa.ServiceError): http.StatusBadRequest
  • error: internal error

func DecodeUpdateNoteResponse

func DecodeUpdateNoteResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)

DecodeUpdateNoteResponse returns a decoder for responses returned by the station_note update note endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeUpdateNoteResponse may return the following errors:

  • "unauthorized" (type *goa.ServiceError): http.StatusUnauthorized
  • "forbidden" (type *goa.ServiceError): http.StatusForbidden
  • "not-found" (type *goa.ServiceError): http.StatusNotFound
  • "bad-request" (type *goa.ServiceError): http.StatusBadRequest
  • error: internal error

func DeleteNoteStationNotePath

func DeleteNoteStationNotePath(stationID int32, stationNoteID int32) string

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

func EncodeAddNoteRequest

func EncodeAddNoteRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error

EncodeAddNoteRequest returns an encoder for requests sent to the station_note add note server.

func EncodeDeleteNoteRequest

func EncodeDeleteNoteRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error

EncodeDeleteNoteRequest returns an encoder for requests sent to the station_note delete note server.

func EncodeStationRequest

func EncodeStationRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error

EncodeStationRequest returns an encoder for requests sent to the station_note station server.

func EncodeUpdateNoteRequest

func EncodeUpdateNoteRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error

EncodeUpdateNoteRequest returns an encoder for requests sent to the station_note update note server.

func NewAddNoteBadRequest

func NewAddNoteBadRequest(body *AddNoteBadRequestResponseBody) *goa.ServiceError

NewAddNoteBadRequest builds a station_note service add note endpoint bad-request error.

func NewAddNoteForbidden

func NewAddNoteForbidden(body *AddNoteForbiddenResponseBody) *goa.ServiceError

NewAddNoteForbidden builds a station_note service add note endpoint forbidden error.

func NewAddNoteNotFound

func NewAddNoteNotFound(body *AddNoteNotFoundResponseBody) *goa.ServiceError

NewAddNoteNotFound builds a station_note service add note endpoint not-found error.

func NewAddNoteStationNoteOK

func NewAddNoteStationNoteOK(body *AddNoteResponseBody) *stationnoteviews.StationNoteView

NewAddNoteStationNoteOK builds a "station_note" service "add note" endpoint result from a HTTP "OK" response.

func NewAddNoteUnauthorized

func NewAddNoteUnauthorized(body *AddNoteUnauthorizedResponseBody) *goa.ServiceError

NewAddNoteUnauthorized builds a station_note service add note endpoint unauthorized error.

func NewDeleteNoteBadRequest

func NewDeleteNoteBadRequest(body *DeleteNoteBadRequestResponseBody) *goa.ServiceError

NewDeleteNoteBadRequest builds a station_note service delete note endpoint bad-request error.

func NewDeleteNoteForbidden

func NewDeleteNoteForbidden(body *DeleteNoteForbiddenResponseBody) *goa.ServiceError

NewDeleteNoteForbidden builds a station_note service delete note endpoint forbidden error.

func NewDeleteNoteNotFound

func NewDeleteNoteNotFound(body *DeleteNoteNotFoundResponseBody) *goa.ServiceError

NewDeleteNoteNotFound builds a station_note service delete note endpoint not-found error.

func NewDeleteNoteUnauthorized

func NewDeleteNoteUnauthorized(body *DeleteNoteUnauthorizedResponseBody) *goa.ServiceError

NewDeleteNoteUnauthorized builds a station_note service delete note endpoint unauthorized error.

func NewStationBadRequest

func NewStationBadRequest(body *StationBadRequestResponseBody) *goa.ServiceError

NewStationBadRequest builds a station_note service station endpoint bad-request error.

func NewStationForbidden

func NewStationForbidden(body *StationForbiddenResponseBody) *goa.ServiceError

NewStationForbidden builds a station_note service station endpoint forbidden error.

func NewStationNotFound

func NewStationNotFound(body *StationNotFoundResponseBody) *goa.ServiceError

NewStationNotFound builds a station_note service station endpoint not-found error.

func NewStationNotesViewOK

func NewStationNotesViewOK(body *StationResponseBody) *stationnoteviews.StationNotesView

NewStationNotesViewOK builds a "station_note" service "station" endpoint result from a HTTP "OK" response.

func NewStationUnauthorized

func NewStationUnauthorized(body *StationUnauthorizedResponseBody) *goa.ServiceError

NewStationUnauthorized builds a station_note service station endpoint unauthorized error.

func NewUpdateNoteBadRequest

func NewUpdateNoteBadRequest(body *UpdateNoteBadRequestResponseBody) *goa.ServiceError

NewUpdateNoteBadRequest builds a station_note service update note endpoint bad-request error.

func NewUpdateNoteForbidden

func NewUpdateNoteForbidden(body *UpdateNoteForbiddenResponseBody) *goa.ServiceError

NewUpdateNoteForbidden builds a station_note service update note endpoint forbidden error.

func NewUpdateNoteNotFound

func NewUpdateNoteNotFound(body *UpdateNoteNotFoundResponseBody) *goa.ServiceError

NewUpdateNoteNotFound builds a station_note service update note endpoint not-found error.

func NewUpdateNoteStationNoteOK

func NewUpdateNoteStationNoteOK(body *UpdateNoteResponseBody) *stationnoteviews.StationNoteView

NewUpdateNoteStationNoteOK builds a "station_note" service "update note" endpoint result from a HTTP "OK" response.

func NewUpdateNoteUnauthorized

func NewUpdateNoteUnauthorized(body *UpdateNoteUnauthorizedResponseBody) *goa.ServiceError

NewUpdateNoteUnauthorized builds a station_note service update note endpoint unauthorized error.

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 ValidateAddNoteBadRequestResponseBody

func ValidateAddNoteBadRequestResponseBody(body *AddNoteBadRequestResponseBody) (err error)

ValidateAddNoteBadRequestResponseBody runs the validations defined on add note_bad-request_response_body

func ValidateAddNoteForbiddenResponseBody

func ValidateAddNoteForbiddenResponseBody(body *AddNoteForbiddenResponseBody) (err error)

ValidateAddNoteForbiddenResponseBody runs the validations defined on add note_forbidden_response_body

func ValidateAddNoteNotFoundResponseBody

func ValidateAddNoteNotFoundResponseBody(body *AddNoteNotFoundResponseBody) (err error)

ValidateAddNoteNotFoundResponseBody runs the validations defined on add note_not-found_response_body

func ValidateAddNoteUnauthorizedResponseBody

func ValidateAddNoteUnauthorizedResponseBody(body *AddNoteUnauthorizedResponseBody) (err error)

ValidateAddNoteUnauthorizedResponseBody runs the validations defined on add note_unauthorized_response_body

func ValidateDeleteNoteBadRequestResponseBody

func ValidateDeleteNoteBadRequestResponseBody(body *DeleteNoteBadRequestResponseBody) (err error)

ValidateDeleteNoteBadRequestResponseBody runs the validations defined on delete note_bad-request_response_body

func ValidateDeleteNoteForbiddenResponseBody

func ValidateDeleteNoteForbiddenResponseBody(body *DeleteNoteForbiddenResponseBody) (err error)

ValidateDeleteNoteForbiddenResponseBody runs the validations defined on delete note_forbidden_response_body

func ValidateDeleteNoteNotFoundResponseBody

func ValidateDeleteNoteNotFoundResponseBody(body *DeleteNoteNotFoundResponseBody) (err error)

ValidateDeleteNoteNotFoundResponseBody runs the validations defined on delete note_not-found_response_body

func ValidateDeleteNoteUnauthorizedResponseBody

func ValidateDeleteNoteUnauthorizedResponseBody(body *DeleteNoteUnauthorizedResponseBody) (err error)

ValidateDeleteNoteUnauthorizedResponseBody runs the validations defined on delete note_unauthorized_response_body

func ValidateStationBadRequestResponseBody

func ValidateStationBadRequestResponseBody(body *StationBadRequestResponseBody) (err error)

ValidateStationBadRequestResponseBody runs the validations defined on station_bad-request_response_body

func ValidateStationForbiddenResponseBody

func ValidateStationForbiddenResponseBody(body *StationForbiddenResponseBody) (err error)

ValidateStationForbiddenResponseBody runs the validations defined on station_forbidden_response_body

func ValidateStationNotFoundResponseBody

func ValidateStationNotFoundResponseBody(body *StationNotFoundResponseBody) (err error)

ValidateStationNotFoundResponseBody runs the validations defined on station_not-found_response_body

func ValidateStationNoteAuthorPhotoResponseBody

func ValidateStationNoteAuthorPhotoResponseBody(body *StationNoteAuthorPhotoResponseBody) (err error)

ValidateStationNoteAuthorPhotoResponseBody runs the validations defined on StationNoteAuthorPhotoResponseBody

func ValidateStationNoteAuthorResponseBody

func ValidateStationNoteAuthorResponseBody(body *StationNoteAuthorResponseBody) (err error)

ValidateStationNoteAuthorResponseBody runs the validations defined on StationNoteAuthorResponseBody

func ValidateStationNoteResponseBody

func ValidateStationNoteResponseBody(body *StationNoteResponseBody) (err error)

ValidateStationNoteResponseBody runs the validations defined on StationNoteResponseBody

func ValidateStationUnauthorizedResponseBody

func ValidateStationUnauthorizedResponseBody(body *StationUnauthorizedResponseBody) (err error)

ValidateStationUnauthorizedResponseBody runs the validations defined on station_unauthorized_response_body

func ValidateUpdateNoteBadRequestResponseBody

func ValidateUpdateNoteBadRequestResponseBody(body *UpdateNoteBadRequestResponseBody) (err error)

ValidateUpdateNoteBadRequestResponseBody runs the validations defined on update note_bad-request_response_body

func ValidateUpdateNoteForbiddenResponseBody

func ValidateUpdateNoteForbiddenResponseBody(body *UpdateNoteForbiddenResponseBody) (err error)

ValidateUpdateNoteForbiddenResponseBody runs the validations defined on update note_forbidden_response_body

func ValidateUpdateNoteNotFoundResponseBody

func ValidateUpdateNoteNotFoundResponseBody(body *UpdateNoteNotFoundResponseBody) (err error)

ValidateUpdateNoteNotFoundResponseBody runs the validations defined on update note_not-found_response_body

func ValidateUpdateNoteUnauthorizedResponseBody

func ValidateUpdateNoteUnauthorizedResponseBody(body *UpdateNoteUnauthorizedResponseBody) (err error)

ValidateUpdateNoteUnauthorizedResponseBody runs the validations defined on update note_unauthorized_response_body

Types

type AddNoteBadRequestResponseBody

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

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

type AddNoteForbiddenResponseBody

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

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

type AddNoteNotFoundResponseBody

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

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

type AddNoteRequestBody

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

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

func NewAddNoteRequestBody

func NewAddNoteRequestBody(p *stationnote.AddNotePayload) *AddNoteRequestBody

NewAddNoteRequestBody builds the HTTP request body from the payload of the "add note" endpoint of the "station_note" service.

type AddNoteResponseBody

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

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

type AddNoteUnauthorizedResponseBody

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

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

type Client

type Client struct {
	// Station Doer is the HTTP client used to make requests to the station
	// endpoint.
	StationDoer goahttp.Doer

	// AddNote Doer is the HTTP client used to make requests to the add note
	// endpoint.
	AddNoteDoer goahttp.Doer

	// UpdateNote Doer is the HTTP client used to make requests to the update note
	// endpoint.
	UpdateNoteDoer goahttp.Doer

	// DeleteNote Doer is the HTTP client used to make requests to the delete note
	// endpoint.
	DeleteNoteDoer goahttp.Doer

	// CORS Doer is the HTTP client used to make requests to the  endpoint.
	CORSDoer goahttp.Doer

	// RestoreResponseBody controls whether the response bodies are reset after
	// decoding so they can be read again.
	RestoreResponseBody bool
	// contains filtered or unexported fields
}

Client lists the station_note service endpoint HTTP clients.

func NewClient

func NewClient(
	scheme string,
	host string,
	doer goahttp.Doer,
	enc func(*http.Request) goahttp.Encoder,
	dec func(*http.Response) goahttp.Decoder,
	restoreBody bool,
) *Client

NewClient instantiates HTTP clients for all the station_note service servers.

func (*Client) AddNote

func (c *Client) AddNote() goa.Endpoint

AddNote returns an endpoint that makes HTTP requests to the station_note service add note server.

func (*Client) BuildAddNoteRequest

func (c *Client) BuildAddNoteRequest(ctx context.Context, v interface{}) (*http.Request, error)

BuildAddNoteRequest instantiates a HTTP request object with method and path set to call the "station_note" service "add note" endpoint

func (*Client) BuildDeleteNoteRequest

func (c *Client) BuildDeleteNoteRequest(ctx context.Context, v interface{}) (*http.Request, error)

BuildDeleteNoteRequest instantiates a HTTP request object with method and path set to call the "station_note" service "delete note" endpoint

func (*Client) BuildStationRequest

func (c *Client) BuildStationRequest(ctx context.Context, v interface{}) (*http.Request, error)

BuildStationRequest instantiates a HTTP request object with method and path set to call the "station_note" service "station" endpoint

func (*Client) BuildUpdateNoteRequest

func (c *Client) BuildUpdateNoteRequest(ctx context.Context, v interface{}) (*http.Request, error)

BuildUpdateNoteRequest instantiates a HTTP request object with method and path set to call the "station_note" service "update note" endpoint

func (*Client) DeleteNote

func (c *Client) DeleteNote() goa.Endpoint

DeleteNote returns an endpoint that makes HTTP requests to the station_note service delete note server.

func (*Client) Station

func (c *Client) Station() goa.Endpoint

Station returns an endpoint that makes HTTP requests to the station_note service station server.

func (*Client) UpdateNote

func (c *Client) UpdateNote() goa.Endpoint

UpdateNote returns an endpoint that makes HTTP requests to the station_note service update note server.

type DeleteNoteBadRequestResponseBody

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

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

type DeleteNoteForbiddenResponseBody

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

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

type DeleteNoteNotFoundResponseBody

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

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

type DeleteNoteUnauthorizedResponseBody

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

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

type StationBadRequestResponseBody

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

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

type StationForbiddenResponseBody

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

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

type StationNotFoundResponseBody

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

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

type StationNoteAuthorPhotoResponseBody

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

StationNoteAuthorPhotoResponseBody is used to define fields on response body types.

type StationNoteAuthorResponseBody

type StationNoteAuthorResponseBody struct {
	ID    *int32                              `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	Name  *string                             `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	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,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	CreatedAt *int64                         `form:"createdAt,omitempty" json:"createdAt,omitempty" xml:"createdAt,omitempty"`
	UpdatedAt *int64                         `form:"updatedAt,omitempty" json:"updatedAt,omitempty" xml:"updatedAt,omitempty"`
	Author    *StationNoteAuthorResponseBody `form:"author,omitempty" json:"author,omitempty" xml:"author,omitempty"`
	Body      *string                        `form:"body,omitempty" json:"body,omitempty" xml:"body,omitempty"`
}

StationNoteResponseBody is used to define fields on response body types.

type StationResponseBody

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

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

type StationUnauthorizedResponseBody

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

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

type UpdateNoteBadRequestResponseBody

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

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

type UpdateNoteForbiddenResponseBody

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

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

type UpdateNoteNotFoundResponseBody

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

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

type UpdateNoteRequestBody

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

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

func NewUpdateNoteRequestBody

func NewUpdateNoteRequestBody(p *stationnote.UpdateNotePayload) *UpdateNoteRequestBody

NewUpdateNoteRequestBody builds the HTTP request body from the payload of the "update note" endpoint of the "station_note" service.

type UpdateNoteResponseBody

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

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

type UpdateNoteUnauthorizedResponseBody

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

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

Jump to

Keyboard shortcuts

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