openapi

package
v0.0.0-...-26e77a4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 27, 2024 License: AGPL-3.0 Imports: 15 Imported by: 0

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSwagger

func GetSwagger() (swagger *openapi3.T, err error)

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 PathToRawSpec

func PathToRawSpec(pathToFile string) map[string]func() ([]byte, error)

Constructs a synthetic filesystem for resolving external references when loading openapi specifications.

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

AsClassificationTask returns the union data inside the ClassificationTaskOrPendingClassificationTask as a ClassificationTask

func (ClassificationTaskOrPendingClassificationTask) AsPendingClassificationTask

AsPendingClassificationTask returns the union data inside the ClassificationTaskOrPendingClassificationTask as a PendingClassificationTask

func (*ClassificationTaskOrPendingClassificationTask) FromClassificationTask

FromClassificationTask overwrites any union data inside the ClassificationTaskOrPendingClassificationTask as the provided ClassificationTask

func (*ClassificationTaskOrPendingClassificationTask) FromPendingClassificationTask

FromPendingClassificationTask overwrites any union data inside the ClassificationTaskOrPendingClassificationTask as the provided PendingClassificationTask

func (ClassificationTaskOrPendingClassificationTask) MarshalJSON

func (*ClassificationTaskOrPendingClassificationTask) MergeClassificationTask

MergeClassificationTask performs a merge with any union data inside the ClassificationTaskOrPendingClassificationTask, using the provided ClassificationTask

func (*ClassificationTaskOrPendingClassificationTask) MergePendingClassificationTask

MergePendingClassificationTask performs a merge with any union data inside the ClassificationTaskOrPendingClassificationTask, using the provided PendingClassificationTask

func (*ClassificationTaskOrPendingClassificationTask) UnmarshalJSON

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

type CreateProject struct {
	Description string `json:"description"`
	Name        string `json:"name"`
}

CreateProject defines model for CreateProject.

type Embedding

type Embedding = []byte

Embedding defines model for Embedding.

type GetOpenapiJson200JSONResponse

type GetOpenapiJson200JSONResponse openapi3.T

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 GetProjectProjectIdClassificationTaskIdRequestObject

type GetProjectProjectIdClassificationTaskIdRequestObject struct {
	ProjectId int64 `json:"project_id"`
	Id        int64 `json:"id"`
}

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 GetProjectProjectIdClassificationTaskLabelIdRequestObject

type GetProjectProjectIdClassificationTaskLabelIdRequestObject struct {
	ProjectId int64 `json:"project_id"`
	Id        int64 `json:"id"`
}

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

type InvalidParamFormatError struct {
	ParamName string
	Err       error
}

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 Location

type Location = string

Location defines model for Location.

type MiddlewareFunc

type MiddlewareFunc func(http.Handler) http.Handler

type Page

type Page = uint64

Page defines model for Page.

type PageSize

type PageSize = uint64

PageSize defines model for PageSize.

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

type RequiredHeaderError struct {
	ParamName string
	Err       error
}

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 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

type TooManyValuesForParamError struct {
	ParamName string
	Count     int
}

func (*TooManyValuesForParamError) Error

type UnescapedCookieParamError

type UnescapedCookieParamError struct {
	ParamName string
	Err       error
}

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

type UnmarshalingParamError struct {
	ParamName string
	Err       error
}

func (*UnmarshalingParamError) Error

func (e *UnmarshalingParamError) Error() string

func (*UnmarshalingParamError) Unwrap

func (e *UnmarshalingParamError) Unwrap() error

Jump to

Keyboard shortcuts

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