Documentation ¶
Index ¶
- func BuildDeleteMediaPayload(notesDeleteMediaMediaID string, notesDeleteMediaAuth string) (*notes.DeleteMediaPayload, error)
- func BuildDownloadMediaPayload(notesDownloadMediaMediaID string, notesDownloadMediaAuth string) (*notes.DownloadMediaPayload, error)
- func BuildGetPayload(notesGetStationID string, notesGetAuth string) (*notes.GetPayload, error)
- func BuildUpdatePayload(notesUpdateBody string, notesUpdateStationID string, notesUpdateAuth string) (*notes.UpdatePayload, error)
- func BuildUploadMediaPayload(notesUploadMediaStationID string, notesUploadMediaKey string, ...) (*notes.UploadMediaPayload, error)
- func BuildUploadMediaStreamPayload(payload interface{}, fpath string) (*notes.UploadMediaRequestData, error)
- func DecodeDeleteMediaResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
- func DecodeDownloadMediaResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
- func DecodeGetResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
- func DecodeUpdateResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
- func DecodeUploadMediaResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
- func DeleteMediaNotesPath(mediaID int32) string
- func DownloadMediaNotesPath(mediaID int32) string
- func EncodeDeleteMediaRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
- func EncodeDownloadMediaRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
- func EncodeGetRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
- func EncodeUpdateRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
- func EncodeUploadMediaRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
- func GetNotesPath(stationID int32) string
- func NewDeleteMediaBadRequest(body *DeleteMediaBadRequestResponseBody) *goa.ServiceError
- func NewDeleteMediaForbidden(body *DeleteMediaForbiddenResponseBody) *goa.ServiceError
- func NewDeleteMediaNotFound(body *DeleteMediaNotFoundResponseBody) *goa.ServiceError
- func NewDeleteMediaUnauthorized(body *DeleteMediaUnauthorizedResponseBody) *goa.ServiceError
- func NewDownloadMediaBadRequest(body *DownloadMediaBadRequestResponseBody) *goa.ServiceError
- func NewDownloadMediaForbidden(body *DownloadMediaForbiddenResponseBody) *goa.ServiceError
- func NewDownloadMediaNotFound(body *DownloadMediaNotFoundResponseBody) *goa.ServiceError
- func NewDownloadMediaResultOK(length int64, contentType string) *notes.DownloadMediaResult
- func NewDownloadMediaUnauthorized(body *DownloadMediaUnauthorizedResponseBody) *goa.ServiceError
- func NewGetBadRequest(body *GetBadRequestResponseBody) *goa.ServiceError
- func NewGetFieldNotesOK(body *GetResponseBody) *notesviews.FieldNotesView
- func NewGetForbidden(body *GetForbiddenResponseBody) *goa.ServiceError
- func NewGetNotFound(body *GetNotFoundResponseBody) *goa.ServiceError
- func NewGetUnauthorized(body *GetUnauthorizedResponseBody) *goa.ServiceError
- func NewUpdateBadRequest(body *UpdateBadRequestResponseBody) *goa.ServiceError
- func NewUpdateFieldNotesOK(body *UpdateResponseBody) *notesviews.FieldNotesView
- func NewUpdateForbidden(body *UpdateForbiddenResponseBody) *goa.ServiceError
- func NewUpdateNotFound(body *UpdateNotFoundResponseBody) *goa.ServiceError
- func NewUpdateUnauthorized(body *UpdateUnauthorizedResponseBody) *goa.ServiceError
- func NewUploadMediaBadRequest(body *UploadMediaBadRequestResponseBody) *goa.ServiceError
- func NewUploadMediaForbidden(body *UploadMediaForbiddenResponseBody) *goa.ServiceError
- func NewUploadMediaNotFound(body *UploadMediaNotFoundResponseBody) *goa.ServiceError
- func NewUploadMediaNoteMediaOK(body *UploadMediaResponseBody) *notesviews.NoteMediaView
- func NewUploadMediaUnauthorized(body *UploadMediaUnauthorizedResponseBody) *goa.ServiceError
- func UpdateNotesPath(stationID int32) string
- func UploadMediaNotesPath(stationID int32) string
- func ValidateDeleteMediaBadRequestResponseBody(body *DeleteMediaBadRequestResponseBody) (err error)
- func ValidateDeleteMediaForbiddenResponseBody(body *DeleteMediaForbiddenResponseBody) (err error)
- func ValidateDeleteMediaNotFoundResponseBody(body *DeleteMediaNotFoundResponseBody) (err error)
- func ValidateDeleteMediaUnauthorizedResponseBody(body *DeleteMediaUnauthorizedResponseBody) (err error)
- func ValidateDownloadMediaBadRequestResponseBody(body *DownloadMediaBadRequestResponseBody) (err error)
- func ValidateDownloadMediaForbiddenResponseBody(body *DownloadMediaForbiddenResponseBody) (err error)
- func ValidateDownloadMediaNotFoundResponseBody(body *DownloadMediaNotFoundResponseBody) (err error)
- func ValidateDownloadMediaUnauthorizedResponseBody(body *DownloadMediaUnauthorizedResponseBody) (err error)
- func ValidateFieldNoteAuthorResponseBody(body *FieldNoteAuthorResponseBody) (err error)
- func ValidateFieldNoteResponseBody(body *FieldNoteResponseBody) (err error)
- func ValidateFieldNoteStationResponseBody(body *FieldNoteStationResponseBody) (err error)
- func ValidateFieldNoteUpdateRequestBody(body *FieldNoteUpdateRequestBody) (err error)
- func ValidateGetBadRequestResponseBody(body *GetBadRequestResponseBody) (err error)
- func ValidateGetForbiddenResponseBody(body *GetForbiddenResponseBody) (err error)
- func ValidateGetNotFoundResponseBody(body *GetNotFoundResponseBody) (err error)
- func ValidateGetUnauthorizedResponseBody(body *GetUnauthorizedResponseBody) (err error)
- func ValidateNoteMediaResponseBody(body *NoteMediaResponseBody) (err error)
- func ValidateUpdateBadRequestResponseBody(body *UpdateBadRequestResponseBody) (err error)
- func ValidateUpdateForbiddenResponseBody(body *UpdateForbiddenResponseBody) (err error)
- func ValidateUpdateNotFoundResponseBody(body *UpdateNotFoundResponseBody) (err error)
- func ValidateUpdateUnauthorizedResponseBody(body *UpdateUnauthorizedResponseBody) (err error)
- func ValidateUploadMediaBadRequestResponseBody(body *UploadMediaBadRequestResponseBody) (err error)
- func ValidateUploadMediaForbiddenResponseBody(body *UploadMediaForbiddenResponseBody) (err error)
- func ValidateUploadMediaNotFoundResponseBody(body *UploadMediaNotFoundResponseBody) (err error)
- func ValidateUploadMediaUnauthorizedResponseBody(body *UploadMediaUnauthorizedResponseBody) (err error)
- type Client
- func (c *Client) BuildDeleteMediaRequest(ctx context.Context, v interface{}) (*http.Request, error)
- func (c *Client) BuildDownloadMediaRequest(ctx context.Context, v interface{}) (*http.Request, error)
- func (c *Client) BuildGetRequest(ctx context.Context, v interface{}) (*http.Request, error)
- func (c *Client) BuildUpdateRequest(ctx context.Context, v interface{}) (*http.Request, error)
- func (c *Client) BuildUploadMediaRequest(ctx context.Context, v interface{}) (*http.Request, error)
- func (c *Client) DeleteMedia() goa.Endpoint
- func (c *Client) DownloadMedia() goa.Endpoint
- func (c *Client) Get() goa.Endpoint
- func (c *Client) Update() goa.Endpoint
- func (c *Client) UploadMedia() goa.Endpoint
- type DeleteMediaBadRequestResponseBody
- type DeleteMediaForbiddenResponseBody
- type DeleteMediaNotFoundResponseBody
- type DeleteMediaUnauthorizedResponseBody
- type DownloadMediaBadRequestResponseBody
- type DownloadMediaForbiddenResponseBody
- type DownloadMediaNotFoundResponseBody
- type DownloadMediaUnauthorizedResponseBody
- type ExistingFieldNoteRequestBody
- type FieldNoteAuthorResponseBody
- type FieldNoteResponseBody
- type FieldNoteStationResponseBody
- type FieldNoteUpdateRequestBody
- type GetBadRequestResponseBody
- type GetForbiddenResponseBody
- type GetNotFoundResponseBody
- type GetResponseBody
- type GetUnauthorizedResponseBody
- type NewFieldNoteRequestBody
- type NoteMediaResponseBody
- type UpdateBadRequestResponseBody
- type UpdateForbiddenResponseBody
- type UpdateNotFoundResponseBody
- type UpdateRequestBody
- type UpdateResponseBody
- type UpdateUnauthorizedResponseBody
- type UploadMediaBadRequestResponseBody
- type UploadMediaForbiddenResponseBody
- type UploadMediaNotFoundResponseBody
- type UploadMediaResponseBody
- type UploadMediaUnauthorizedResponseBody
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildDeleteMediaPayload ¶
func BuildDeleteMediaPayload(notesDeleteMediaMediaID string, notesDeleteMediaAuth string) (*notes.DeleteMediaPayload, error)
BuildDeleteMediaPayload builds the payload for the notes delete media endpoint from CLI flags.
func BuildDownloadMediaPayload ¶
func BuildDownloadMediaPayload(notesDownloadMediaMediaID string, notesDownloadMediaAuth string) (*notes.DownloadMediaPayload, error)
BuildDownloadMediaPayload builds the payload for the notes download media endpoint from CLI flags.
func BuildGetPayload ¶
func BuildGetPayload(notesGetStationID string, notesGetAuth string) (*notes.GetPayload, error)
BuildGetPayload builds the payload for the notes get endpoint from CLI flags.
func BuildUpdatePayload ¶
func BuildUpdatePayload(notesUpdateBody string, notesUpdateStationID string, notesUpdateAuth string) (*notes.UpdatePayload, error)
BuildUpdatePayload builds the payload for the notes update endpoint from CLI flags.
func BuildUploadMediaPayload ¶
func BuildUploadMediaPayload(notesUploadMediaStationID string, notesUploadMediaKey string, notesUploadMediaContentType string, notesUploadMediaContentLength string, notesUploadMediaAuth string) (*notes.UploadMediaPayload, error)
BuildUploadMediaPayload builds the payload for the notes upload media endpoint from CLI flags.
func BuildUploadMediaStreamPayload ¶
func BuildUploadMediaStreamPayload(payload interface{}, fpath string) (*notes.UploadMediaRequestData, error)
// BuildUploadMediaStreamPayload creates a streaming endpoint request payload from the method payload and the path to the file to be streamed
func DecodeDeleteMediaResponse ¶
func DecodeDeleteMediaResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
DecodeDeleteMediaResponse returns a decoder for responses returned by the notes delete media endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeDeleteMediaResponse 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 DecodeDownloadMediaResponse ¶
func DecodeDownloadMediaResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
DecodeDownloadMediaResponse returns a decoder for responses returned by the notes download media endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeDownloadMediaResponse 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 DecodeGetResponse ¶
func DecodeGetResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
DecodeGetResponse returns a decoder for responses returned by the notes get endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeGetResponse 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 DecodeUpdateResponse ¶
func DecodeUpdateResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
DecodeUpdateResponse returns a decoder for responses returned by the notes update endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeUpdateResponse 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 DecodeUploadMediaResponse ¶
func DecodeUploadMediaResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
DecodeUploadMediaResponse returns a decoder for responses returned by the notes upload media endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeUploadMediaResponse 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 DeleteMediaNotesPath ¶
DeleteMediaNotesPath returns the URL path to the notes service delete media HTTP endpoint.
func DownloadMediaNotesPath ¶
DownloadMediaNotesPath returns the URL path to the notes service download media HTTP endpoint.
func EncodeDeleteMediaRequest ¶
func EncodeDeleteMediaRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
EncodeDeleteMediaRequest returns an encoder for requests sent to the notes delete media server.
func EncodeDownloadMediaRequest ¶
func EncodeDownloadMediaRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
EncodeDownloadMediaRequest returns an encoder for requests sent to the notes download media server.
func EncodeGetRequest ¶
func EncodeGetRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
EncodeGetRequest returns an encoder for requests sent to the notes get server.
func EncodeUpdateRequest ¶
func EncodeUpdateRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
EncodeUpdateRequest returns an encoder for requests sent to the notes update server.
func EncodeUploadMediaRequest ¶
func EncodeUploadMediaRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
EncodeUploadMediaRequest returns an encoder for requests sent to the notes upload media server.
func GetNotesPath ¶
GetNotesPath returns the URL path to the notes service get HTTP endpoint.
func NewDeleteMediaBadRequest ¶
func NewDeleteMediaBadRequest(body *DeleteMediaBadRequestResponseBody) *goa.ServiceError
NewDeleteMediaBadRequest builds a notes service delete media endpoint bad-request error.
func NewDeleteMediaForbidden ¶
func NewDeleteMediaForbidden(body *DeleteMediaForbiddenResponseBody) *goa.ServiceError
NewDeleteMediaForbidden builds a notes service delete media endpoint forbidden error.
func NewDeleteMediaNotFound ¶
func NewDeleteMediaNotFound(body *DeleteMediaNotFoundResponseBody) *goa.ServiceError
NewDeleteMediaNotFound builds a notes service delete media endpoint not-found error.
func NewDeleteMediaUnauthorized ¶
func NewDeleteMediaUnauthorized(body *DeleteMediaUnauthorizedResponseBody) *goa.ServiceError
NewDeleteMediaUnauthorized builds a notes service delete media endpoint unauthorized error.
func NewDownloadMediaBadRequest ¶
func NewDownloadMediaBadRequest(body *DownloadMediaBadRequestResponseBody) *goa.ServiceError
NewDownloadMediaBadRequest builds a notes service download media endpoint bad-request error.
func NewDownloadMediaForbidden ¶
func NewDownloadMediaForbidden(body *DownloadMediaForbiddenResponseBody) *goa.ServiceError
NewDownloadMediaForbidden builds a notes service download media endpoint forbidden error.
func NewDownloadMediaNotFound ¶
func NewDownloadMediaNotFound(body *DownloadMediaNotFoundResponseBody) *goa.ServiceError
NewDownloadMediaNotFound builds a notes service download media endpoint not-found error.
func NewDownloadMediaResultOK ¶
func NewDownloadMediaResultOK(length int64, contentType string) *notes.DownloadMediaResult
NewDownloadMediaResultOK builds a "notes" service "download media" endpoint result from a HTTP "OK" response.
func NewDownloadMediaUnauthorized ¶
func NewDownloadMediaUnauthorized(body *DownloadMediaUnauthorizedResponseBody) *goa.ServiceError
NewDownloadMediaUnauthorized builds a notes service download media endpoint unauthorized error.
func NewGetBadRequest ¶
func NewGetBadRequest(body *GetBadRequestResponseBody) *goa.ServiceError
NewGetBadRequest builds a notes service get endpoint bad-request error.
func NewGetFieldNotesOK ¶
func NewGetFieldNotesOK(body *GetResponseBody) *notesviews.FieldNotesView
NewGetFieldNotesOK builds a "notes" service "get" endpoint result from a HTTP "OK" response.
func NewGetForbidden ¶
func NewGetForbidden(body *GetForbiddenResponseBody) *goa.ServiceError
NewGetForbidden builds a notes service get endpoint forbidden error.
func NewGetNotFound ¶
func NewGetNotFound(body *GetNotFoundResponseBody) *goa.ServiceError
NewGetNotFound builds a notes service get endpoint not-found error.
func NewGetUnauthorized ¶
func NewGetUnauthorized(body *GetUnauthorizedResponseBody) *goa.ServiceError
NewGetUnauthorized builds a notes service get endpoint unauthorized error.
func NewUpdateBadRequest ¶
func NewUpdateBadRequest(body *UpdateBadRequestResponseBody) *goa.ServiceError
NewUpdateBadRequest builds a notes service update endpoint bad-request error.
func NewUpdateFieldNotesOK ¶
func NewUpdateFieldNotesOK(body *UpdateResponseBody) *notesviews.FieldNotesView
NewUpdateFieldNotesOK builds a "notes" service "update" endpoint result from a HTTP "OK" response.
func NewUpdateForbidden ¶
func NewUpdateForbidden(body *UpdateForbiddenResponseBody) *goa.ServiceError
NewUpdateForbidden builds a notes service update endpoint forbidden error.
func NewUpdateNotFound ¶
func NewUpdateNotFound(body *UpdateNotFoundResponseBody) *goa.ServiceError
NewUpdateNotFound builds a notes service update endpoint not-found error.
func NewUpdateUnauthorized ¶
func NewUpdateUnauthorized(body *UpdateUnauthorizedResponseBody) *goa.ServiceError
NewUpdateUnauthorized builds a notes service update endpoint unauthorized error.
func NewUploadMediaBadRequest ¶
func NewUploadMediaBadRequest(body *UploadMediaBadRequestResponseBody) *goa.ServiceError
NewUploadMediaBadRequest builds a notes service upload media endpoint bad-request error.
func NewUploadMediaForbidden ¶
func NewUploadMediaForbidden(body *UploadMediaForbiddenResponseBody) *goa.ServiceError
NewUploadMediaForbidden builds a notes service upload media endpoint forbidden error.
func NewUploadMediaNotFound ¶
func NewUploadMediaNotFound(body *UploadMediaNotFoundResponseBody) *goa.ServiceError
NewUploadMediaNotFound builds a notes service upload media endpoint not-found error.
func NewUploadMediaNoteMediaOK ¶
func NewUploadMediaNoteMediaOK(body *UploadMediaResponseBody) *notesviews.NoteMediaView
NewUploadMediaNoteMediaOK builds a "notes" service "upload media" endpoint result from a HTTP "OK" response.
func NewUploadMediaUnauthorized ¶
func NewUploadMediaUnauthorized(body *UploadMediaUnauthorizedResponseBody) *goa.ServiceError
NewUploadMediaUnauthorized builds a notes service upload media endpoint unauthorized error.
func UpdateNotesPath ¶
UpdateNotesPath returns the URL path to the notes service update HTTP endpoint.
func UploadMediaNotesPath ¶
UploadMediaNotesPath returns the URL path to the notes service upload media HTTP endpoint.
func ValidateDeleteMediaBadRequestResponseBody ¶
func ValidateDeleteMediaBadRequestResponseBody(body *DeleteMediaBadRequestResponseBody) (err error)
ValidateDeleteMediaBadRequestResponseBody runs the validations defined on delete media_bad-request_response_body
func ValidateDeleteMediaForbiddenResponseBody ¶
func ValidateDeleteMediaForbiddenResponseBody(body *DeleteMediaForbiddenResponseBody) (err error)
ValidateDeleteMediaForbiddenResponseBody runs the validations defined on delete media_forbidden_response_body
func ValidateDeleteMediaNotFoundResponseBody ¶
func ValidateDeleteMediaNotFoundResponseBody(body *DeleteMediaNotFoundResponseBody) (err error)
ValidateDeleteMediaNotFoundResponseBody runs the validations defined on delete media_not-found_response_body
func ValidateDeleteMediaUnauthorizedResponseBody ¶
func ValidateDeleteMediaUnauthorizedResponseBody(body *DeleteMediaUnauthorizedResponseBody) (err error)
ValidateDeleteMediaUnauthorizedResponseBody runs the validations defined on delete media_unauthorized_response_body
func ValidateDownloadMediaBadRequestResponseBody ¶
func ValidateDownloadMediaBadRequestResponseBody(body *DownloadMediaBadRequestResponseBody) (err error)
ValidateDownloadMediaBadRequestResponseBody runs the validations defined on download media_bad-request_response_body
func ValidateDownloadMediaForbiddenResponseBody ¶
func ValidateDownloadMediaForbiddenResponseBody(body *DownloadMediaForbiddenResponseBody) (err error)
ValidateDownloadMediaForbiddenResponseBody runs the validations defined on download media_forbidden_response_body
func ValidateDownloadMediaNotFoundResponseBody ¶
func ValidateDownloadMediaNotFoundResponseBody(body *DownloadMediaNotFoundResponseBody) (err error)
ValidateDownloadMediaNotFoundResponseBody runs the validations defined on download media_not-found_response_body
func ValidateDownloadMediaUnauthorizedResponseBody ¶
func ValidateDownloadMediaUnauthorizedResponseBody(body *DownloadMediaUnauthorizedResponseBody) (err error)
ValidateDownloadMediaUnauthorizedResponseBody runs the validations defined on download media_unauthorized_response_body
func ValidateFieldNoteAuthorResponseBody ¶
func ValidateFieldNoteAuthorResponseBody(body *FieldNoteAuthorResponseBody) (err error)
ValidateFieldNoteAuthorResponseBody runs the validations defined on FieldNoteAuthorResponseBody
func ValidateFieldNoteResponseBody ¶
func ValidateFieldNoteResponseBody(body *FieldNoteResponseBody) (err error)
ValidateFieldNoteResponseBody runs the validations defined on FieldNoteResponseBody
func ValidateFieldNoteStationResponseBody ¶
func ValidateFieldNoteStationResponseBody(body *FieldNoteStationResponseBody) (err error)
ValidateFieldNoteStationResponseBody runs the validations defined on FieldNoteStationResponseBody
func ValidateFieldNoteUpdateRequestBody ¶
func ValidateFieldNoteUpdateRequestBody(body *FieldNoteUpdateRequestBody) (err error)
ValidateFieldNoteUpdateRequestBody runs the validations defined on FieldNoteUpdateRequestBody
func ValidateGetBadRequestResponseBody ¶
func ValidateGetBadRequestResponseBody(body *GetBadRequestResponseBody) (err error)
ValidateGetBadRequestResponseBody runs the validations defined on get_bad-request_response_body
func ValidateGetForbiddenResponseBody ¶
func ValidateGetForbiddenResponseBody(body *GetForbiddenResponseBody) (err error)
ValidateGetForbiddenResponseBody runs the validations defined on get_forbidden_response_body
func ValidateGetNotFoundResponseBody ¶
func ValidateGetNotFoundResponseBody(body *GetNotFoundResponseBody) (err error)
ValidateGetNotFoundResponseBody runs the validations defined on get_not-found_response_body
func ValidateGetUnauthorizedResponseBody ¶
func ValidateGetUnauthorizedResponseBody(body *GetUnauthorizedResponseBody) (err error)
ValidateGetUnauthorizedResponseBody runs the validations defined on get_unauthorized_response_body
func ValidateNoteMediaResponseBody ¶
func ValidateNoteMediaResponseBody(body *NoteMediaResponseBody) (err error)
ValidateNoteMediaResponseBody runs the validations defined on NoteMediaResponseBody
func ValidateUpdateBadRequestResponseBody ¶
func ValidateUpdateBadRequestResponseBody(body *UpdateBadRequestResponseBody) (err error)
ValidateUpdateBadRequestResponseBody runs the validations defined on update_bad-request_response_body
func ValidateUpdateForbiddenResponseBody ¶
func ValidateUpdateForbiddenResponseBody(body *UpdateForbiddenResponseBody) (err error)
ValidateUpdateForbiddenResponseBody runs the validations defined on update_forbidden_response_body
func ValidateUpdateNotFoundResponseBody ¶
func ValidateUpdateNotFoundResponseBody(body *UpdateNotFoundResponseBody) (err error)
ValidateUpdateNotFoundResponseBody runs the validations defined on update_not-found_response_body
func ValidateUpdateUnauthorizedResponseBody ¶
func ValidateUpdateUnauthorizedResponseBody(body *UpdateUnauthorizedResponseBody) (err error)
ValidateUpdateUnauthorizedResponseBody runs the validations defined on update_unauthorized_response_body
func ValidateUploadMediaBadRequestResponseBody ¶
func ValidateUploadMediaBadRequestResponseBody(body *UploadMediaBadRequestResponseBody) (err error)
ValidateUploadMediaBadRequestResponseBody runs the validations defined on upload media_bad-request_response_body
func ValidateUploadMediaForbiddenResponseBody ¶
func ValidateUploadMediaForbiddenResponseBody(body *UploadMediaForbiddenResponseBody) (err error)
ValidateUploadMediaForbiddenResponseBody runs the validations defined on upload media_forbidden_response_body
func ValidateUploadMediaNotFoundResponseBody ¶
func ValidateUploadMediaNotFoundResponseBody(body *UploadMediaNotFoundResponseBody) (err error)
ValidateUploadMediaNotFoundResponseBody runs the validations defined on upload media_not-found_response_body
func ValidateUploadMediaUnauthorizedResponseBody ¶
func ValidateUploadMediaUnauthorizedResponseBody(body *UploadMediaUnauthorizedResponseBody) (err error)
ValidateUploadMediaUnauthorizedResponseBody runs the validations defined on upload media_unauthorized_response_body
Types ¶
type Client ¶
type Client struct { // Update Doer is the HTTP client used to make requests to the update endpoint. UpdateDoer goahttp.Doer // Get Doer is the HTTP client used to make requests to the get endpoint. GetDoer goahttp.Doer // DownloadMedia Doer is the HTTP client used to make requests to the download // media endpoint. DownloadMediaDoer goahttp.Doer // UploadMedia Doer is the HTTP client used to make requests to the upload // media endpoint. UploadMediaDoer goahttp.Doer // DeleteMedia Doer is the HTTP client used to make requests to the delete // media endpoint. DeleteMediaDoer 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 notes 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 notes service servers.
func (*Client) BuildDeleteMediaRequest ¶
BuildDeleteMediaRequest instantiates a HTTP request object with method and path set to call the "notes" service "delete media" endpoint
func (*Client) BuildDownloadMediaRequest ¶
func (c *Client) BuildDownloadMediaRequest(ctx context.Context, v interface{}) (*http.Request, error)
BuildDownloadMediaRequest instantiates a HTTP request object with method and path set to call the "notes" service "download media" endpoint
func (*Client) BuildGetRequest ¶
BuildGetRequest instantiates a HTTP request object with method and path set to call the "notes" service "get" endpoint
func (*Client) BuildUpdateRequest ¶
BuildUpdateRequest instantiates a HTTP request object with method and path set to call the "notes" service "update" endpoint
func (*Client) BuildUploadMediaRequest ¶
BuildUploadMediaRequest instantiates a HTTP request object with method and path set to call the "notes" service "upload media" endpoint
func (*Client) DeleteMedia ¶
DeleteMedia returns an endpoint that makes HTTP requests to the notes service delete media server.
func (*Client) DownloadMedia ¶
DownloadMedia returns an endpoint that makes HTTP requests to the notes service download media server.
func (*Client) Get ¶
Get returns an endpoint that makes HTTP requests to the notes service get server.
func (*Client) Update ¶
Update returns an endpoint that makes HTTP requests to the notes service update server.
func (*Client) UploadMedia ¶
UploadMedia returns an endpoint that makes HTTP requests to the notes service upload media server.
type DeleteMediaBadRequestResponseBody ¶
type DeleteMediaBadRequestResponseBody 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"` }
DeleteMediaBadRequestResponseBody is the type of the "notes" service "delete media" endpoint HTTP response body for the "bad-request" error.
type DeleteMediaForbiddenResponseBody ¶
type DeleteMediaForbiddenResponseBody 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"` }
DeleteMediaForbiddenResponseBody is the type of the "notes" service "delete media" endpoint HTTP response body for the "forbidden" error.
type DeleteMediaNotFoundResponseBody ¶
type DeleteMediaNotFoundResponseBody 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"` }
DeleteMediaNotFoundResponseBody is the type of the "notes" service "delete media" endpoint HTTP response body for the "not-found" error.
type DeleteMediaUnauthorizedResponseBody ¶
type DeleteMediaUnauthorizedResponseBody struct { string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` // problem. Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"` Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"` Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"` Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"` }Name *
DeleteMediaUnauthorizedResponseBody is the type of the "notes" service "delete media" endpoint HTTP response body for the "unauthorized" error.
type DownloadMediaBadRequestResponseBody ¶
type DownloadMediaBadRequestResponseBody 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"` }
DownloadMediaBadRequestResponseBody is the type of the "notes" service "download media" endpoint HTTP response body for the "bad-request" error.
type DownloadMediaForbiddenResponseBody ¶
type DownloadMediaForbiddenResponseBody 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"` }
DownloadMediaForbiddenResponseBody is the type of the "notes" service "download media" endpoint HTTP response body for the "forbidden" error.
type DownloadMediaNotFoundResponseBody ¶
type DownloadMediaNotFoundResponseBody 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"` }
DownloadMediaNotFoundResponseBody is the type of the "notes" service "download media" endpoint HTTP response body for the "not-found" error.
type DownloadMediaUnauthorizedResponseBody ¶
type DownloadMediaUnauthorizedResponseBody struct { string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` // problem. Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"` Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"` Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"` Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"` }Name *
DownloadMediaUnauthorizedResponseBody is the type of the "notes" service "download media" endpoint HTTP response body for the "unauthorized" error.
type ExistingFieldNoteRequestBody ¶
type ExistingFieldNoteRequestBody struct { ID int64 `form:"id" json:"id" xml:"id"` Key *string `form:"key,omitempty" json:"key,omitempty" xml:"key,omitempty"` Title *string `form:"title,omitempty" json:"title,omitempty" xml:"title,omitempty"` Body *string `form:"body,omitempty" json:"body,omitempty" xml:"body,omitempty"` MediaIds []int64 `form:"mediaIds,omitempty" json:"mediaIds,omitempty" xml:"mediaIds,omitempty"` }
ExistingFieldNoteRequestBody is used to define fields on request body types.
type FieldNoteAuthorResponseBody ¶
type FieldNoteAuthorResponseBody struct { ID *int32 `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` MediaURL *string `form:"mediaUrl,omitempty" json:"mediaUrl,omitempty" xml:"mediaUrl,omitempty"` }
FieldNoteAuthorResponseBody is used to define fields on response body types.
type FieldNoteResponseBody ¶
type FieldNoteResponseBody struct { ID *int64 `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 *FieldNoteAuthorResponseBody `form:"author,omitempty" json:"author,omitempty" xml:"author,omitempty"` Key *string `form:"key,omitempty" json:"key,omitempty" xml:"key,omitempty"` Title *string `form:"title,omitempty" json:"title,omitempty" xml:"title,omitempty"` Body *string `form:"body,omitempty" json:"body,omitempty" xml:"body,omitempty"` Version *int64 `form:"version,omitempty" json:"version,omitempty" xml:"version,omitempty"` Media []*NoteMediaResponseBody `form:"media,omitempty" json:"media,omitempty" xml:"media,omitempty"` }
FieldNoteResponseBody is used to define fields on response body types.
type FieldNoteStationResponseBody ¶
type FieldNoteStationResponseBody struct {
ReadOnly *bool `form:"readOnly,omitempty" json:"readOnly,omitempty" xml:"readOnly,omitempty"`
}
FieldNoteStationResponseBody is used to define fields on response body types.
type FieldNoteUpdateRequestBody ¶
type FieldNoteUpdateRequestBody struct { Notes []*ExistingFieldNoteRequestBody `form:"notes" json:"notes" xml:"notes"` Creating []*NewFieldNoteRequestBody `form:"creating" json:"creating" xml:"creating"` }
FieldNoteUpdateRequestBody is used to define fields on request body types.
type GetBadRequestResponseBody ¶
type GetBadRequestResponseBody 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"` }
GetBadRequestResponseBody is the type of the "notes" service "get" endpoint HTTP response body for the "bad-request" error.
type GetForbiddenResponseBody ¶
type GetForbiddenResponseBody 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"` }
GetForbiddenResponseBody is the type of the "notes" service "get" endpoint HTTP response body for the "forbidden" error.
type GetNotFoundResponseBody ¶
type GetNotFoundResponseBody 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"` }
GetNotFoundResponseBody is the type of the "notes" service "get" endpoint HTTP response body for the "not-found" error.
type GetResponseBody ¶
type GetResponseBody struct { Notes []*FieldNoteResponseBody `form:"notes,omitempty" json:"notes,omitempty" xml:"notes,omitempty"` Media []*NoteMediaResponseBody `form:"media,omitempty" json:"media,omitempty" xml:"media,omitempty"` Station *FieldNoteStationResponseBody `form:"station,omitempty" json:"station,omitempty" xml:"station,omitempty"` }
GetResponseBody is the type of the "notes" service "get" endpoint HTTP response body.
type GetUnauthorizedResponseBody ¶
type GetUnauthorizedResponseBody struct { string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` // problem. Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"` Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"` Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"` Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"` }Name *
GetUnauthorizedResponseBody is the type of the "notes" service "get" endpoint HTTP response body for the "unauthorized" error.
type NewFieldNoteRequestBody ¶
type NewFieldNoteRequestBody struct { Key *string `form:"key,omitempty" json:"key,omitempty" xml:"key,omitempty"` Title *string `form:"title,omitempty" json:"title,omitempty" xml:"title,omitempty"` Body *string `form:"body,omitempty" json:"body,omitempty" xml:"body,omitempty"` MediaIds []int64 `form:"mediaIds,omitempty" json:"mediaIds,omitempty" xml:"mediaIds,omitempty"` }
NewFieldNoteRequestBody is used to define fields on request body types.
type NoteMediaResponseBody ¶
type NoteMediaResponseBody struct { ID *int64 `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` URL *string `form:"url,omitempty" json:"url,omitempty" xml:"url,omitempty"` Key *string `form:"key,omitempty" json:"key,omitempty" xml:"key,omitempty"` ContentType *string `form:"contentType,omitempty" json:"contentType,omitempty" xml:"contentType,omitempty"` }
NoteMediaResponseBody is used to define fields on response body types.
type UpdateBadRequestResponseBody ¶
type UpdateBadRequestResponseBody 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"` }
UpdateBadRequestResponseBody is the type of the "notes" service "update" endpoint HTTP response body for the "bad-request" error.
type UpdateForbiddenResponseBody ¶
type UpdateForbiddenResponseBody 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"` }
UpdateForbiddenResponseBody is the type of the "notes" service "update" endpoint HTTP response body for the "forbidden" error.
type UpdateNotFoundResponseBody ¶
type UpdateNotFoundResponseBody 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"` }
UpdateNotFoundResponseBody is the type of the "notes" service "update" endpoint HTTP response body for the "not-found" error.
type UpdateRequestBody ¶
type UpdateRequestBody struct {
Notes *FieldNoteUpdateRequestBody `form:"notes" json:"notes" xml:"notes"`
}
UpdateRequestBody is the type of the "notes" service "update" endpoint HTTP request body.
func NewUpdateRequestBody ¶
func NewUpdateRequestBody(p *notes.UpdatePayload) *UpdateRequestBody
NewUpdateRequestBody builds the HTTP request body from the payload of the "update" endpoint of the "notes" service.
type UpdateResponseBody ¶
type UpdateResponseBody struct { Notes []*FieldNoteResponseBody `form:"notes,omitempty" json:"notes,omitempty" xml:"notes,omitempty"` Media []*NoteMediaResponseBody `form:"media,omitempty" json:"media,omitempty" xml:"media,omitempty"` Station *FieldNoteStationResponseBody `form:"station,omitempty" json:"station,omitempty" xml:"station,omitempty"` }
UpdateResponseBody is the type of the "notes" service "update" endpoint HTTP response body.
type UpdateUnauthorizedResponseBody ¶
type UpdateUnauthorizedResponseBody struct { string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` // problem. Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"` Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"` Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"` Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"` }Name *
UpdateUnauthorizedResponseBody is the type of the "notes" service "update" endpoint HTTP response body for the "unauthorized" error.
type UploadMediaBadRequestResponseBody ¶
type UploadMediaBadRequestResponseBody 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"` }
UploadMediaBadRequestResponseBody is the type of the "notes" service "upload media" endpoint HTTP response body for the "bad-request" error.
type UploadMediaForbiddenResponseBody ¶
type UploadMediaForbiddenResponseBody 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"` }
UploadMediaForbiddenResponseBody is the type of the "notes" service "upload media" endpoint HTTP response body for the "forbidden" error.
type UploadMediaNotFoundResponseBody ¶
type UploadMediaNotFoundResponseBody 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"` }
UploadMediaNotFoundResponseBody is the type of the "notes" service "upload media" endpoint HTTP response body for the "not-found" error.
type UploadMediaResponseBody ¶
type UploadMediaResponseBody struct { ID *int64 `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` URL *string `form:"url,omitempty" json:"url,omitempty" xml:"url,omitempty"` Key *string `form:"key,omitempty" json:"key,omitempty" xml:"key,omitempty"` ContentType *string `form:"contentType,omitempty" json:"contentType,omitempty" xml:"contentType,omitempty"` }
UploadMediaResponseBody is the type of the "notes" service "upload media" endpoint HTTP response body.
type UploadMediaUnauthorizedResponseBody ¶
type UploadMediaUnauthorizedResponseBody struct { string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` // problem. Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"` Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"` Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"` Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"` }Name *
UploadMediaUnauthorizedResponseBody is the type of the "notes" service "upload media" endpoint HTTP response body for the "unauthorized" error.