Documentation
¶
Overview ¶
Package openapi 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 PathToRawSpec(pathToFile string) map[string]func() ([]byte, error)
- type ChiServerOptions
- type ClassificationTask
- type ClassificationTaskLabel
- type ClassificationTaskList
- type ClassificationTaskOrPendingClassificationTask
- func (t ClassificationTaskOrPendingClassificationTask) AsClassificationTask() (ClassificationTask, error)
- func (t ClassificationTaskOrPendingClassificationTask) AsPendingClassificationTask() (PendingClassificationTask, error)
- func (t *ClassificationTaskOrPendingClassificationTask) FromClassificationTask(v ClassificationTask) error
- func (t *ClassificationTaskOrPendingClassificationTask) FromPendingClassificationTask(v PendingClassificationTask) error
- func (t ClassificationTaskOrPendingClassificationTask) MarshalJSON() ([]byte, error)
- func (t *ClassificationTaskOrPendingClassificationTask) MergeClassificationTask(v ClassificationTask) error
- func (t *ClassificationTaskOrPendingClassificationTask) MergePendingClassificationTask(v PendingClassificationTask) error
- func (t *ClassificationTaskOrPendingClassificationTask) UnmarshalJSON(b []byte) error
- type ConflictResponse
- type ConflictResponseHeaders
- type CreateClassificationTask
- type CreateClassificationTaskLabel
- type CreateProject
- type Embedding
- type GetOpenapiJson200JSONResponse
- type GetOpenapiJsonRequestObject
- type GetOpenapiJsonResponseObject
- type GetProjectId200JSONResponse
- type GetProjectId404Response
- type GetProjectIdRequestObject
- type GetProjectIdResponseObject
- type GetProjectProjectIdClassificationTaskId200JSONResponse
- type GetProjectProjectIdClassificationTaskId404Response
- type GetProjectProjectIdClassificationTaskIdRequestObject
- type GetProjectProjectIdClassificationTaskIdResponseObject
- type GetProjectProjectIdClassificationTaskLabelId200JSONResponse
- type GetProjectProjectIdClassificationTaskLabelId404Response
- type GetProjectProjectIdClassificationTaskLabelIdRequestObject
- type GetProjectProjectIdClassificationTaskLabelIdResponseObject
- type GetProjectProjectIdClassificationTasks200JSONResponse
- type GetProjectProjectIdClassificationTasks404Response
- type GetProjectProjectIdClassificationTasksParams
- type GetProjectProjectIdClassificationTasksRequestObject
- type GetProjectProjectIdClassificationTasksResponseObject
- type GetProjectProjectIdPendingClassificationTasks200JSONResponse
- type GetProjectProjectIdPendingClassificationTasks404Response
- type GetProjectProjectIdPendingClassificationTasksParams
- type GetProjectProjectIdPendingClassificationTasksRequestObject
- type GetProjectProjectIdPendingClassificationTasksResponseObject
- type GetProjects200JSONResponse
- type GetProjectsRequestObject
- type GetProjectsResponseObject
- type InvalidParamFormatError
- type LabelTask
- type Location
- type MiddlewareFunc
- type Page
- type PageSize
- type PendingClassificationTask
- type PendingClassificationTaskList
- type PostProject201JSONResponse
- type PostProject303Response
- type PostProjectFormdataRequestBody
- type PostProjectProjectIdClassificationTask201JSONResponse
- type PostProjectProjectIdClassificationTask303Response
- type PostProjectProjectIdClassificationTask409Response
- type PostProjectProjectIdClassificationTaskFormdataRequestBody
- type PostProjectProjectIdClassificationTaskIdLabel200JSONResponse
- type PostProjectProjectIdClassificationTaskIdLabel303Response
- type PostProjectProjectIdClassificationTaskIdLabel404Response
- type PostProjectProjectIdClassificationTaskIdLabelFormdataRequestBody
- type PostProjectProjectIdClassificationTaskIdLabelRequestObject
- type PostProjectProjectIdClassificationTaskIdLabelResponseObject
- type PostProjectProjectIdClassificationTaskJSONRequestBody
- type PostProjectProjectIdClassificationTaskLabel201JSONResponse
- type PostProjectProjectIdClassificationTaskLabel303Response
- type PostProjectProjectIdClassificationTaskLabelFormdataRequestBody
- type PostProjectProjectIdClassificationTaskLabelRequestObject
- type PostProjectProjectIdClassificationTaskLabelResponseObject
- type PostProjectProjectIdClassificationTaskRequestObject
- type PostProjectProjectIdClassificationTaskResponseObject
- type PostProjectRequestObject
- type PostProjectResponseObject
- type Project
- type Projects
- type RedirectResponse
- type RedirectResponseHeaders
- type RequiredHeaderError
- type RequiredParamError
- type ServerInterface
- type ServerInterfaceWrapper
- func (siw *ServerInterfaceWrapper) GetOpenapiJson(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetProjectId(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetProjectProjectIdClassificationTaskId(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetProjectProjectIdClassificationTaskLabelId(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetProjectProjectIdClassificationTasks(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetProjectProjectIdPendingClassificationTasks(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetProjects(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) PostProject(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) PostProjectProjectIdClassificationTask(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) PostProjectProjectIdClassificationTaskIdLabel(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) PostProjectProjectIdClassificationTaskLabel(w http.ResponseWriter, r *http.Request)
- type StrictHTTPServerOptions
- type StrictHandlerFunc
- type StrictMiddlewareFunc
- type StrictServerInterface
- type TooManyValuesForParamError
- type UnescapedCookieParamError
- type Unimplemented
- func (_ Unimplemented) GetOpenapiJson(w http.ResponseWriter, r *http.Request)
- func (_ Unimplemented) GetProjectId(w http.ResponseWriter, r *http.Request, id int64)
- func (_ Unimplemented) GetProjectProjectIdClassificationTaskId(w http.ResponseWriter, r *http.Request, projectId int64, id int64)
- func (_ Unimplemented) GetProjectProjectIdClassificationTaskLabelId(w http.ResponseWriter, r *http.Request, projectId int64, id int64)
- func (_ Unimplemented) GetProjectProjectIdClassificationTasks(w http.ResponseWriter, r *http.Request, projectId int64, ...)
- func (_ Unimplemented) GetProjectProjectIdPendingClassificationTasks(w http.ResponseWriter, r *http.Request, projectId int64, ...)
- func (_ Unimplemented) GetProjects(w http.ResponseWriter, r *http.Request)
- func (_ Unimplemented) PostProject(w http.ResponseWriter, r *http.Request)
- func (_ Unimplemented) PostProjectProjectIdClassificationTask(w http.ResponseWriter, r *http.Request, projectId int64)
- func (_ Unimplemented) PostProjectProjectIdClassificationTaskIdLabel(w http.ResponseWriter, r *http.Request, projectId int64, id int64)
- func (_ Unimplemented) PostProjectProjectIdClassificationTaskLabel(w http.ResponseWriter, r *http.Request, projectId int64)
- type UnmarshalingParamError
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
Types ¶
type ChiServerOptions ¶
type ChiServerOptions struct { BaseURL string BaseRouter chi.Router Middlewares []MiddlewareFunc ErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error) }
type ClassificationTask ¶
type ClassificationTask struct { CreatedAt time.Time `json:"created_at"` Embeddings map[string]Embedding `json:"embeddings"` Id int64 `json:"id"` LabelId int64 `json:"label_id"` LlmInput string `json:"llm_input"` LlmOutput string `json:"llm_output"` ProjectId int64 `json:"project_id"` }
ClassificationTask defines model for ClassificationTask.
type ClassificationTaskLabel ¶
type ClassificationTaskLabel struct { CreatedAt time.Time `json:"created_at"` Id int64 `json:"id"` Label string `json:"label"` ProjectId int64 `json:"project_id"` }
ClassificationTaskLabel defines model for ClassificationTaskLabel.
type ClassificationTaskList ¶
type ClassificationTaskList struct { Data []ClassificationTask `json:"data"` Total uint64 `json:"total"` }
ClassificationTaskList defines model for ClassificationTaskList.
type ClassificationTaskOrPendingClassificationTask ¶
type ClassificationTaskOrPendingClassificationTask struct {
// contains filtered or unexported fields
}
ClassificationTaskOrPendingClassificationTask defines model for ClassificationTaskOrPendingClassificationTask.
func (ClassificationTaskOrPendingClassificationTask) AsClassificationTask ¶
func (t ClassificationTaskOrPendingClassificationTask) AsClassificationTask() (ClassificationTask, error)
AsClassificationTask returns the union data inside the ClassificationTaskOrPendingClassificationTask as a ClassificationTask
func (ClassificationTaskOrPendingClassificationTask) AsPendingClassificationTask ¶
func (t ClassificationTaskOrPendingClassificationTask) AsPendingClassificationTask() (PendingClassificationTask, error)
AsPendingClassificationTask returns the union data inside the ClassificationTaskOrPendingClassificationTask as a PendingClassificationTask
func (*ClassificationTaskOrPendingClassificationTask) FromClassificationTask ¶
func (t *ClassificationTaskOrPendingClassificationTask) FromClassificationTask(v ClassificationTask) error
FromClassificationTask overwrites any union data inside the ClassificationTaskOrPendingClassificationTask as the provided ClassificationTask
func (*ClassificationTaskOrPendingClassificationTask) FromPendingClassificationTask ¶
func (t *ClassificationTaskOrPendingClassificationTask) FromPendingClassificationTask(v PendingClassificationTask) error
FromPendingClassificationTask overwrites any union data inside the ClassificationTaskOrPendingClassificationTask as the provided PendingClassificationTask
func (ClassificationTaskOrPendingClassificationTask) MarshalJSON ¶
func (t ClassificationTaskOrPendingClassificationTask) MarshalJSON() ([]byte, error)
func (*ClassificationTaskOrPendingClassificationTask) MergeClassificationTask ¶
func (t *ClassificationTaskOrPendingClassificationTask) MergeClassificationTask(v ClassificationTask) error
MergeClassificationTask performs a merge with any union data inside the ClassificationTaskOrPendingClassificationTask, using the provided ClassificationTask
func (*ClassificationTaskOrPendingClassificationTask) MergePendingClassificationTask ¶
func (t *ClassificationTaskOrPendingClassificationTask) MergePendingClassificationTask(v PendingClassificationTask) error
MergePendingClassificationTask performs a merge with any union data inside the ClassificationTaskOrPendingClassificationTask, using the provided PendingClassificationTask
func (*ClassificationTaskOrPendingClassificationTask) UnmarshalJSON ¶
func (t *ClassificationTaskOrPendingClassificationTask) UnmarshalJSON(b []byte) error
type ConflictResponse ¶
type ConflictResponse struct {
Headers ConflictResponseHeaders
}
type ConflictResponseHeaders ¶
type ConflictResponseHeaders struct {
Location Location
}
type CreateClassificationTask ¶
type CreateClassificationTask struct { Embeddings map[string]Embedding `json:"embeddings"` LlmInput string `json:"llm_input"` LlmOutput string `json:"llm_output"` }
CreateClassificationTask defines model for CreateClassificationTask.
type CreateClassificationTaskLabel ¶
type CreateClassificationTaskLabel struct {
Label string `json:"label"`
}
CreateClassificationTaskLabel defines model for CreateClassificationTaskLabel.
type CreateProject ¶
CreateProject defines model for CreateProject.
type GetOpenapiJson200JSONResponse ¶
func (GetOpenapiJson200JSONResponse) VisitGetOpenapiJsonResponse ¶
func (response GetOpenapiJson200JSONResponse) VisitGetOpenapiJsonResponse(w http.ResponseWriter) error
type GetOpenapiJsonRequestObject ¶
type GetOpenapiJsonRequestObject struct { }
type GetOpenapiJsonResponseObject ¶
type GetOpenapiJsonResponseObject interface {
VisitGetOpenapiJsonResponse(w http.ResponseWriter) error
}
type GetProjectId200JSONResponse ¶
type GetProjectId200JSONResponse = Project
func (GetProjectId200JSONResponse) VisitGetProjectIdResponse ¶
func (response GetProjectId200JSONResponse) VisitGetProjectIdResponse(w http.ResponseWriter) error
type GetProjectId404Response ¶
type GetProjectId404Response struct { }
func (GetProjectId404Response) VisitGetProjectIdResponse ¶
func (response GetProjectId404Response) VisitGetProjectIdResponse(w http.ResponseWriter) error
type GetProjectIdRequestObject ¶
type GetProjectIdRequestObject struct {
Id int64 `json:"id"`
}
type GetProjectIdResponseObject ¶
type GetProjectIdResponseObject interface {
VisitGetProjectIdResponse(w http.ResponseWriter) error
}
type GetProjectProjectIdClassificationTaskId200JSONResponse ¶
type GetProjectProjectIdClassificationTaskId200JSONResponse = ClassificationTaskOrPendingClassificationTask
func (GetProjectProjectIdClassificationTaskId200JSONResponse) VisitGetProjectProjectIdClassificationTaskIdResponse ¶
func (response GetProjectProjectIdClassificationTaskId200JSONResponse) VisitGetProjectProjectIdClassificationTaskIdResponse(w http.ResponseWriter) error
type GetProjectProjectIdClassificationTaskId404Response ¶
type GetProjectProjectIdClassificationTaskId404Response struct { }
func (GetProjectProjectIdClassificationTaskId404Response) VisitGetProjectProjectIdClassificationTaskIdResponse ¶
func (response GetProjectProjectIdClassificationTaskId404Response) VisitGetProjectProjectIdClassificationTaskIdResponse(w http.ResponseWriter) error
type GetProjectProjectIdClassificationTaskIdResponseObject ¶
type GetProjectProjectIdClassificationTaskIdResponseObject interface {
VisitGetProjectProjectIdClassificationTaskIdResponse(w http.ResponseWriter) error
}
type GetProjectProjectIdClassificationTaskLabelId200JSONResponse ¶
type GetProjectProjectIdClassificationTaskLabelId200JSONResponse = ClassificationTaskLabel
func (GetProjectProjectIdClassificationTaskLabelId200JSONResponse) VisitGetProjectProjectIdClassificationTaskLabelIdResponse ¶
func (response GetProjectProjectIdClassificationTaskLabelId200JSONResponse) VisitGetProjectProjectIdClassificationTaskLabelIdResponse(w http.ResponseWriter) error
type GetProjectProjectIdClassificationTaskLabelId404Response ¶
type GetProjectProjectIdClassificationTaskLabelId404Response struct { }
func (GetProjectProjectIdClassificationTaskLabelId404Response) VisitGetProjectProjectIdClassificationTaskLabelIdResponse ¶
func (response GetProjectProjectIdClassificationTaskLabelId404Response) VisitGetProjectProjectIdClassificationTaskLabelIdResponse(w http.ResponseWriter) error
type GetProjectProjectIdClassificationTaskLabelIdResponseObject ¶
type GetProjectProjectIdClassificationTaskLabelIdResponseObject interface {
VisitGetProjectProjectIdClassificationTaskLabelIdResponse(w http.ResponseWriter) error
}
type GetProjectProjectIdClassificationTasks200JSONResponse ¶
type GetProjectProjectIdClassificationTasks200JSONResponse = ClassificationTaskList
func (GetProjectProjectIdClassificationTasks200JSONResponse) VisitGetProjectProjectIdClassificationTasksResponse ¶
func (response GetProjectProjectIdClassificationTasks200JSONResponse) VisitGetProjectProjectIdClassificationTasksResponse(w http.ResponseWriter) error
type GetProjectProjectIdClassificationTasks404Response ¶
type GetProjectProjectIdClassificationTasks404Response struct { }
func (GetProjectProjectIdClassificationTasks404Response) VisitGetProjectProjectIdClassificationTasksResponse ¶
func (response GetProjectProjectIdClassificationTasks404Response) VisitGetProjectProjectIdClassificationTasksResponse(w http.ResponseWriter) error
type GetProjectProjectIdClassificationTasksParams ¶
type GetProjectProjectIdClassificationTasksParams struct { // Page The page number Page *Page `form:"page,omitempty" json:"page,omitempty"` // PageSize The number of results per page PageSize *PageSize `form:"page_size,omitempty" json:"page_size,omitempty"` }
GetProjectProjectIdClassificationTasksParams defines parameters for GetProjectProjectIdClassificationTasks.
type GetProjectProjectIdClassificationTasksRequestObject ¶
type GetProjectProjectIdClassificationTasksRequestObject struct { ProjectId int64 `json:"project_id"` Params GetProjectProjectIdClassificationTasksParams }
type GetProjectProjectIdClassificationTasksResponseObject ¶
type GetProjectProjectIdClassificationTasksResponseObject interface {
VisitGetProjectProjectIdClassificationTasksResponse(w http.ResponseWriter) error
}
type GetProjectProjectIdPendingClassificationTasks200JSONResponse ¶
type GetProjectProjectIdPendingClassificationTasks200JSONResponse = PendingClassificationTaskList
func (GetProjectProjectIdPendingClassificationTasks200JSONResponse) VisitGetProjectProjectIdPendingClassificationTasksResponse ¶
func (response GetProjectProjectIdPendingClassificationTasks200JSONResponse) VisitGetProjectProjectIdPendingClassificationTasksResponse(w http.ResponseWriter) error
type GetProjectProjectIdPendingClassificationTasks404Response ¶
type GetProjectProjectIdPendingClassificationTasks404Response struct { }
func (GetProjectProjectIdPendingClassificationTasks404Response) VisitGetProjectProjectIdPendingClassificationTasksResponse ¶
func (response GetProjectProjectIdPendingClassificationTasks404Response) VisitGetProjectProjectIdPendingClassificationTasksResponse(w http.ResponseWriter) error
type GetProjectProjectIdPendingClassificationTasksParams ¶
type GetProjectProjectIdPendingClassificationTasksParams struct { // Page The page number Page *Page `form:"page,omitempty" json:"page,omitempty"` // PageSize The number of results per page PageSize *PageSize `form:"page_size,omitempty" json:"page_size,omitempty"` }
GetProjectProjectIdPendingClassificationTasksParams defines parameters for GetProjectProjectIdPendingClassificationTasks.
type GetProjectProjectIdPendingClassificationTasksRequestObject ¶
type GetProjectProjectIdPendingClassificationTasksRequestObject struct { ProjectId int64 `json:"project_id"` Params GetProjectProjectIdPendingClassificationTasksParams }
type GetProjectProjectIdPendingClassificationTasksResponseObject ¶
type GetProjectProjectIdPendingClassificationTasksResponseObject interface {
VisitGetProjectProjectIdPendingClassificationTasksResponse(w http.ResponseWriter) error
}
type GetProjects200JSONResponse ¶
type GetProjects200JSONResponse = Projects
func (GetProjects200JSONResponse) VisitGetProjectsResponse ¶
func (response GetProjects200JSONResponse) VisitGetProjectsResponse(w http.ResponseWriter) error
type GetProjectsRequestObject ¶
type GetProjectsRequestObject struct { }
type GetProjectsResponseObject ¶
type GetProjectsResponseObject interface {
VisitGetProjectsResponse(w http.ResponseWriter) error
}
type InvalidParamFormatError ¶
func (*InvalidParamFormatError) Error ¶
func (e *InvalidParamFormatError) Error() string
func (*InvalidParamFormatError) Unwrap ¶
func (e *InvalidParamFormatError) Unwrap() error
type LabelTask ¶
type LabelTask struct {
Label int64 `json:"label"`
}
LabelTask defines model for LabelTask.
type PendingClassificationTask ¶
type PendingClassificationTask struct { CreatedAt time.Time `json:"created_at"` Embeddings map[string]Embedding `json:"embeddings"` Id int64 `json:"id"` LlmInput string `json:"llm_input"` LlmOutput string `json:"llm_output"` ProjectId int64 `json:"project_id"` }
PendingClassificationTask defines model for PendingClassificationTask.
type PendingClassificationTaskList ¶
type PendingClassificationTaskList struct { Data []PendingClassificationTask `json:"data"` Total uint64 `json:"total"` }
PendingClassificationTaskList defines model for PendingClassificationTaskList.
type PostProject201JSONResponse ¶
type PostProject201JSONResponse = Project
func (PostProject201JSONResponse) VisitPostProjectResponse ¶
func (response PostProject201JSONResponse) VisitPostProjectResponse(w http.ResponseWriter) error
type PostProject303Response ¶
type PostProject303Response = RedirectResponse
func (PostProject303Response) VisitPostProjectResponse ¶
func (response PostProject303Response) VisitPostProjectResponse(w http.ResponseWriter) error
type PostProjectFormdataRequestBody ¶
type PostProjectFormdataRequestBody = CreateProject
PostProjectFormdataRequestBody defines body for PostProject for application/x-www-form-urlencoded ContentType.
type PostProjectProjectIdClassificationTask201JSONResponse ¶
type PostProjectProjectIdClassificationTask201JSONResponse = PendingClassificationTask
func (PostProjectProjectIdClassificationTask201JSONResponse) VisitPostProjectProjectIdClassificationTaskResponse ¶
func (response PostProjectProjectIdClassificationTask201JSONResponse) VisitPostProjectProjectIdClassificationTaskResponse(w http.ResponseWriter) error
type PostProjectProjectIdClassificationTask303Response ¶
type PostProjectProjectIdClassificationTask303Response = RedirectResponse
func (PostProjectProjectIdClassificationTask303Response) VisitPostProjectProjectIdClassificationTaskResponse ¶
func (response PostProjectProjectIdClassificationTask303Response) VisitPostProjectProjectIdClassificationTaskResponse(w http.ResponseWriter) error
type PostProjectProjectIdClassificationTask409Response ¶
type PostProjectProjectIdClassificationTask409Response = ConflictResponse
func (PostProjectProjectIdClassificationTask409Response) VisitPostProjectProjectIdClassificationTaskResponse ¶
func (response PostProjectProjectIdClassificationTask409Response) VisitPostProjectProjectIdClassificationTaskResponse(w http.ResponseWriter) error
type PostProjectProjectIdClassificationTaskFormdataRequestBody ¶
type PostProjectProjectIdClassificationTaskFormdataRequestBody = CreateClassificationTask
PostProjectProjectIdClassificationTaskFormdataRequestBody defines body for PostProjectProjectIdClassificationTask for application/x-www-form-urlencoded ContentType.
type PostProjectProjectIdClassificationTaskIdLabel200JSONResponse ¶
type PostProjectProjectIdClassificationTaskIdLabel200JSONResponse = ClassificationTask
func (PostProjectProjectIdClassificationTaskIdLabel200JSONResponse) VisitPostProjectProjectIdClassificationTaskIdLabelResponse ¶
func (response PostProjectProjectIdClassificationTaskIdLabel200JSONResponse) VisitPostProjectProjectIdClassificationTaskIdLabelResponse(w http.ResponseWriter) error
type PostProjectProjectIdClassificationTaskIdLabel303Response ¶
type PostProjectProjectIdClassificationTaskIdLabel303Response = RedirectResponse
func (PostProjectProjectIdClassificationTaskIdLabel303Response) VisitPostProjectProjectIdClassificationTaskIdLabelResponse ¶
func (response PostProjectProjectIdClassificationTaskIdLabel303Response) VisitPostProjectProjectIdClassificationTaskIdLabelResponse(w http.ResponseWriter) error
type PostProjectProjectIdClassificationTaskIdLabel404Response ¶
type PostProjectProjectIdClassificationTaskIdLabel404Response struct { }
func (PostProjectProjectIdClassificationTaskIdLabel404Response) VisitPostProjectProjectIdClassificationTaskIdLabelResponse ¶
func (response PostProjectProjectIdClassificationTaskIdLabel404Response) VisitPostProjectProjectIdClassificationTaskIdLabelResponse(w http.ResponseWriter) error
type PostProjectProjectIdClassificationTaskIdLabelFormdataRequestBody ¶
type PostProjectProjectIdClassificationTaskIdLabelFormdataRequestBody = LabelTask
PostProjectProjectIdClassificationTaskIdLabelFormdataRequestBody defines body for PostProjectProjectIdClassificationTaskIdLabel for application/x-www-form-urlencoded ContentType.
type PostProjectProjectIdClassificationTaskIdLabelRequestObject ¶
type PostProjectProjectIdClassificationTaskIdLabelRequestObject struct { ProjectId int64 `json:"project_id"` Id int64 `json:"id"` Body *PostProjectProjectIdClassificationTaskIdLabelFormdataRequestBody }
type PostProjectProjectIdClassificationTaskIdLabelResponseObject ¶
type PostProjectProjectIdClassificationTaskIdLabelResponseObject interface {
VisitPostProjectProjectIdClassificationTaskIdLabelResponse(w http.ResponseWriter) error
}
type PostProjectProjectIdClassificationTaskJSONRequestBody ¶
type PostProjectProjectIdClassificationTaskJSONRequestBody = CreateClassificationTask
PostProjectProjectIdClassificationTaskJSONRequestBody defines body for PostProjectProjectIdClassificationTask for application/json ContentType.
type PostProjectProjectIdClassificationTaskLabel201JSONResponse ¶
type PostProjectProjectIdClassificationTaskLabel201JSONResponse = ClassificationTaskLabel
func (PostProjectProjectIdClassificationTaskLabel201JSONResponse) VisitPostProjectProjectIdClassificationTaskLabelResponse ¶
func (response PostProjectProjectIdClassificationTaskLabel201JSONResponse) VisitPostProjectProjectIdClassificationTaskLabelResponse(w http.ResponseWriter) error
type PostProjectProjectIdClassificationTaskLabel303Response ¶
type PostProjectProjectIdClassificationTaskLabel303Response = RedirectResponse
func (PostProjectProjectIdClassificationTaskLabel303Response) VisitPostProjectProjectIdClassificationTaskLabelResponse ¶
func (response PostProjectProjectIdClassificationTaskLabel303Response) VisitPostProjectProjectIdClassificationTaskLabelResponse(w http.ResponseWriter) error
type PostProjectProjectIdClassificationTaskLabelFormdataRequestBody ¶
type PostProjectProjectIdClassificationTaskLabelFormdataRequestBody = CreateClassificationTaskLabel
PostProjectProjectIdClassificationTaskLabelFormdataRequestBody defines body for PostProjectProjectIdClassificationTaskLabel for application/x-www-form-urlencoded ContentType.
type PostProjectProjectIdClassificationTaskLabelRequestObject ¶
type PostProjectProjectIdClassificationTaskLabelRequestObject struct { ProjectId int64 `json:"project_id"` Body *PostProjectProjectIdClassificationTaskLabelFormdataRequestBody }
type PostProjectProjectIdClassificationTaskLabelResponseObject ¶
type PostProjectProjectIdClassificationTaskLabelResponseObject interface {
VisitPostProjectProjectIdClassificationTaskLabelResponse(w http.ResponseWriter) error
}
type PostProjectProjectIdClassificationTaskRequestObject ¶
type PostProjectProjectIdClassificationTaskRequestObject struct { ProjectId int64 `json:"project_id"` JSONBody *PostProjectProjectIdClassificationTaskJSONRequestBody FormdataBody *PostProjectProjectIdClassificationTaskFormdataRequestBody }
type PostProjectProjectIdClassificationTaskResponseObject ¶
type PostProjectProjectIdClassificationTaskResponseObject interface {
VisitPostProjectProjectIdClassificationTaskResponse(w http.ResponseWriter) error
}
type PostProjectRequestObject ¶
type PostProjectRequestObject struct {
Body *PostProjectFormdataRequestBody
}
type PostProjectResponseObject ¶
type PostProjectResponseObject interface {
VisitPostProjectResponse(w http.ResponseWriter) error
}
type Project ¶
type Project struct { CreatedAt time.Time `json:"created_at"` Description string `json:"description"` Id int64 `json:"id"` Labels *[]ClassificationTaskLabel `json:"labels,omitempty"` Name string `json:"name"` }
Project defines model for Project.
type Projects ¶
type Projects struct {
Projects *[]Project `json:"projects,omitempty"`
}
Projects defines model for Projects.
type RedirectResponse ¶
type RedirectResponse struct {
Headers RedirectResponseHeaders
}
type RedirectResponseHeaders ¶
type RedirectResponseHeaders struct {
Location Location
}
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 { // (GET /openapi.json) GetOpenapiJson(w http.ResponseWriter, r *http.Request) // (POST /project) PostProject(w http.ResponseWriter, r *http.Request) // (GET /project/{id}) GetProjectId(w http.ResponseWriter, r *http.Request, id int64) // (POST /project/{project_id}/classification_task) PostProjectProjectIdClassificationTask(w http.ResponseWriter, r *http.Request, projectId int64) // (GET /project/{project_id}/classification_task/{id}) GetProjectProjectIdClassificationTaskId(w http.ResponseWriter, r *http.Request, projectId int64, id int64) // (POST /project/{project_id}/classification_task/{id}/label) PostProjectProjectIdClassificationTaskIdLabel(w http.ResponseWriter, r *http.Request, projectId int64, id int64) // (POST /project/{project_id}/classification_task_label) PostProjectProjectIdClassificationTaskLabel(w http.ResponseWriter, r *http.Request, projectId int64) // (GET /project/{project_id}/classification_task_label/{id}) GetProjectProjectIdClassificationTaskLabelId(w http.ResponseWriter, r *http.Request, projectId int64, id int64) // (GET /project/{project_id}/classification_tasks) GetProjectProjectIdClassificationTasks(w http.ResponseWriter, r *http.Request, projectId int64, params GetProjectProjectIdClassificationTasksParams) // (GET /project/{project_id}/pending_classification_tasks) GetProjectProjectIdPendingClassificationTasks(w http.ResponseWriter, r *http.Request, projectId int64, params GetProjectProjectIdPendingClassificationTasksParams) // (GET /projects) GetProjects(w http.ResponseWriter, r *http.Request) }
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) GetOpenapiJson ¶
func (siw *ServerInterfaceWrapper) GetOpenapiJson(w http.ResponseWriter, r *http.Request)
GetOpenapiJson operation middleware
func (*ServerInterfaceWrapper) GetProjectId ¶
func (siw *ServerInterfaceWrapper) GetProjectId(w http.ResponseWriter, r *http.Request)
GetProjectId operation middleware
func (*ServerInterfaceWrapper) GetProjectProjectIdClassificationTaskId ¶
func (siw *ServerInterfaceWrapper) GetProjectProjectIdClassificationTaskId(w http.ResponseWriter, r *http.Request)
GetProjectProjectIdClassificationTaskId operation middleware
func (*ServerInterfaceWrapper) GetProjectProjectIdClassificationTaskLabelId ¶
func (siw *ServerInterfaceWrapper) GetProjectProjectIdClassificationTaskLabelId(w http.ResponseWriter, r *http.Request)
GetProjectProjectIdClassificationTaskLabelId operation middleware
func (*ServerInterfaceWrapper) GetProjectProjectIdClassificationTasks ¶
func (siw *ServerInterfaceWrapper) GetProjectProjectIdClassificationTasks(w http.ResponseWriter, r *http.Request)
GetProjectProjectIdClassificationTasks operation middleware
func (*ServerInterfaceWrapper) GetProjectProjectIdPendingClassificationTasks ¶
func (siw *ServerInterfaceWrapper) GetProjectProjectIdPendingClassificationTasks(w http.ResponseWriter, r *http.Request)
GetProjectProjectIdPendingClassificationTasks operation middleware
func (*ServerInterfaceWrapper) GetProjects ¶
func (siw *ServerInterfaceWrapper) GetProjects(w http.ResponseWriter, r *http.Request)
GetProjects operation middleware
func (*ServerInterfaceWrapper) PostProject ¶
func (siw *ServerInterfaceWrapper) PostProject(w http.ResponseWriter, r *http.Request)
PostProject operation middleware
func (*ServerInterfaceWrapper) PostProjectProjectIdClassificationTask ¶
func (siw *ServerInterfaceWrapper) PostProjectProjectIdClassificationTask(w http.ResponseWriter, r *http.Request)
PostProjectProjectIdClassificationTask operation middleware
func (*ServerInterfaceWrapper) PostProjectProjectIdClassificationTaskIdLabel ¶
func (siw *ServerInterfaceWrapper) PostProjectProjectIdClassificationTaskIdLabel(w http.ResponseWriter, r *http.Request)
PostProjectProjectIdClassificationTaskIdLabel operation middleware
func (*ServerInterfaceWrapper) PostProjectProjectIdClassificationTaskLabel ¶
func (siw *ServerInterfaceWrapper) PostProjectProjectIdClassificationTaskLabel(w http.ResponseWriter, r *http.Request)
PostProjectProjectIdClassificationTaskLabel 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 { // (GET /openapi.json) GetOpenapiJson(ctx context.Context, request GetOpenapiJsonRequestObject) (GetOpenapiJsonResponseObject, error) // (POST /project) PostProject(ctx context.Context, request PostProjectRequestObject) (PostProjectResponseObject, error) // (GET /project/{id}) GetProjectId(ctx context.Context, request GetProjectIdRequestObject) (GetProjectIdResponseObject, error) // (POST /project/{project_id}/classification_task) PostProjectProjectIdClassificationTask(ctx context.Context, request PostProjectProjectIdClassificationTaskRequestObject) (PostProjectProjectIdClassificationTaskResponseObject, error) // (GET /project/{project_id}/classification_task/{id}) GetProjectProjectIdClassificationTaskId(ctx context.Context, request GetProjectProjectIdClassificationTaskIdRequestObject) (GetProjectProjectIdClassificationTaskIdResponseObject, error) // (POST /project/{project_id}/classification_task/{id}/label) PostProjectProjectIdClassificationTaskIdLabel(ctx context.Context, request PostProjectProjectIdClassificationTaskIdLabelRequestObject) (PostProjectProjectIdClassificationTaskIdLabelResponseObject, error) // (POST /project/{project_id}/classification_task_label) PostProjectProjectIdClassificationTaskLabel(ctx context.Context, request PostProjectProjectIdClassificationTaskLabelRequestObject) (PostProjectProjectIdClassificationTaskLabelResponseObject, error) // (GET /project/{project_id}/classification_task_label/{id}) GetProjectProjectIdClassificationTaskLabelId(ctx context.Context, request GetProjectProjectIdClassificationTaskLabelIdRequestObject) (GetProjectProjectIdClassificationTaskLabelIdResponseObject, error) // (GET /project/{project_id}/classification_tasks) GetProjectProjectIdClassificationTasks(ctx context.Context, request GetProjectProjectIdClassificationTasksRequestObject) (GetProjectProjectIdClassificationTasksResponseObject, error) // (GET /project/{project_id}/pending_classification_tasks) GetProjectProjectIdPendingClassificationTasks(ctx context.Context, request GetProjectProjectIdPendingClassificationTasksRequestObject) (GetProjectProjectIdPendingClassificationTasksResponseObject, error) // (GET /projects) GetProjects(ctx context.Context, request GetProjectsRequestObject) (GetProjectsResponseObject, error) }
StrictServerInterface represents all server handlers.
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) GetOpenapiJson ¶
func (_ Unimplemented) GetOpenapiJson(w http.ResponseWriter, r *http.Request)
(GET /openapi.json)
func (Unimplemented) GetProjectId ¶
func (_ Unimplemented) GetProjectId(w http.ResponseWriter, r *http.Request, id int64)
(GET /project/{id})
func (Unimplemented) GetProjectProjectIdClassificationTaskId ¶
func (_ Unimplemented) GetProjectProjectIdClassificationTaskId(w http.ResponseWriter, r *http.Request, projectId int64, id int64)
(GET /project/{project_id}/classification_task/{id})
func (Unimplemented) GetProjectProjectIdClassificationTaskLabelId ¶
func (_ Unimplemented) GetProjectProjectIdClassificationTaskLabelId(w http.ResponseWriter, r *http.Request, projectId int64, id int64)
(GET /project/{project_id}/classification_task_label/{id})
func (Unimplemented) GetProjectProjectIdClassificationTasks ¶
func (_ Unimplemented) GetProjectProjectIdClassificationTasks(w http.ResponseWriter, r *http.Request, projectId int64, params GetProjectProjectIdClassificationTasksParams)
(GET /project/{project_id}/classification_tasks)
func (Unimplemented) GetProjectProjectIdPendingClassificationTasks ¶
func (_ Unimplemented) GetProjectProjectIdPendingClassificationTasks(w http.ResponseWriter, r *http.Request, projectId int64, params GetProjectProjectIdPendingClassificationTasksParams)
(GET /project/{project_id}/pending_classification_tasks)
func (Unimplemented) GetProjects ¶
func (_ Unimplemented) GetProjects(w http.ResponseWriter, r *http.Request)
(GET /projects)
func (Unimplemented) PostProject ¶
func (_ Unimplemented) PostProject(w http.ResponseWriter, r *http.Request)
(POST /project)
func (Unimplemented) PostProjectProjectIdClassificationTask ¶
func (_ Unimplemented) PostProjectProjectIdClassificationTask(w http.ResponseWriter, r *http.Request, projectId int64)
(POST /project/{project_id}/classification_task)
func (Unimplemented) PostProjectProjectIdClassificationTaskIdLabel ¶
func (_ Unimplemented) PostProjectProjectIdClassificationTaskIdLabel(w http.ResponseWriter, r *http.Request, projectId int64, id int64)
(POST /project/{project_id}/classification_task/{id}/label)
func (Unimplemented) PostProjectProjectIdClassificationTaskLabel ¶
func (_ Unimplemented) PostProjectProjectIdClassificationTaskLabel(w http.ResponseWriter, r *http.Request, projectId int64)
(POST /project/{project_id}/classification_task_label)
type UnmarshalingParamError ¶
func (*UnmarshalingParamError) Error ¶
func (e *UnmarshalingParamError) Error() string
func (*UnmarshalingParamError) Unwrap ¶
func (e *UnmarshalingParamError) Unwrap() error