Documentation ¶
Overview ¶
Package api provides primitives to interact with the openapi HTTP API.
Code generated by github.com/deepmap/oapi-codegen/v2 version v2.1.0 DO NOT EDIT.
Index ¶
- func GetSwagger() (swagger *openapi3.T, err error)
- func Handler(si ServerInterface) http.Handler
- func HandlerFromMux(si ServerInterface, r chi.Router) http.Handler
- func HandlerFromMuxWithBaseURL(si ServerInterface, r chi.Router, baseURL string) http.Handler
- func HandlerWithOptions(si ServerInterface, options ChiServerOptions) http.Handler
- func NewCreateClaimRequest(server string, params *CreateClaimParams, body CreateClaimJSONRequestBody) (*http.Request, error)
- func NewCreateClaimRequestWithBody(server string, params *CreateClaimParams, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateOperationRequest(server string, params *CreateOperationParams, ...) (*http.Request, error)
- func NewCreateOperationRequestWithBody(server string, params *CreateOperationParams, contentType string, ...) (*http.Request, error)
- func NewFindClaimRequest(server string, params *FindClaimParams) (*http.Request, error)
- func PathToRawSpec(pathToFile string) map[string]func() ([]byte, error)
- type AnnotatingClaimData
- type AssociatedClaim
- type AssociatedOperation
- type BadRequestErrorResponse
- type BadRequestErrorResponseJSONResponse
- type ChiServerOptions
- type Claim
- type ClaimCreateResponse
- type ClaimCreateResponseJSONResponse
- type ClaimCreateResponseResponseHeaders
- type ClaimData
- type ClaimFindData
- type ClaimFindResponse
- type ClaimFindResponseJSONResponse
- type ClaimFindResponseResponseHeaders
- type ClaimID
- type ClaimKind
- type ClaimRequest
- type ClaimSubject
- type ClaimType
- type Claimant
- type ClaimantID
- type Client
- func (c *Client) CreateClaim(ctx context.Context, params *CreateClaimParams, ...) (*http.Response, error)
- func (c *Client) CreateClaimWithBody(ctx context.Context, params *CreateClaimParams, contentType string, ...) (*http.Response, error)
- func (c *Client) CreateOperation(ctx context.Context, params *CreateOperationParams, ...) (*http.Response, error)
- func (c *Client) CreateOperationWithBody(ctx context.Context, params *CreateOperationParams, contentType string, ...) (*http.Response, error)
- func (c *Client) FindClaim(ctx context.Context, params *FindClaimParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) CreateClaimWithBodyWithResponse(ctx context.Context, params *CreateClaimParams, contentType string, ...) (*CreateClaimResponse, error)
- func (c *ClientWithResponses) CreateClaimWithResponse(ctx context.Context, params *CreateClaimParams, ...) (*CreateClaimResponse, error)
- func (c *ClientWithResponses) CreateOperationWithBodyWithResponse(ctx context.Context, params *CreateOperationParams, contentType string, ...) (*CreateOperationResponse, error)
- func (c *ClientWithResponses) CreateOperationWithResponse(ctx context.Context, params *CreateOperationParams, ...) (*CreateOperationResponse, error)
- func (c *ClientWithResponses) FindClaimWithResponse(ctx context.Context, params *FindClaimParams, reqEditors ...RequestEditorFn) (*FindClaimResponse, error)
- type ClientWithResponsesInterface
- type CreateClaim201JSONResponse
- type CreateClaim400JSONResponse
- type CreateClaim500JSONResponse
- type CreateClaimData
- type CreateClaimJSONBody
- type CreateClaimJSONRequestBody
- type CreateClaimParams
- type CreateClaimRequestObject
- type CreateClaimResponse
- type CreateClaimResponseObject
- type CreateOperation201JSONResponse
- type CreateOperation400JSONResponse
- type CreateOperation500JSONResponse
- type CreateOperationData
- type CreateOperationJSONBody
- type CreateOperationJSONRequestBody
- type CreateOperationParams
- type CreateOperationRequestObject
- type CreateOperationResponse
- type CreateOperationResponseObject
- type Data
- type Date
- type Error
- type FindClaim200JSONResponse
- type FindClaim400JSONResponse
- type FindClaim500JSONResponse
- type FindClaimData
- type FindClaimParams
- type FindClaimRequestObject
- type FindClaimResponse
- type FindClaimResponseObject
- type HttpRequestDoer
- type InternalServerError
- type InternalServerErrorJSONResponse
- type InvalidParamFormatError
- type MiddlewareFunc
- type Operation
- type OperationCreateResponse
- type OperationCreateResponseJSONResponse
- type OperationCreateResponseResponseHeaders
- type OperationID
- type OperationRequest
- type OperationType
- type RegistrationEnd
- type RegistrationStart
- type RequestEditorFn
- type RequiredHeaderError
- type RequiredParamError
- type ServerInterface
- type ServerInterfaceWrapper
- type StrictHTTPServerOptions
- type StrictHandlerFunc
- type StrictMiddlewareFunc
- type StrictServerInterface
- type SubjectID
- type TooManyValuesForParamError
- type UnescapedCookieParamError
- type Unimplemented
- func (_ Unimplemented) CreateClaim(w http.ResponseWriter, r *http.Request, params CreateClaimParams)
- func (_ Unimplemented) CreateOperation(w http.ResponseWriter, r *http.Request, params CreateOperationParams)
- func (_ Unimplemented) FindClaim(w http.ResponseWriter, r *http.Request, params FindClaimParams)
- type UnmarshalingParamError
- type ValidEnd
- type ValidStart
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSwagger ¶
GetSwagger returns the Swagger specification corresponding to the generated code in this file. The external references of Swagger specification are resolved. The logic of resolving external references is tightly connected to "import-mapping" feature. Externally referenced files must be embedded in the corresponding golang packages. Urls can be supported but this task was out of the scope.
func Handler ¶
func Handler(si ServerInterface) http.Handler
Handler creates http.Handler with routing matching OpenAPI spec.
func HandlerFromMux ¶
func HandlerFromMux(si ServerInterface, r chi.Router) http.Handler
HandlerFromMux creates http.Handler with routing matching OpenAPI spec based on the provided mux.
func HandlerFromMuxWithBaseURL ¶
func HandlerFromMuxWithBaseURL(si ServerInterface, r chi.Router, baseURL string) http.Handler
func HandlerWithOptions ¶
func HandlerWithOptions(si ServerInterface, options ChiServerOptions) http.Handler
HandlerWithOptions creates http.Handler with additional options
func NewCreateClaimRequest ¶
func NewCreateClaimRequest(server string, params *CreateClaimParams, body CreateClaimJSONRequestBody) (*http.Request, error)
NewCreateClaimRequest calls the generic CreateClaim builder with application/json body
func NewCreateClaimRequestWithBody ¶
func NewCreateClaimRequestWithBody(server string, params *CreateClaimParams, contentType string, body io.Reader) (*http.Request, error)
NewCreateClaimRequestWithBody generates requests for CreateClaim with any type of body
func NewCreateOperationRequest ¶
func NewCreateOperationRequest(server string, params *CreateOperationParams, body CreateOperationJSONRequestBody) (*http.Request, error)
NewCreateOperationRequest calls the generic CreateOperation builder with application/json body
func NewCreateOperationRequestWithBody ¶
func NewCreateOperationRequestWithBody(server string, params *CreateOperationParams, contentType string, body io.Reader) (*http.Request, error)
NewCreateOperationRequestWithBody generates requests for CreateOperation with any type of body
func NewFindClaimRequest ¶
func NewFindClaimRequest(server string, params *FindClaimParams) (*http.Request, error)
NewFindClaimRequest generates requests for FindClaim
Types ¶
type AnnotatingClaimData ¶
type AnnotatingClaimData struct { // Id The claims id Id *ClaimID `json:"id,omitempty"` // Kind The claim kind Kind *ClaimKind `json:"kind,omitempty"` }
AnnotatingClaimData defines model for annotatingClaimData.
type AssociatedOperation ¶
type AssociatedOperation = OperationID
AssociatedOperation The operations id
type BadRequestErrorResponse ¶
type BadRequestErrorResponse struct {
Errors []Error `json:"errors"`
}
BadRequestErrorResponse defines model for BadRequestErrorResponse.
type BadRequestErrorResponseJSONResponse ¶
type BadRequestErrorResponseJSONResponse struct {
Errors []Error `json:"errors"`
}
type ChiServerOptions ¶
type ChiServerOptions struct { BaseURL string BaseRouter chi.Router Middlewares []MiddlewareFunc ErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error) }
type Claim ¶
type Claim struct { // AssociatedClaim The claims id AssociatedClaim *ClaimID `json:"associatedClaim,omitempty"` // Claimant The id of the entity making the claim Claimant ClaimantID `json:"claimant"` Data ClaimData `json:"data"` // Kind The claim kind Kind ClaimKind `json:"kind"` RegistrationStart Date `json:"registrationStart"` // Subject The id of the entity that is the subject of the claim Subject SubjectID `json:"subject"` // Type The claim type Type ClaimType `json:"type"` ValidStart *Date `json:"validStart,omitempty"` }
Claim defines model for Claim.
type ClaimCreateResponse ¶
type ClaimCreateResponse struct {
Data *CreateClaimData `json:"data,omitempty"`
}
ClaimCreateResponse defines model for ClaimCreateResponse.
type ClaimCreateResponseJSONResponse ¶
type ClaimCreateResponseJSONResponse struct { Body struct { Data *CreateClaimData `json:"data,omitempty"` } Headers ClaimCreateResponseResponseHeaders }
type ClaimFindData ¶
type ClaimFindData struct { AnnotatingClaims *[]AnnotatingClaimData `json:"annotatingClaims,omitempty"` // AssociatedClaim The claims id AssociatedClaim *ClaimID `json:"associatedClaim,omitempty"` // AssociatedOperation The operations id AssociatedOperation *OperationID `json:"associatedOperation,omitempty"` // Claimant The id of the entity making the claim Claimant ClaimantID `json:"claimant"` Data ClaimData `json:"data"` // Id The claims id Id *ClaimID `json:"id,omitempty"` // Kind The claim kind Kind ClaimKind `json:"kind"` RegistrationEnd *Date `json:"registrationEnd,omitempty"` RegistrationStart Date `json:"registrationStart"` // Subject The id of the entity that is the subject of the claim Subject SubjectID `json:"subject"` // Type The claim type Type ClaimType `json:"type"` ValidEnd *Date `json:"validEnd,omitempty"` ValidStart *Date `json:"validStart,omitempty"` }
ClaimFindData defines model for ClaimFindData.
type ClaimFindResponse ¶
type ClaimFindResponse struct {
Data *FindClaimData `json:"data,omitempty"`
}
ClaimFindResponse defines model for ClaimFindResponse.
type ClaimFindResponseJSONResponse ¶
type ClaimFindResponseJSONResponse struct { Body struct { Data *FindClaimData `json:"data,omitempty"` } Headers ClaimFindResponseResponseHeaders }
type ClaimRequest ¶
type ClaimRequest struct {
Input Claim `json:"input"`
}
ClaimRequest defines model for Claim.
type ClaimSubject ¶
type ClaimSubject = SubjectID
ClaimSubject The id of the entity that is the subject of the claim
type ClaimantID ¶
type ClaimantID = openapi_types.UUID
ClaimantID The id of the entity making the claim
type Client ¶
type Client struct { // The endpoint of the server conforming to this interface, with scheme, // https://api.deepmap.com for example. This can contain a path relative // to the server, such as https://api.deepmap.com/dev-test, and all the // paths in the swagger spec will be appended to the server. Server string // Doer for performing requests, typically a *http.Client with any // customized settings, such as certificate chains. Client HttpRequestDoer // A list of callbacks for modifying requests which are generated before sending over // the network. RequestEditors []RequestEditorFn }
Client which conforms to the OpenAPI3 specification for this service.
func NewClient ¶
func NewClient(server string, opts ...ClientOption) (*Client, error)
Creates a new Client, with reasonable defaults
func (*Client) CreateClaim ¶
func (c *Client) CreateClaim(ctx context.Context, params *CreateClaimParams, body CreateClaimJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateClaimWithBody ¶
func (*Client) CreateOperation ¶
func (c *Client) CreateOperation(ctx context.Context, params *CreateOperationParams, body CreateOperationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateOperationWithBody ¶
func (*Client) FindClaim ¶
func (c *Client) FindClaim(ctx context.Context, params *FindClaimParams, reqEditors ...RequestEditorFn) (*http.Response, error)
type ClientInterface ¶
type ClientInterface interface { // FindClaim request FindClaim(ctx context.Context, params *FindClaimParams, reqEditors ...RequestEditorFn) (*http.Response, error) // CreateClaimWithBody request with any body CreateClaimWithBody(ctx context.Context, params *CreateClaimParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) CreateClaim(ctx context.Context, params *CreateClaimParams, body CreateClaimJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // CreateOperationWithBody request with any body CreateOperationWithBody(ctx context.Context, params *CreateOperationParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) CreateOperation(ctx context.Context, params *CreateOperationParams, body CreateOperationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) }
The interface specification for the client above.
type ClientOption ¶
ClientOption allows setting custom parameters during construction
func WithHTTPClient ¶
func WithHTTPClient(doer HttpRequestDoer) ClientOption
WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.
func WithRequestEditorFn ¶
func WithRequestEditorFn(fn RequestEditorFn) ClientOption
WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.
type ClientWithResponses ¶
type ClientWithResponses struct {
ClientInterface
}
ClientWithResponses builds on ClientInterface to offer response payloads
func NewClientWithResponses ¶
func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)
NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling
func (*ClientWithResponses) CreateClaimWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateClaimWithBodyWithResponse(ctx context.Context, params *CreateClaimParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateClaimResponse, error)
CreateClaimWithBodyWithResponse request with arbitrary body returning *CreateClaimResponse
func (*ClientWithResponses) CreateClaimWithResponse ¶
func (c *ClientWithResponses) CreateClaimWithResponse(ctx context.Context, params *CreateClaimParams, body CreateClaimJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateClaimResponse, error)
func (*ClientWithResponses) CreateOperationWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateOperationWithBodyWithResponse(ctx context.Context, params *CreateOperationParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateOperationResponse, error)
CreateOperationWithBodyWithResponse request with arbitrary body returning *CreateOperationResponse
func (*ClientWithResponses) CreateOperationWithResponse ¶
func (c *ClientWithResponses) CreateOperationWithResponse(ctx context.Context, params *CreateOperationParams, body CreateOperationJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateOperationResponse, error)
func (*ClientWithResponses) FindClaimWithResponse ¶
func (c *ClientWithResponses) FindClaimWithResponse(ctx context.Context, params *FindClaimParams, reqEditors ...RequestEditorFn) (*FindClaimResponse, error)
FindClaimWithResponse request returning *FindClaimResponse
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface { // FindClaimWithResponse request FindClaimWithResponse(ctx context.Context, params *FindClaimParams, reqEditors ...RequestEditorFn) (*FindClaimResponse, error) // CreateClaimWithBodyWithResponse request with any body CreateClaimWithBodyWithResponse(ctx context.Context, params *CreateClaimParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateClaimResponse, error) CreateClaimWithResponse(ctx context.Context, params *CreateClaimParams, body CreateClaimJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateClaimResponse, error) // CreateOperationWithBodyWithResponse request with any body CreateOperationWithBodyWithResponse(ctx context.Context, params *CreateOperationParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateOperationResponse, error) CreateOperationWithResponse(ctx context.Context, params *CreateOperationParams, body CreateOperationJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateOperationResponse, error) }
ClientWithResponsesInterface is the interface specification for the client with responses above.
type CreateClaim201JSONResponse ¶
type CreateClaim201JSONResponse struct {
ClaimCreateResponseJSONResponse
}
func (CreateClaim201JSONResponse) VisitCreateClaimResponse ¶
func (response CreateClaim201JSONResponse) VisitCreateClaimResponse(w http.ResponseWriter) error
type CreateClaim400JSONResponse ¶
type CreateClaim400JSONResponse struct {
BadRequestErrorResponseJSONResponse
}
func (CreateClaim400JSONResponse) VisitCreateClaimResponse ¶
func (response CreateClaim400JSONResponse) VisitCreateClaimResponse(w http.ResponseWriter) error
type CreateClaim500JSONResponse ¶
type CreateClaim500JSONResponse struct {
InternalServerErrorJSONResponse
}
func (CreateClaim500JSONResponse) VisitCreateClaimResponse ¶
func (response CreateClaim500JSONResponse) VisitCreateClaimResponse(w http.ResponseWriter) error
type CreateClaimData ¶
type CreateClaimData struct { // Id The claims id Id ClaimID `json:"id"` }
CreateClaimData defines model for CreateClaimData.
type CreateClaimJSONBody ¶
type CreateClaimJSONBody struct {
Input Claim `json:"input"`
}
CreateClaimJSONBody defines parameters for CreateClaim.
type CreateClaimJSONRequestBody ¶
type CreateClaimJSONRequestBody CreateClaimJSONBody
CreateClaimJSONRequestBody defines body for CreateClaim for application/json ContentType.
type CreateClaimParams ¶
type CreateClaimParams struct { // FSCVWLVerwerkingsActiviteit id of the verwerking type FSCVWLVerwerkingsActiviteit *externalRef0.FSCVWLVerwerkingsActiviteit `json:"FSC-VWL-Verwerkings-Activiteit,omitempty"` // FSCVWLVerwerkingsSpan transaction uuid of the incoming request FSCVWLVerwerkingsSpan *externalRef0.FSCVWLVerwerkingsSpan `json:"FSC-VWL-Verwerkings-Span,omitempty"` // FSCVWLSysteem identifier for the system processing the verwerking FSCVWLSysteem *externalRef0.FSCVWLSysteem `json:"FSC-VWL-Systeem,omitempty"` // FSCVWLVerwerker the party doing the verwerking, this does not have to be the party responsible for the verwerking FSCVWLVerwerker *externalRef0.FSCVWLVerwerker `json:"FSC-VWL-Verwerker,omitempty"` // FSCVWLVerantwoordelijke the party responsible for the verwerking, this does not have to be the party doing the verwerking itself FSCVWLVerantwoordelijke *externalRef0.FSCVWLVerantwoordelijke `json:"FSC-VWL-Verantwoordelijke,omitempty"` }
CreateClaimParams defines parameters for CreateClaim.
type CreateClaimRequestObject ¶
type CreateClaimRequestObject struct { Params CreateClaimParams Body *CreateClaimJSONRequestBody }
type CreateClaimResponse ¶
type CreateClaimResponse struct { Body []byte HTTPResponse *http.Response JSON201 *ClaimCreateResponse JSON400 *BadRequestErrorResponse JSON500 *InternalServerError }
func ParseCreateClaimResponse ¶
func ParseCreateClaimResponse(rsp *http.Response) (*CreateClaimResponse, error)
ParseCreateClaimResponse parses an HTTP response from a CreateClaimWithResponse call
func (CreateClaimResponse) Status ¶
func (r CreateClaimResponse) Status() string
Status returns HTTPResponse.Status
func (CreateClaimResponse) StatusCode ¶
func (r CreateClaimResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateClaimResponseObject ¶
type CreateClaimResponseObject interface {
VisitCreateClaimResponse(w http.ResponseWriter) error
}
type CreateOperation201JSONResponse ¶
type CreateOperation201JSONResponse struct {
OperationCreateResponseJSONResponse
}
func (CreateOperation201JSONResponse) VisitCreateOperationResponse ¶
func (response CreateOperation201JSONResponse) VisitCreateOperationResponse(w http.ResponseWriter) error
type CreateOperation400JSONResponse ¶
type CreateOperation400JSONResponse struct {
BadRequestErrorResponseJSONResponse
}
func (CreateOperation400JSONResponse) VisitCreateOperationResponse ¶
func (response CreateOperation400JSONResponse) VisitCreateOperationResponse(w http.ResponseWriter) error
type CreateOperation500JSONResponse ¶
type CreateOperation500JSONResponse struct {
InternalServerErrorJSONResponse
}
func (CreateOperation500JSONResponse) VisitCreateOperationResponse ¶
func (response CreateOperation500JSONResponse) VisitCreateOperationResponse(w http.ResponseWriter) error
type CreateOperationData ¶
type CreateOperationData struct { // Id The operations id Id OperationID `json:"id"` }
CreateOperationData defines model for CreateOperationData.
type CreateOperationJSONBody ¶
type CreateOperationJSONBody struct {
Input Operation `json:"input"`
}
CreateOperationJSONBody defines parameters for CreateOperation.
type CreateOperationJSONRequestBody ¶
type CreateOperationJSONRequestBody CreateOperationJSONBody
CreateOperationJSONRequestBody defines body for CreateOperation for application/json ContentType.
type CreateOperationParams ¶
type CreateOperationParams struct { // FSCVWLVerwerkingsActiviteit id of the verwerking type FSCVWLVerwerkingsActiviteit *externalRef0.FSCVWLVerwerkingsActiviteit `json:"FSC-VWL-Verwerkings-Activiteit,omitempty"` // FSCVWLVerwerkingsSpan transaction uuid of the incoming request FSCVWLVerwerkingsSpan *externalRef0.FSCVWLVerwerkingsSpan `json:"FSC-VWL-Verwerkings-Span,omitempty"` // FSCVWLSysteem identifier for the system processing the verwerking FSCVWLSysteem *externalRef0.FSCVWLSysteem `json:"FSC-VWL-Systeem,omitempty"` // FSCVWLVerwerker the party doing the verwerking, this does not have to be the party responsible for the verwerking FSCVWLVerwerker *externalRef0.FSCVWLVerwerker `json:"FSC-VWL-Verwerker,omitempty"` // FSCVWLVerantwoordelijke the party responsible for the verwerking, this does not have to be the party doing the verwerking itself FSCVWLVerantwoordelijke *externalRef0.FSCVWLVerantwoordelijke `json:"FSC-VWL-Verantwoordelijke,omitempty"` }
CreateOperationParams defines parameters for CreateOperation.
type CreateOperationRequestObject ¶
type CreateOperationRequestObject struct { Params CreateOperationParams Body *CreateOperationJSONRequestBody }
type CreateOperationResponse ¶
type CreateOperationResponse struct { Body []byte HTTPResponse *http.Response JSON201 *OperationCreateResponse JSON400 *BadRequestErrorResponse JSON500 *InternalServerError }
func ParseCreateOperationResponse ¶
func ParseCreateOperationResponse(rsp *http.Response) (*CreateOperationResponse, error)
ParseCreateOperationResponse parses an HTTP response from a CreateOperationWithResponse call
func (CreateOperationResponse) Status ¶
func (r CreateOperationResponse) Status() string
Status returns HTTPResponse.Status
func (CreateOperationResponse) StatusCode ¶
func (r CreateOperationResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateOperationResponseObject ¶
type CreateOperationResponseObject interface {
VisitCreateOperationResponse(w http.ResponseWriter) error
}
type Error ¶
type Error struct {
Message string `json:"message"`
}
Error The error that occured while processing this request.
type FindClaim200JSONResponse ¶
type FindClaim200JSONResponse struct{ ClaimFindResponseJSONResponse }
func (FindClaim200JSONResponse) VisitFindClaimResponse ¶
func (response FindClaim200JSONResponse) VisitFindClaimResponse(w http.ResponseWriter) error
type FindClaim400JSONResponse ¶
type FindClaim400JSONResponse struct {
BadRequestErrorResponseJSONResponse
}
func (FindClaim400JSONResponse) VisitFindClaimResponse ¶
func (response FindClaim400JSONResponse) VisitFindClaimResponse(w http.ResponseWriter) error
type FindClaim500JSONResponse ¶
type FindClaim500JSONResponse struct {
InternalServerErrorJSONResponse
}
func (FindClaim500JSONResponse) VisitFindClaimResponse ¶
func (response FindClaim500JSONResponse) VisitFindClaimResponse(w http.ResponseWriter) error
type FindClaimData ¶
type FindClaimData = []ClaimFindData
FindClaimData defines model for FindClaimData.
type FindClaimParams ¶
type FindClaimParams struct { // ClaimID ID of claim to return. ClaimID *ClaimID `form:"claimID,omitempty" json:"claimID,omitempty"` // ClaimType Kind of type to return. ClaimType *ClaimType `form:"claimType,omitempty" json:"claimType,omitempty"` // ClaimKind Kind of claim to return. ClaimKind *ClaimKind `form:"claimKind,omitempty" json:"claimKind,omitempty"` // ClaimSubject ID of claim subject to return. ClaimSubject *ClaimSubject `form:"claimSubject,omitempty" json:"claimSubject,omitempty"` // Claimant claimant of the claim. Claimant *Claimant `form:"claimant,omitempty" json:"claimant,omitempty"` // AssociatedOperation operation associated with the claim. AssociatedOperation *AssociatedOperation `form:"associatedOperation,omitempty" json:"associatedOperation,omitempty"` // AssociatedClaim ID of claim that this claim references. AssociatedClaim *AssociatedClaim `form:"associatedClaim,omitempty" json:"associatedClaim,omitempty"` // RegistrationStart the registration start date of the claim. RegistrationStart *RegistrationStart `form:"registrationStart,omitempty" json:"registrationStart,omitempty"` // RegistrationEnd the registration start date of the claim. RegistrationEnd *RegistrationEnd `form:"registrationEnd,omitempty" json:"registrationEnd,omitempty"` // ValidStart the valid start date of the claim. ValidStart *ValidStart `form:"validStart,omitempty" json:"validStart,omitempty"` // ValidEnd the valid end date of the claim. ValidEnd *ValidEnd `form:"validEnd,omitempty" json:"validEnd,omitempty"` // Data data objects to filter on Data *Data `json:"data,omitempty"` // FSCVWLVerwerkingsActiviteit id of the verwerking type FSCVWLVerwerkingsActiviteit *externalRef0.FSCVWLVerwerkingsActiviteit `json:"FSC-VWL-Verwerkings-Activiteit,omitempty"` // FSCVWLVerwerkingsSpan transaction uuid of the incoming request FSCVWLVerwerkingsSpan *externalRef0.FSCVWLVerwerkingsSpan `json:"FSC-VWL-Verwerkings-Span,omitempty"` // FSCVWLSysteem identifier for the system processing the verwerking FSCVWLSysteem *externalRef0.FSCVWLSysteem `json:"FSC-VWL-Systeem,omitempty"` // FSCVWLVerwerker the party doing the verwerking, this does not have to be the party responsible for the verwerking FSCVWLVerwerker *externalRef0.FSCVWLVerwerker `json:"FSC-VWL-Verwerker,omitempty"` // FSCVWLVerantwoordelijke the party responsible for the verwerking, this does not have to be the party doing the verwerking itself FSCVWLVerantwoordelijke *externalRef0.FSCVWLVerantwoordelijke `json:"FSC-VWL-Verantwoordelijke,omitempty"` }
FindClaimParams defines parameters for FindClaim.
type FindClaimRequestObject ¶
type FindClaimRequestObject struct {
Params FindClaimParams
}
type FindClaimResponse ¶
type FindClaimResponse struct { Body []byte HTTPResponse *http.Response JSON200 *ClaimFindResponse JSON400 *BadRequestErrorResponse JSON500 *InternalServerError }
func ParseFindClaimResponse ¶
func ParseFindClaimResponse(rsp *http.Response) (*FindClaimResponse, error)
ParseFindClaimResponse parses an HTTP response from a FindClaimWithResponse call
func (FindClaimResponse) Status ¶
func (r FindClaimResponse) Status() string
Status returns HTTPResponse.Status
func (FindClaimResponse) StatusCode ¶
func (r FindClaimResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type FindClaimResponseObject ¶
type FindClaimResponseObject interface {
VisitFindClaimResponse(w http.ResponseWriter) error
}
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type InternalServerError ¶
type InternalServerError struct {
Errors []Error `json:"errors"`
}
InternalServerError defines model for InternalServerError.
type InternalServerErrorJSONResponse ¶
type InternalServerErrorJSONResponse struct {
Errors []Error `json:"errors"`
}
type InvalidParamFormatError ¶
func (*InvalidParamFormatError) Error ¶
func (e *InvalidParamFormatError) Error() string
func (*InvalidParamFormatError) Unwrap ¶
func (e *InvalidParamFormatError) Unwrap() error
type Operation ¶
type Operation struct { Claims []Claim `json:"claims"` // OperationType The operation type OperationType *OperationType `json:"operationType,omitempty"` RegistrationStart Date `json:"registrationStart"` ValidStart Date `json:"validStart"` }
Operation defines model for Operation.
type OperationCreateResponse ¶
type OperationCreateResponse struct {
Data *CreateOperationData `json:"data,omitempty"`
}
OperationCreateResponse defines model for OperationCreateResponse.
type OperationCreateResponseJSONResponse ¶
type OperationCreateResponseJSONResponse struct { Body struct { Data *CreateOperationData `json:"data,omitempty"` } Headers OperationCreateResponseResponseHeaders }
type OperationRequest ¶
type OperationRequest struct {
Input Operation `json:"input"`
}
OperationRequest defines model for Operation.
type OperationType ¶
type OperationType string
OperationType The operation type
const (
StelNaamIn OperationType = "StelNaamIn"
)
Defines values for OperationType.
type RegistrationEnd ¶
type RegistrationEnd = Date
RegistrationEnd defines model for registrationEnd.
type RegistrationStart ¶
type RegistrationStart = Date
RegistrationStart defines model for registrationStart.
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type RequiredHeaderError ¶
func (*RequiredHeaderError) Error ¶
func (e *RequiredHeaderError) Error() string
func (*RequiredHeaderError) Unwrap ¶
func (e *RequiredHeaderError) Unwrap() error
type RequiredParamError ¶
type RequiredParamError struct {
ParamName string
}
func (*RequiredParamError) Error ¶
func (e *RequiredParamError) Error() string
type ServerInterface ¶
type ServerInterface interface { // Find claims // (GET /claims) FindClaim(w http.ResponseWriter, r *http.Request, params FindClaimParams) // Add a new claim // (POST /claims) CreateClaim(w http.ResponseWriter, r *http.Request, params CreateClaimParams) // add operation // (POST /operation) CreateOperation(w http.ResponseWriter, r *http.Request, params CreateOperationParams) }
ServerInterface represents all server handlers.
func NewStrictHandler ¶
func NewStrictHandler(ssi StrictServerInterface, middlewares []StrictMiddlewareFunc) ServerInterface
func NewStrictHandlerWithOptions ¶
func NewStrictHandlerWithOptions(ssi StrictServerInterface, middlewares []StrictMiddlewareFunc, options StrictHTTPServerOptions) ServerInterface
type ServerInterfaceWrapper ¶
type ServerInterfaceWrapper struct { Handler ServerInterface HandlerMiddlewares []MiddlewareFunc ErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error) }
ServerInterfaceWrapper converts contexts to parameters.
func (*ServerInterfaceWrapper) CreateClaim ¶
func (siw *ServerInterfaceWrapper) CreateClaim(w http.ResponseWriter, r *http.Request)
CreateClaim operation middleware
func (*ServerInterfaceWrapper) CreateOperation ¶
func (siw *ServerInterfaceWrapper) CreateOperation(w http.ResponseWriter, r *http.Request)
CreateOperation operation middleware
func (*ServerInterfaceWrapper) FindClaim ¶
func (siw *ServerInterfaceWrapper) FindClaim(w http.ResponseWriter, r *http.Request)
FindClaim operation middleware
type StrictHTTPServerOptions ¶
type StrictHTTPServerOptions struct { RequestErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error) ResponseErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error) }
type StrictHandlerFunc ¶
type StrictHandlerFunc = strictnethttp.StrictHTTPHandlerFunc
type StrictMiddlewareFunc ¶
type StrictMiddlewareFunc = strictnethttp.StrictHTTPMiddlewareFunc
type StrictServerInterface ¶
type StrictServerInterface interface { // Find claims // (GET /claims) FindClaim(ctx context.Context, request FindClaimRequestObject) (FindClaimResponseObject, error) // Add a new claim // (POST /claims) CreateClaim(ctx context.Context, request CreateClaimRequestObject) (CreateClaimResponseObject, error) // add operation // (POST /operation) CreateOperation(ctx context.Context, request CreateOperationRequestObject) (CreateOperationResponseObject, error) }
StrictServerInterface represents all server handlers.
type SubjectID ¶
type SubjectID = openapi_types.UUID
SubjectID The id of the entity that is the subject of the claim
type TooManyValuesForParamError ¶
func (*TooManyValuesForParamError) Error ¶
func (e *TooManyValuesForParamError) Error() string
type UnescapedCookieParamError ¶
func (*UnescapedCookieParamError) Error ¶
func (e *UnescapedCookieParamError) Error() string
func (*UnescapedCookieParamError) Unwrap ¶
func (e *UnescapedCookieParamError) Unwrap() error
type Unimplemented ¶
type Unimplemented struct{}
func (Unimplemented) CreateClaim ¶
func (_ Unimplemented) CreateClaim(w http.ResponseWriter, r *http.Request, params CreateClaimParams)
Add a new claim (POST /claims)
func (Unimplemented) CreateOperation ¶
func (_ Unimplemented) CreateOperation(w http.ResponseWriter, r *http.Request, params CreateOperationParams)
add operation (POST /operation)
func (Unimplemented) FindClaim ¶
func (_ Unimplemented) FindClaim(w http.ResponseWriter, r *http.Request, params FindClaimParams)
Find claims (GET /claims)
type UnmarshalingParamError ¶
func (*UnmarshalingParamError) Error ¶
func (e *UnmarshalingParamError) Error() string
func (*UnmarshalingParamError) Unwrap ¶
func (e *UnmarshalingParamError) Unwrap() error