rest

package
v0.0.0-...-5d14948 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2025 License: Apache-2.0 Imports: 67 Imported by: 0

Documentation

Overview

*

  • IMPORTANT: all structs in models.go will always be generated as OpenAPI schemas.
  • Generated "Rest*" schemas must be ignored.
  • TODO: struct type grouping not supported in gen.

Package rest provides primitives to interact with the openapi HTTP API.

Code generated by unknown module path version unknown version DO NOT EDIT.

Index

Constants

View Source
const (
	ApiKeyHeaderKey        = "x-api-key"
	AuthorizationHeaderKey = "authorization"
)
View Source
const OtelName = "github.com/danicc097/openapi-go-gin-postgres-sqlc/internal/rest"
View Source
const ValidationErrorSeparator = "$$$$"

Variables

View Source
var Alphanumspace validator.Func = func(fl validator.FieldLevel) bool {
	return alphanumSpaceRegex.MatchString(fl.Field().String())
}

Functions

func CtxWithRequestError

func CtxWithRequestError(c *gin.Context)

CtxWithRequestError signals that the current request has an error.

func CtxWithSpan

func CtxWithSpan(c *gin.Context, span trace.Span)

func CtxWithTx

func CtxWithTx(c *gin.Context, tx pgx.Tx)

func CtxWithUserCaller

func CtxWithUserCaller(c *gin.Context, user *models.User)

func CtxWithUserInfo

func CtxWithUserInfo(c *gin.Context, userinfo []byte)

func CustomSchemaErrorFunc

func CustomSchemaErrorFunc(err *openapi3.SchemaError) string

func GetGinContextFromCtx

func GetGinContextFromCtx(c context.Context) *gin.Context

Helper function to get the gin context from within requests. It returns nil if not found or wrong type. Useful for kin-openapi functions which only accept context.

func GetRequestHasErrorFromCtx

func GetRequestHasErrorFromCtx(c *gin.Context) bool

GetRequestHasErrorFromCtx returns whether the current request has an error.

func GetRequestIDFromCtx

func GetRequestIDFromCtx(ctx context.Context) string

NOTE: request ID is set on Request's context since it may be used by services.

func GetSkipRequestValidationFromCtx

func GetSkipRequestValidationFromCtx(c *gin.Context) bool

func GetSkipResponseValidationFromCtx

func GetSkipResponseValidationFromCtx(c *gin.Context) bool

func GetSpanFromCtx

func GetSpanFromCtx(c *gin.Context) trace.Span

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 GetTxFromCtx

func GetTxFromCtx(c *gin.Context) pgx.Tx

GetTxFromCtx returns the ongoing db transaction. Automatic commit and rollback is handled in db middleware.

func GetUserCallerFromCtx

func GetUserCallerFromCtx(c *gin.Context) (services.CtxUser, error)

GetUserCallerFromCtx returns basic information from the current user.

func GetUserDataFromCtx

func GetUserDataFromCtx(c context.Context) any

func GetUserInfoFromCtx

func GetUserInfoFromCtx(c *gin.Context) (*oidc.UserInfo, error)

func LogResponseMiddleware

func LogResponseMiddleware(out io.Writer) gin.HandlerFunc

func NewAuthMiddleware

func NewAuthMiddleware(
	logger *zap.SugaredLogger, pool *pgxpool.Pool,
	svcs *services.Services,
) *authMiddleware

func NewOpenapiMiddleware

func NewOpenapiMiddleware(
	logger *zap.SugaredLogger, spec *openapi3.T,
) *openapiMiddleware

TODO kin-openapi already has middleware, possibly added after this was created - see openapi3filter.NewValidator and tests/examples we just need to add our own onError func and wrap it all in gin.WrapH there's also onLog to use zap.

func PathToRawSpec

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

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

func ReadOpenAPI

func ReadOpenAPI(path string) (*openapi3.T, error)

ReadOpenAPI parses and validates an OpenAPI spec by filename and returns it.

func RegisterHandlers

func RegisterHandlers(router gin.IRouter, si ServerInterface)

RegisterHandlers creates http.Handler with routing matching OpenAPI spec.

func RegisterHandlersWithOptions

func RegisterHandlersWithOptions(router gin.IRouter, si ServerInterface, options GinServerOptions)

RegisterHandlersWithOptions creates http.Handler with additional options

func Run

func Run(env, specPath string) (<-chan error, error)

Run configures a server and underlying services with the given configuration. NewServer takes its own config as is now.

func ValidateRequestFromContext

func ValidateRequestFromContext(c *gin.Context, router routers.Router, options *OAValidatorOptions) error

ValidateRequestFromContext is called from the middleware above and actually does the work of validating a request.

Types

type ActivityResponse

type ActivityResponse struct {
	models.Activity
}

type AdminPing200TextResponse

type AdminPing200TextResponse string

func (AdminPing200TextResponse) VisitAdminPingResponse

func (response AdminPing200TextResponse) VisitAdminPingResponse(w http.ResponseWriter) error

type AdminPing401Response

type AdminPing401Response struct{}

func (AdminPing401Response) VisitAdminPingResponse

func (response AdminPing401Response) VisitAdminPingResponse(w http.ResponseWriter) error

type AdminPing403Response

type AdminPing403Response struct{}

func (AdminPing403Response) VisitAdminPingResponse

func (response AdminPing403Response) VisitAdminPingResponse(w http.ResponseWriter) error

type AdminPing4XXJSONResponse

type AdminPing4XXJSONResponse struct {
	Body       externalRef0.HTTPError
	StatusCode int
}

func (AdminPing4XXJSONResponse) VisitAdminPingResponse

func (response AdminPing4XXJSONResponse) VisitAdminPingResponse(w http.ResponseWriter) error

type AdminPingRequestObject

type AdminPingRequestObject struct{}

type AdminPingResponseObject

type AdminPingResponseObject interface {
	VisitAdminPingResponse(w http.ResponseWriter) error
}

type AuthRestriction

type AuthRestriction struct {
	MinimumRole    models.Role
	RequiredScopes models.Scopes
}

type CacheDemoWorkItemResponse

type CacheDemoWorkItemResponse struct {
	models.CacheDemoWorkItem
}

type ClientMessage

type ClientMessage struct {
	Message string
	Topic   models.Topic
	// SendOnFailedRequest defines whether the event should be dispatched
	// even on failed requests.
	SendOnFailedRequest bool
}

type Clients

type Clients map[chan ClientMessage]struct{}

type Config

type Config struct {
	// Port to listen to. Use ":0" for a random port.
	Address string
	Pool    *pgxpool.Pool
	SQLPool *sql.DB
	Redis   *rv8.Client
	Logger  *zap.SugaredLogger
	// SpecPath is the OpenAPI spec filepath.
	SpecPath               string
	MovieSvcClient         v1.MovieGenreClient
	MyProviderCallbackPath string
}

type CreateActivity201JSONResponse

type CreateActivity201JSONResponse ActivityResponse

func (CreateActivity201JSONResponse) VisitCreateActivityResponse

func (response CreateActivity201JSONResponse) VisitCreateActivityResponse(w http.ResponseWriter) error

type CreateActivity401Response

type CreateActivity401Response struct{}

func (CreateActivity401Response) VisitCreateActivityResponse

func (response CreateActivity401Response) VisitCreateActivityResponse(w http.ResponseWriter) error

type CreateActivity403Response

type CreateActivity403Response struct{}

func (CreateActivity403Response) VisitCreateActivityResponse

func (response CreateActivity403Response) VisitCreateActivityResponse(w http.ResponseWriter) error

type CreateActivity4XXJSONResponse

type CreateActivity4XXJSONResponse struct {
	Body       externalRef0.HTTPError
	StatusCode int
}

func (CreateActivity4XXJSONResponse) VisitCreateActivityResponse

func (response CreateActivity4XXJSONResponse) VisitCreateActivityResponse(w http.ResponseWriter) error

type CreateActivityRequest

type CreateActivityRequest struct {
	models.ActivityCreateParams
}

type CreateActivityRequestObject

type CreateActivityRequestObject struct {
	ProjectName externalRef0.ProjectName `json:"projectName"`
	Body        *CreateActivityRequest
}

type CreateActivityResponseObject

type CreateActivityResponseObject interface {
	VisitCreateActivityResponse(w http.ResponseWriter) error
}

type CreateDemoTwoWorkItemRequest

type CreateDemoTwoWorkItemRequest struct {
	ProjectName models.ProjectName `json:"projectName" ref:"#/components/schemas/ProjectName" required:"true"`
	services.DemoTwoWorkItemCreateParams
}

type CreateDemoWorkItemRequest

type CreateDemoWorkItemRequest struct {
	ProjectName models.ProjectName `json:"projectName" ref:"#/components/schemas/ProjectName" required:"true"`
	services.DemoWorkItemCreateParams
}

type CreateProjectBoardRequest

type CreateProjectBoardRequest struct {
	// services models not needed yet, projectId is trivial to include in every request...
	// if services use db CreateParams as is we can also have specific per-project logic
	// anyway
	Teams *[]models.TeamCreateParams        `json:"teams"`
	Tags  *[]models.WorkItemTagCreateParams `json:"tags"`
}

type CreateTeam201JSONResponse

type CreateTeam201JSONResponse TeamResponse

func (CreateTeam201JSONResponse) VisitCreateTeamResponse

func (response CreateTeam201JSONResponse) VisitCreateTeamResponse(w http.ResponseWriter) error

type CreateTeam401Response

type CreateTeam401Response struct{}

func (CreateTeam401Response) VisitCreateTeamResponse

func (response CreateTeam401Response) VisitCreateTeamResponse(w http.ResponseWriter) error

type CreateTeam403Response

type CreateTeam403Response struct{}

func (CreateTeam403Response) VisitCreateTeamResponse

func (response CreateTeam403Response) VisitCreateTeamResponse(w http.ResponseWriter) error

type CreateTeam4XXJSONResponse

type CreateTeam4XXJSONResponse struct {
	Body       externalRef0.HTTPError
	StatusCode int
}

func (CreateTeam4XXJSONResponse) VisitCreateTeamResponse

func (response CreateTeam4XXJSONResponse) VisitCreateTeamResponse(w http.ResponseWriter) error

type CreateTeamRequest

type CreateTeamRequest struct {
	models.TeamCreateParams
}

type CreateTeamRequestObject

type CreateTeamRequestObject struct {
	ProjectName externalRef0.ProjectName `json:"projectName"`
	Body        *CreateTeamRequest
}

type CreateTeamResponseObject

type CreateTeamResponseObject interface {
	VisitCreateTeamResponse(w http.ResponseWriter) error
}

type CreateTimeEntry201JSONResponse

type CreateTimeEntry201JSONResponse TimeEntryResponse

func (CreateTimeEntry201JSONResponse) VisitCreateTimeEntryResponse

func (response CreateTimeEntry201JSONResponse) VisitCreateTimeEntryResponse(w http.ResponseWriter) error

type CreateTimeEntry401Response

type CreateTimeEntry401Response struct{}

func (CreateTimeEntry401Response) VisitCreateTimeEntryResponse

func (response CreateTimeEntry401Response) VisitCreateTimeEntryResponse(w http.ResponseWriter) error

type CreateTimeEntry403Response

type CreateTimeEntry403Response struct{}

func (CreateTimeEntry403Response) VisitCreateTimeEntryResponse

func (response CreateTimeEntry403Response) VisitCreateTimeEntryResponse(w http.ResponseWriter) error

type CreateTimeEntry4XXJSONResponse

type CreateTimeEntry4XXJSONResponse struct {
	Body       externalRef0.HTTPError
	StatusCode int
}

func (CreateTimeEntry4XXJSONResponse) VisitCreateTimeEntryResponse

func (response CreateTimeEntry4XXJSONResponse) VisitCreateTimeEntryResponse(w http.ResponseWriter) error

type CreateTimeEntryRequest

type CreateTimeEntryRequest struct {
	models.TimeEntryCreateParams
}

type CreateTimeEntryRequestObject

type CreateTimeEntryRequestObject struct {
	Body *CreateTimeEntryRequest
}

type CreateTimeEntryResponseObject

type CreateTimeEntryResponseObject interface {
	VisitCreateTimeEntryResponse(w http.ResponseWriter) error
}

type CreateWorkItemComment201JSONResponse

type CreateWorkItemComment201JSONResponse WorkItemCommentResponse

func (CreateWorkItemComment201JSONResponse) VisitCreateWorkItemCommentResponse

func (response CreateWorkItemComment201JSONResponse) VisitCreateWorkItemCommentResponse(w http.ResponseWriter) error

type CreateWorkItemComment401Response

type CreateWorkItemComment401Response struct{}

func (CreateWorkItemComment401Response) VisitCreateWorkItemCommentResponse

func (response CreateWorkItemComment401Response) VisitCreateWorkItemCommentResponse(w http.ResponseWriter) error

type CreateWorkItemComment403Response

type CreateWorkItemComment403Response struct{}

func (CreateWorkItemComment403Response) VisitCreateWorkItemCommentResponse

func (response CreateWorkItemComment403Response) VisitCreateWorkItemCommentResponse(w http.ResponseWriter) error

type CreateWorkItemComment4XXJSONResponse

type CreateWorkItemComment4XXJSONResponse struct {
	Body       externalRef0.HTTPError
	StatusCode int
}

func (CreateWorkItemComment4XXJSONResponse) VisitCreateWorkItemCommentResponse

func (response CreateWorkItemComment4XXJSONResponse) VisitCreateWorkItemCommentResponse(w http.ResponseWriter) error

type CreateWorkItemCommentRequest

type CreateWorkItemCommentRequest struct {
	models.WorkItemCommentCreateParams
}

type CreateWorkItemCommentRequestObject

type CreateWorkItemCommentRequestObject struct {
	WorkItemID int `json:"workItemID"`
	Body       *CreateWorkItemCommentRequest
}

type CreateWorkItemCommentResponseObject

type CreateWorkItemCommentResponseObject interface {
	VisitCreateWorkItemCommentResponse(w http.ResponseWriter) error
}

type CreateWorkItemTag201JSONResponse

type CreateWorkItemTag201JSONResponse WorkItemTagResponse

func (CreateWorkItemTag201JSONResponse) VisitCreateWorkItemTagResponse

func (response CreateWorkItemTag201JSONResponse) VisitCreateWorkItemTagResponse(w http.ResponseWriter) error

type CreateWorkItemTag401Response

type CreateWorkItemTag401Response struct{}

func (CreateWorkItemTag401Response) VisitCreateWorkItemTagResponse

func (response CreateWorkItemTag401Response) VisitCreateWorkItemTagResponse(w http.ResponseWriter) error

type CreateWorkItemTag403Response

type CreateWorkItemTag403Response struct{}

func (CreateWorkItemTag403Response) VisitCreateWorkItemTagResponse

func (response CreateWorkItemTag403Response) VisitCreateWorkItemTagResponse(w http.ResponseWriter) error

type CreateWorkItemTag4XXJSONResponse

type CreateWorkItemTag4XXJSONResponse struct {
	Body       externalRef0.HTTPError
	StatusCode int
}

func (CreateWorkItemTag4XXJSONResponse) VisitCreateWorkItemTagResponse

func (response CreateWorkItemTag4XXJSONResponse) VisitCreateWorkItemTagResponse(w http.ResponseWriter) error

type CreateWorkItemTagRequest

type CreateWorkItemTagRequest struct {
	models.WorkItemTagCreateParams
}

type CreateWorkItemTagRequestObject

type CreateWorkItemTagRequestObject struct {
	ProjectName externalRef0.ProjectName `json:"projectName"`
	Body        *CreateWorkItemTagRequest
}

type CreateWorkItemTagResponseObject

type CreateWorkItemTagResponseObject interface {
	VisitCreateWorkItemTagResponse(w http.ResponseWriter) error
}

type CreateWorkItemType201JSONResponse

type CreateWorkItemType201JSONResponse WorkItemTypeResponse

func (CreateWorkItemType201JSONResponse) VisitCreateWorkItemTypeResponse

func (response CreateWorkItemType201JSONResponse) VisitCreateWorkItemTypeResponse(w http.ResponseWriter) error

type CreateWorkItemType401Response

type CreateWorkItemType401Response struct{}

func (CreateWorkItemType401Response) VisitCreateWorkItemTypeResponse

func (response CreateWorkItemType401Response) VisitCreateWorkItemTypeResponse(w http.ResponseWriter) error

type CreateWorkItemType403Response

type CreateWorkItemType403Response struct{}

func (CreateWorkItemType403Response) VisitCreateWorkItemTypeResponse

func (response CreateWorkItemType403Response) VisitCreateWorkItemTypeResponse(w http.ResponseWriter) error

type CreateWorkItemType4XXJSONResponse

type CreateWorkItemType4XXJSONResponse struct {
	Body       externalRef0.HTTPError
	StatusCode int
}

func (CreateWorkItemType4XXJSONResponse) VisitCreateWorkItemTypeResponse

func (response CreateWorkItemType4XXJSONResponse) VisitCreateWorkItemTypeResponse(w http.ResponseWriter) error

type CreateWorkItemTypeRequest

type CreateWorkItemTypeRequest struct {
	models.WorkItemTypeCreateParams
}

type CreateWorkItemTypeRequestObject

type CreateWorkItemTypeRequestObject struct {
	ProjectName externalRef0.ProjectName `json:"projectName"`
	Body        *CreateWorkItemTypeRequest
}

type CreateWorkItemTypeResponseObject

type CreateWorkItemTypeResponseObject interface {
	VisitCreateWorkItemTypeResponse(w http.ResponseWriter) error
}

type CreateWorkitem201JSONResponse

type CreateWorkitem201JSONResponse externalRef0.WorkItemResponse

func (CreateWorkitem201JSONResponse) VisitCreateWorkitemResponse

func (response CreateWorkitem201JSONResponse) VisitCreateWorkitemResponse(w http.ResponseWriter) error

type CreateWorkitemRequestObject

type CreateWorkitemRequestObject struct {
	Body *externalRef0.CreateWorkitemJSONRequestBody
}

type CreateWorkitemResponseObject

type CreateWorkitemResponseObject interface {
	VisitCreateWorkitemResponse(w http.ResponseWriter) error
}

type DeleteActivity204Response

type DeleteActivity204Response struct{}

func (DeleteActivity204Response) VisitDeleteActivityResponse

func (response DeleteActivity204Response) VisitDeleteActivityResponse(w http.ResponseWriter) error

type DeleteActivity401Response

type DeleteActivity401Response struct{}

func (DeleteActivity401Response) VisitDeleteActivityResponse

func (response DeleteActivity401Response) VisitDeleteActivityResponse(w http.ResponseWriter) error

type DeleteActivity403Response

type DeleteActivity403Response struct{}

func (DeleteActivity403Response) VisitDeleteActivityResponse

func (response DeleteActivity403Response) VisitDeleteActivityResponse(w http.ResponseWriter) error

type DeleteActivity4XXJSONResponse

type DeleteActivity4XXJSONResponse struct {
	Body       externalRef0.HTTPError
	StatusCode int
}

func (DeleteActivity4XXJSONResponse) VisitDeleteActivityResponse

func (response DeleteActivity4XXJSONResponse) VisitDeleteActivityResponse(w http.ResponseWriter) error

type DeleteActivityRequestObject

type DeleteActivityRequestObject struct {
	ActivityID models.ActivityID `json:"activityID"`
}

type DeleteActivityResponseObject

type DeleteActivityResponseObject interface {
	VisitDeleteActivityResponse(w http.ResponseWriter) error
}

type DeleteTeam204Response

type DeleteTeam204Response struct{}

func (DeleteTeam204Response) VisitDeleteTeamResponse

func (response DeleteTeam204Response) VisitDeleteTeamResponse(w http.ResponseWriter) error

type DeleteTeam401Response

type DeleteTeam401Response struct{}

func (DeleteTeam401Response) VisitDeleteTeamResponse

func (response DeleteTeam401Response) VisitDeleteTeamResponse(w http.ResponseWriter) error

type DeleteTeam403Response

type DeleteTeam403Response struct{}

func (DeleteTeam403Response) VisitDeleteTeamResponse

func (response DeleteTeam403Response) VisitDeleteTeamResponse(w http.ResponseWriter) error

type DeleteTeam4XXJSONResponse

type DeleteTeam4XXJSONResponse struct {
	Body       externalRef0.HTTPError
	StatusCode int
}

func (DeleteTeam4XXJSONResponse) VisitDeleteTeamResponse

func (response DeleteTeam4XXJSONResponse) VisitDeleteTeamResponse(w http.ResponseWriter) error

type DeleteTeamRequestObject

type DeleteTeamRequestObject struct {
	TeamID models.TeamID `json:"teamID"`
}

type DeleteTeamResponseObject

type DeleteTeamResponseObject interface {
	VisitDeleteTeamResponse(w http.ResponseWriter) error
}

type DeleteTimeEntry204Response

type DeleteTimeEntry204Response struct{}

func (DeleteTimeEntry204Response) VisitDeleteTimeEntryResponse

func (response DeleteTimeEntry204Response) VisitDeleteTimeEntryResponse(w http.ResponseWriter) error

type DeleteTimeEntry401Response

type DeleteTimeEntry401Response struct{}

func (DeleteTimeEntry401Response) VisitDeleteTimeEntryResponse

func (response DeleteTimeEntry401Response) VisitDeleteTimeEntryResponse(w http.ResponseWriter) error

type DeleteTimeEntry403Response

type DeleteTimeEntry403Response struct{}

func (DeleteTimeEntry403Response) VisitDeleteTimeEntryResponse

func (response DeleteTimeEntry403Response) VisitDeleteTimeEntryResponse(w http.ResponseWriter) error

type DeleteTimeEntry4XXJSONResponse

type DeleteTimeEntry4XXJSONResponse struct {
	Body       externalRef0.HTTPError
	StatusCode int
}

func (DeleteTimeEntry4XXJSONResponse) VisitDeleteTimeEntryResponse

func (response DeleteTimeEntry4XXJSONResponse) VisitDeleteTimeEntryResponse(w http.ResponseWriter) error

type DeleteTimeEntryRequestObject

type DeleteTimeEntryRequestObject struct {
	TimeEntryID models.TimeEntryID `json:"timeEntryID"`
}

type DeleteTimeEntryResponseObject

type DeleteTimeEntryResponseObject interface {
	VisitDeleteTimeEntryResponse(w http.ResponseWriter) error
}

type DeleteUser204Response

type DeleteUser204Response struct{}

func (DeleteUser204Response) VisitDeleteUserResponse

func (response DeleteUser204Response) VisitDeleteUserResponse(w http.ResponseWriter) error

type DeleteUser401Response

type DeleteUser401Response struct{}

func (DeleteUser401Response) VisitDeleteUserResponse

func (response DeleteUser401Response) VisitDeleteUserResponse(w http.ResponseWriter) error

type DeleteUser403Response

type DeleteUser403Response struct{}

func (DeleteUser403Response) VisitDeleteUserResponse

func (response DeleteUser403Response) VisitDeleteUserResponse(w http.ResponseWriter) error

type DeleteUser4XXJSONResponse

type DeleteUser4XXJSONResponse struct {
	Body       externalRef0.HTTPError
	StatusCode int
}

func (DeleteUser4XXJSONResponse) VisitDeleteUserResponse

func (response DeleteUser4XXJSONResponse) VisitDeleteUserResponse(w http.ResponseWriter) error

type DeleteUserRequestObject

type DeleteUserRequestObject struct {
	Id uuid.UUID `json:"id"`
}

type DeleteUserResponseObject

type DeleteUserResponseObject interface {
	VisitDeleteUserResponse(w http.ResponseWriter) error
}

type DeleteWorkItemComment204Response

type DeleteWorkItemComment204Response struct{}

func (DeleteWorkItemComment204Response) VisitDeleteWorkItemCommentResponse

func (response DeleteWorkItemComment204Response) VisitDeleteWorkItemCommentResponse(w http.ResponseWriter) error

type DeleteWorkItemComment401Response

type DeleteWorkItemComment401Response struct{}

func (DeleteWorkItemComment401Response) VisitDeleteWorkItemCommentResponse

func (response DeleteWorkItemComment401Response) VisitDeleteWorkItemCommentResponse(w http.ResponseWriter) error

type DeleteWorkItemComment403Response

type DeleteWorkItemComment403Response struct{}

func (DeleteWorkItemComment403Response) VisitDeleteWorkItemCommentResponse

func (response DeleteWorkItemComment403Response) VisitDeleteWorkItemCommentResponse(w http.ResponseWriter) error

type DeleteWorkItemComment4XXJSONResponse

type DeleteWorkItemComment4XXJSONResponse struct {
	Body       externalRef0.HTTPError
	StatusCode int
}

func (DeleteWorkItemComment4XXJSONResponse) VisitDeleteWorkItemCommentResponse

func (response DeleteWorkItemComment4XXJSONResponse) VisitDeleteWorkItemCommentResponse(w http.ResponseWriter) error

type DeleteWorkItemCommentRequestObject

type DeleteWorkItemCommentRequestObject struct {
	WorkItemID        models.WorkItemID        `json:"workItemID"`
	WorkItemCommentID models.WorkItemCommentID `json:"workItemCommentID"`
}

type DeleteWorkItemCommentResponseObject

type DeleteWorkItemCommentResponseObject interface {
	VisitDeleteWorkItemCommentResponse(w http.ResponseWriter) error
}

type DeleteWorkItemTag204Response

type DeleteWorkItemTag204Response struct{}

func (DeleteWorkItemTag204Response) VisitDeleteWorkItemTagResponse

func (response DeleteWorkItemTag204Response) VisitDeleteWorkItemTagResponse(w http.ResponseWriter) error

type DeleteWorkItemTag401Response

type DeleteWorkItemTag401Response struct{}

func (DeleteWorkItemTag401Response) VisitDeleteWorkItemTagResponse

func (response DeleteWorkItemTag401Response) VisitDeleteWorkItemTagResponse(w http.ResponseWriter) error

type DeleteWorkItemTag403Response

type DeleteWorkItemTag403Response struct{}

func (DeleteWorkItemTag403Response) VisitDeleteWorkItemTagResponse

func (response DeleteWorkItemTag403Response) VisitDeleteWorkItemTagResponse(w http.ResponseWriter) error

type DeleteWorkItemTag4XXJSONResponse

type DeleteWorkItemTag4XXJSONResponse struct {
	Body       externalRef0.HTTPError
	StatusCode int
}

func (DeleteWorkItemTag4XXJSONResponse) VisitDeleteWorkItemTagResponse

func (response DeleteWorkItemTag4XXJSONResponse) VisitDeleteWorkItemTagResponse(w http.ResponseWriter) error

type DeleteWorkItemTagRequestObject

type DeleteWorkItemTagRequestObject struct {
	WorkItemTagID models.WorkItemTagID `json:"workItemTagID"`
}

type DeleteWorkItemTagResponseObject

type DeleteWorkItemTagResponseObject interface {
	VisitDeleteWorkItemTagResponse(w http.ResponseWriter) error
}

type DeleteWorkItemType204Response

type DeleteWorkItemType204Response struct{}

func (DeleteWorkItemType204Response) VisitDeleteWorkItemTypeResponse

func (response DeleteWorkItemType204Response) VisitDeleteWorkItemTypeResponse(w http.ResponseWriter) error

type DeleteWorkItemType401Response

type DeleteWorkItemType401Response struct{}

func (DeleteWorkItemType401Response) VisitDeleteWorkItemTypeResponse

func (response DeleteWorkItemType401Response) VisitDeleteWorkItemTypeResponse(w http.ResponseWriter) error

type DeleteWorkItemType403Response

type DeleteWorkItemType403Response struct{}

func (DeleteWorkItemType403Response) VisitDeleteWorkItemTypeResponse

func (response DeleteWorkItemType403Response) VisitDeleteWorkItemTypeResponse(w http.ResponseWriter) error

type DeleteWorkItemType4XXJSONResponse

type DeleteWorkItemType4XXJSONResponse struct {
	Body       externalRef0.HTTPError
	StatusCode int
}

func (DeleteWorkItemType4XXJSONResponse) VisitDeleteWorkItemTypeResponse

func (response DeleteWorkItemType4XXJSONResponse) VisitDeleteWorkItemTypeResponse(w http.ResponseWriter) error

type DeleteWorkItemTypeRequestObject

type DeleteWorkItemTypeRequestObject struct {
	WorkItemTypeID models.WorkItemTypeID `json:"workItemTypeID"`
}

type DeleteWorkItemTypeResponseObject

type DeleteWorkItemTypeResponseObject interface {
	VisitDeleteWorkItemTypeResponse(w http.ResponseWriter) error
}

type DeleteWorkitem204Response

type DeleteWorkitem204Response struct{}

func (DeleteWorkitem204Response) VisitDeleteWorkitemResponse

func (response DeleteWorkitem204Response) VisitDeleteWorkitemResponse(w http.ResponseWriter) error

type DeleteWorkitemRequestObject

type DeleteWorkitemRequestObject struct {
	WorkItemID models.WorkItemID `json:"workItemID"`
}

type DeleteWorkitemResponseObject

type DeleteWorkitemResponseObject interface {
	VisitDeleteWorkitemResponse(w http.ResponseWriter) error
}

type DemoTwoWorkItemResponse

type DemoTwoWorkItemResponse struct {
	DemoTwoWorkItem models.DemoTwoWorkItem `json:"demoTwoWorkItem" required:"true"`
	WorkItemBase
}

type DemoWorkItemResponse

type DemoWorkItemResponse struct {
	DemoWorkItem models.DemoWorkItem `json:"demoWorkItem" required:"true"`
	WorkItemBase
}

type ErrorHandler

type ErrorHandler func(c *gin.Context, message string, statusCode int)

ErrorHandler is called when there is an error in validation.

type EventServer

type EventServer struct {
	// contains filtered or unexported fields
}

func NewEventServer

func NewEventServer(ctx context.Context, logger *zap.SugaredLogger) *EventServer

NewEventServer returns an SSE server and starts listening for messages.

func (*EventServer) EventDispatcher

func (es *EventServer) EventDispatcher() gin.HandlerFunc

EventDispatcher represents middleware whose cleanup fires pending events for a request.

func (*EventServer) Publish

func (es *EventServer) Publish(message string, topic models.Topic)

Publish publishes an event immediately.

func (*EventServer) Queue

func (es *EventServer) Queue(ctx context.Context, message string, topic models.Topic)

Queue saves an event for later publishing.

func (*EventServer) Subscribe

func (es *EventServer) Subscribe(topics models.Topics) (client SSEClient, unsubscribe func())

type Events200TexteventStreamResponse

type Events200TexteventStreamResponse struct {
	Body          io.Reader
	ContentLength int64
}

func (Events200TexteventStreamResponse) VisitEventsResponse

func (response Events200TexteventStreamResponse) VisitEventsResponse(w http.ResponseWriter) error

type EventsRequestObject

type EventsRequestObject struct {
	Params externalRef0.EventsParams
}

type EventsResponseObject

type EventsResponseObject interface {
	VisitEventsResponse(w http.ResponseWriter) error
}

type GetActivity200JSONResponse

type GetActivity200JSONResponse ActivityResponse

func (GetActivity200JSONResponse) VisitGetActivityResponse

func (response GetActivity200JSONResponse) VisitGetActivityResponse(w http.ResponseWriter) error

type GetActivity401Response

type GetActivity401Response struct{}

func (GetActivity401Response) VisitGetActivityResponse

func (response GetActivity401Response) VisitGetActivityResponse(w http.ResponseWriter) error

type GetActivity403Response

type GetActivity403Response struct{}

func (GetActivity403Response) VisitGetActivityResponse

func (response GetActivity403Response) VisitGetActivityResponse(w http.ResponseWriter) error

type GetActivity4XXJSONResponse

type GetActivity4XXJSONResponse struct {
	Body       externalRef0.HTTPError
	StatusCode int
}

func (GetActivity4XXJSONResponse) VisitGetActivityResponse

func (response GetActivity4XXJSONResponse) VisitGetActivityResponse(w http.ResponseWriter) error

type GetActivityRequestObject

type GetActivityRequestObject struct {
	ActivityID models.ActivityID `json:"activityID"`
}

type GetActivityResponseObject

type GetActivityResponseObject interface {
	VisitGetActivityResponse(w http.ResponseWriter) error
}

type GetCacheDemoWorkItemQueryParameters

type GetCacheDemoWorkItemQueryParameters struct {
	// if need arises, exclude some joins from json via a new SQL comment annotation.
	// joins only accumulate with the ones previously set.
	Joins models.CacheDemoWorkItemJoins `json:"joins"`
}

type GetCurrentUser200JSONResponse

type GetCurrentUser200JSONResponse UserResponse

func (GetCurrentUser200JSONResponse) VisitGetCurrentUserResponse

func (response GetCurrentUser200JSONResponse) VisitGetCurrentUserResponse(w http.ResponseWriter) error

type GetCurrentUser401Response

type GetCurrentUser401Response struct{}

func (GetCurrentUser401Response) VisitGetCurrentUserResponse

func (response GetCurrentUser401Response) VisitGetCurrentUserResponse(w http.ResponseWriter) error

type GetCurrentUser403Response

type GetCurrentUser403Response struct{}

func (GetCurrentUser403Response) VisitGetCurrentUserResponse

func (response GetCurrentUser403Response) VisitGetCurrentUserResponse(w http.ResponseWriter) error

type GetCurrentUser4XXJSONResponse

type GetCurrentUser4XXJSONResponse struct {
	Body       externalRef0.HTTPError
	StatusCode int
}

func (GetCurrentUser4XXJSONResponse) VisitGetCurrentUserResponse

func (response GetCurrentUser4XXJSONResponse) VisitGetCurrentUserResponse(w http.ResponseWriter) error

type GetCurrentUserQueryParameters

type GetCurrentUserQueryParameters struct {
	// if need arises somehow, exclude some joins from json via a new SQL comment annotation.
	// joins only accumulate with the ones previously set.
	Joins models.UserJoins `json:"joins"`
}

type GetCurrentUserRequestObject

type GetCurrentUserRequestObject struct{}

type GetCurrentUserResponseObject

type GetCurrentUserResponseObject interface {
	VisitGetCurrentUserResponse(w http.ResponseWriter) error
}

type GetPaginatedNotifications200JSONResponse

type GetPaginatedNotifications200JSONResponse PaginatedNotificationsResponse

func (GetPaginatedNotifications200JSONResponse) VisitGetPaginatedNotificationsResponse

func (response GetPaginatedNotifications200JSONResponse) VisitGetPaginatedNotificationsResponse(w http.ResponseWriter) error

type GetPaginatedNotifications401Response

type GetPaginatedNotifications401Response struct{}

func (GetPaginatedNotifications401Response) VisitGetPaginatedNotificationsResponse

func (response GetPaginatedNotifications401Response) VisitGetPaginatedNotificationsResponse(w http.ResponseWriter) error

type GetPaginatedNotifications403Response

type GetPaginatedNotifications403Response struct{}

func (GetPaginatedNotifications403Response) VisitGetPaginatedNotificationsResponse

func (response GetPaginatedNotifications403Response) VisitGetPaginatedNotificationsResponse(w http.ResponseWriter) error

type GetPaginatedNotifications4XXJSONResponse

type GetPaginatedNotifications4XXJSONResponse struct {
	Body       externalRef0.HTTPError
	StatusCode int
}

func (GetPaginatedNotifications4XXJSONResponse) VisitGetPaginatedNotificationsResponse

func (response GetPaginatedNotifications4XXJSONResponse) VisitGetPaginatedNotificationsResponse(w http.ResponseWriter) error

type GetPaginatedNotificationsRequestObject

type GetPaginatedNotificationsRequestObject struct {
	Params externalRef0.GetPaginatedNotificationsParams
}

type GetPaginatedNotificationsResponseObject

type GetPaginatedNotificationsResponseObject interface {
	VisitGetPaginatedNotificationsResponse(w http.ResponseWriter) error
}

type GetPaginatedUsers200JSONResponse

type GetPaginatedUsers200JSONResponse PaginatedUsersResponse

func (GetPaginatedUsers200JSONResponse) VisitGetPaginatedUsersResponse

func (response GetPaginatedUsers200JSONResponse) VisitGetPaginatedUsersResponse(w http.ResponseWriter) error

type GetPaginatedUsers401Response

type GetPaginatedUsers401Response struct{}

func (GetPaginatedUsers401Response) VisitGetPaginatedUsersResponse

func (response GetPaginatedUsers401Response) VisitGetPaginatedUsersResponse(w http.ResponseWriter) error

type GetPaginatedUsers403Response

type GetPaginatedUsers403Response struct{}

func (GetPaginatedUsers403Response) VisitGetPaginatedUsersResponse

func (response GetPaginatedUsers403Response) VisitGetPaginatedUsersResponse(w http.ResponseWriter) error

type GetPaginatedUsers4XXJSONResponse

type GetPaginatedUsers4XXJSONResponse struct {
	Body       externalRef0.HTTPError
	StatusCode int
}

func (GetPaginatedUsers4XXJSONResponse) VisitGetPaginatedUsersResponse

func (response GetPaginatedUsers4XXJSONResponse) VisitGetPaginatedUsersResponse(w http.ResponseWriter) error

type GetPaginatedUsersRequestObject

type GetPaginatedUsersRequestObject struct {
	Params externalRef0.GetPaginatedUsersParams
}

type GetPaginatedUsersResponseObject

type GetPaginatedUsersResponseObject interface {
	VisitGetPaginatedUsersResponse(w http.ResponseWriter) error
}

type GetPaginatedWorkItem200JSONResponse

type GetPaginatedWorkItem200JSONResponse PaginatedDemoWorkItemsResponse

func (GetPaginatedWorkItem200JSONResponse) VisitGetPaginatedWorkItemResponse

func (response GetPaginatedWorkItem200JSONResponse) VisitGetPaginatedWorkItemResponse(w http.ResponseWriter) error

type GetPaginatedWorkItem401Response

type GetPaginatedWorkItem401Response struct{}

func (GetPaginatedWorkItem401Response) VisitGetPaginatedWorkItemResponse

func (response GetPaginatedWorkItem401Response) VisitGetPaginatedWorkItemResponse(w http.ResponseWriter) error

type GetPaginatedWorkItem403Response

type GetPaginatedWorkItem403Response struct{}

func (GetPaginatedWorkItem403Response) VisitGetPaginatedWorkItemResponse

func (response GetPaginatedWorkItem403Response) VisitGetPaginatedWorkItemResponse(w http.ResponseWriter) error

type GetPaginatedWorkItem4XXJSONResponse

type GetPaginatedWorkItem4XXJSONResponse struct {
	Body       externalRef0.HTTPError
	StatusCode int
}

func (GetPaginatedWorkItem4XXJSONResponse) VisitGetPaginatedWorkItemResponse

func (response GetPaginatedWorkItem4XXJSONResponse) VisitGetPaginatedWorkItemResponse(w http.ResponseWriter) error

type GetPaginatedWorkItemRequestObject

type GetPaginatedWorkItemRequestObject struct {
	Params externalRef0.GetPaginatedWorkItemParams
}

type GetPaginatedWorkItemResponseObject

type GetPaginatedWorkItemResponseObject interface {
	VisitGetPaginatedWorkItemResponse(w http.ResponseWriter) error
}

type GetProject200JSONResponse

type GetProject200JSONResponse externalRef0.ModelsProject

func (GetProject200JSONResponse) VisitGetProjectResponse

func (response GetProject200JSONResponse) VisitGetProjectResponse(w http.ResponseWriter) error

type GetProjectBoard200JSONResponse

type GetProjectBoard200JSONResponse ProjectBoard

func (GetProjectBoard200JSONResponse) VisitGetProjectBoardResponse

func (response GetProjectBoard200JSONResponse) VisitGetProjectBoardResponse(w http.ResponseWriter) error

type GetProjectBoardRequestObject

type GetProjectBoardRequestObject struct {
	ProjectName externalRef0.ProjectName `json:"projectName"`
}

type GetProjectBoardResponseObject

type GetProjectBoardResponseObject interface {
	VisitGetProjectBoardResponse(w http.ResponseWriter) error
}

type GetProjectConfig200JSONResponse

type GetProjectConfig200JSONResponse externalRef0.ProjectConfig

func (GetProjectConfig200JSONResponse) VisitGetProjectConfigResponse

func (response GetProjectConfig200JSONResponse) VisitGetProjectConfigResponse(w http.ResponseWriter) error

type GetProjectConfigRequestObject

type GetProjectConfigRequestObject struct {
	ProjectName externalRef0.ProjectName `json:"projectName"`
}

type GetProjectConfigResponseObject

type GetProjectConfigResponseObject interface {
	VisitGetProjectConfigResponse(w http.ResponseWriter) error
}

type GetProjectRequestObject

type GetProjectRequestObject struct {
	ProjectName externalRef0.ProjectName `json:"projectName"`
}

type GetProjectResponseObject

type GetProjectResponseObject interface {
	VisitGetProjectResponse(w http.ResponseWriter) error
}

type GetProjectWorkitems200JSONResponse

type GetProjectWorkitems200JSONResponse externalRef0.WorkItemResponse

func (GetProjectWorkitems200JSONResponse) VisitGetProjectWorkitemsResponse

func (response GetProjectWorkitems200JSONResponse) VisitGetProjectWorkitemsResponse(w http.ResponseWriter) error

type GetProjectWorkitemsRequestObject

type GetProjectWorkitemsRequestObject struct {
	ProjectName externalRef0.ProjectName `json:"projectName"`
	Params      externalRef0.GetProjectWorkitemsParams
}

type GetProjectWorkitemsResponseObject

type GetProjectWorkitemsResponseObject interface {
	VisitGetProjectWorkitemsResponse(w http.ResponseWriter) error
}

type GetTeam200JSONResponse

type GetTeam200JSONResponse TeamResponse

func (GetTeam200JSONResponse) VisitGetTeamResponse

func (response GetTeam200JSONResponse) VisitGetTeamResponse(w http.ResponseWriter) error

type GetTeam401Response

type GetTeam401Response struct{}

func (GetTeam401Response) VisitGetTeamResponse

func (response GetTeam401Response) VisitGetTeamResponse(w http.ResponseWriter) error

type GetTeam403Response

type GetTeam403Response struct{}

func (GetTeam403Response) VisitGetTeamResponse

func (response GetTeam403Response) VisitGetTeamResponse(w http.ResponseWriter) error

type GetTeam4XXJSONResponse

type GetTeam4XXJSONResponse struct {
	Body       externalRef0.HTTPError
	StatusCode int
}

func (GetTeam4XXJSONResponse) VisitGetTeamResponse

func (response GetTeam4XXJSONResponse) VisitGetTeamResponse(w http.ResponseWriter) error

type GetTeamRequestObject

type GetTeamRequestObject struct {
	TeamID models.TeamID `json:"teamID"`
}

type GetTeamResponseObject

type GetTeamResponseObject interface {
	VisitGetTeamResponse(w http.ResponseWriter) error
}

type GetTimeEntry200JSONResponse

type GetTimeEntry200JSONResponse TimeEntryResponse

func (GetTimeEntry200JSONResponse) VisitGetTimeEntryResponse

func (response GetTimeEntry200JSONResponse) VisitGetTimeEntryResponse(w http.ResponseWriter) error

type GetTimeEntry401Response

type GetTimeEntry401Response struct{}

func (GetTimeEntry401Response) VisitGetTimeEntryResponse

func (response GetTimeEntry401Response) VisitGetTimeEntryResponse(w http.ResponseWriter) error

type GetTimeEntry403Response

type GetTimeEntry403Response struct{}

func (GetTimeEntry403Response) VisitGetTimeEntryResponse

func (response GetTimeEntry403Response) VisitGetTimeEntryResponse(w http.ResponseWriter) error

type GetTimeEntry4XXJSONResponse

type GetTimeEntry4XXJSONResponse struct {
	Body       externalRef0.HTTPError
	StatusCode int
}

func (GetTimeEntry4XXJSONResponse) VisitGetTimeEntryResponse

func (response GetTimeEntry4XXJSONResponse) VisitGetTimeEntryResponse(w http.ResponseWriter) error

type GetTimeEntryRequestObject

type GetTimeEntryRequestObject struct {
	TimeEntryID models.TimeEntryID `json:"timeEntryID"`
}

type GetTimeEntryResponseObject

type GetTimeEntryResponseObject interface {
	VisitGetTimeEntryResponse(w http.ResponseWriter) error
}

type GetWorkItem200JSONResponse

type GetWorkItem200JSONResponse externalRef0.WorkItemResponse

func (GetWorkItem200JSONResponse) VisitGetWorkItemResponse

func (response GetWorkItem200JSONResponse) VisitGetWorkItemResponse(w http.ResponseWriter) error

type GetWorkItemComment200JSONResponse

type GetWorkItemComment200JSONResponse WorkItemCommentResponse

func (GetWorkItemComment200JSONResponse) VisitGetWorkItemCommentResponse

func (response GetWorkItemComment200JSONResponse) VisitGetWorkItemCommentResponse(w http.ResponseWriter) error

type GetWorkItemComment401Response

type GetWorkItemComment401Response struct{}

func (GetWorkItemComment401Response) VisitGetWorkItemCommentResponse

func (response GetWorkItemComment401Response) VisitGetWorkItemCommentResponse(w http.ResponseWriter) error

type GetWorkItemComment403Response

type GetWorkItemComment403Response struct{}

func (GetWorkItemComment403Response) VisitGetWorkItemCommentResponse

func (response GetWorkItemComment403Response) VisitGetWorkItemCommentResponse(w http.ResponseWriter) error

type GetWorkItemComment4XXJSONResponse

type GetWorkItemComment4XXJSONResponse struct {
	Body       externalRef0.HTTPError
	StatusCode int
}

func (GetWorkItemComment4XXJSONResponse) VisitGetWorkItemCommentResponse

func (response GetWorkItemComment4XXJSONResponse) VisitGetWorkItemCommentResponse(w http.ResponseWriter) error

type GetWorkItemCommentRequestObject

type GetWorkItemCommentRequestObject struct {
	WorkItemID        models.WorkItemID        `json:"workItemID"`
	WorkItemCommentID models.WorkItemCommentID `json:"workItemCommentID"`
}

type GetWorkItemCommentResponseObject

type GetWorkItemCommentResponseObject interface {
	VisitGetWorkItemCommentResponse(w http.ResponseWriter) error
}

type GetWorkItemRequestObject

type GetWorkItemRequestObject struct {
	WorkItemID models.WorkItemID `json:"workItemID"`
}

type GetWorkItemResponseObject

type GetWorkItemResponseObject interface {
	VisitGetWorkItemResponse(w http.ResponseWriter) error
}

type GetWorkItemTag200JSONResponse

type GetWorkItemTag200JSONResponse WorkItemTagResponse

func (GetWorkItemTag200JSONResponse) VisitGetWorkItemTagResponse

func (response GetWorkItemTag200JSONResponse) VisitGetWorkItemTagResponse(w http.ResponseWriter) error

type GetWorkItemTag401Response

type GetWorkItemTag401Response struct{}

func (GetWorkItemTag401Response) VisitGetWorkItemTagResponse

func (response GetWorkItemTag401Response) VisitGetWorkItemTagResponse(w http.ResponseWriter) error

type GetWorkItemTag403Response

type GetWorkItemTag403Response struct{}

func (GetWorkItemTag403Response) VisitGetWorkItemTagResponse

func (response GetWorkItemTag403Response) VisitGetWorkItemTagResponse(w http.ResponseWriter) error

type GetWorkItemTag4XXJSONResponse

type GetWorkItemTag4XXJSONResponse struct {
	Body       externalRef0.HTTPError
	StatusCode int
}

func (GetWorkItemTag4XXJSONResponse) VisitGetWorkItemTagResponse

func (response GetWorkItemTag4XXJSONResponse) VisitGetWorkItemTagResponse(w http.ResponseWriter) error

type GetWorkItemTagRequestObject

type GetWorkItemTagRequestObject struct {
	WorkItemTagID models.WorkItemTagID `json:"workItemTagID"`
}

type GetWorkItemTagResponseObject

type GetWorkItemTagResponseObject interface {
	VisitGetWorkItemTagResponse(w http.ResponseWriter) error
}

type GetWorkItemType200JSONResponse

type GetWorkItemType200JSONResponse WorkItemTypeResponse

func (GetWorkItemType200JSONResponse) VisitGetWorkItemTypeResponse

func (response GetWorkItemType200JSONResponse) VisitGetWorkItemTypeResponse(w http.ResponseWriter) error

type GetWorkItemType401Response

type GetWorkItemType401Response struct{}

func (GetWorkItemType401Response) VisitGetWorkItemTypeResponse

func (response GetWorkItemType401Response) VisitGetWorkItemTypeResponse(w http.ResponseWriter) error

type GetWorkItemType403Response

type GetWorkItemType403Response struct{}

func (GetWorkItemType403Response) VisitGetWorkItemTypeResponse

func (response GetWorkItemType403Response) VisitGetWorkItemTypeResponse(w http.ResponseWriter) error

type GetWorkItemType4XXJSONResponse

type GetWorkItemType4XXJSONResponse struct {
	Body       externalRef0.HTTPError
	StatusCode int
}

func (GetWorkItemType4XXJSONResponse) VisitGetWorkItemTypeResponse

func (response GetWorkItemType4XXJSONResponse) VisitGetWorkItemTypeResponse(w http.ResponseWriter) error

type GetWorkItemTypeRequestObject

type GetWorkItemTypeRequestObject struct {
	WorkItemTypeID models.WorkItemTypeID `json:"workItemTypeID"`
}

type GetWorkItemTypeResponseObject

type GetWorkItemTypeResponseObject interface {
	VisitGetWorkItemTypeResponse(w http.ResponseWriter) error
}

type GinServerOptions

type GinServerOptions struct {
	BaseURL string
}

GinServerOptions provides options for the Gin server.

type InitializeProject204Response

type InitializeProject204Response struct{}

func (InitializeProject204Response) VisitInitializeProjectResponse

func (response InitializeProject204Response) VisitInitializeProjectResponse(w http.ResponseWriter) error

type InitializeProjectRequestObject

type InitializeProjectRequestObject struct {
	ProjectName externalRef0.ProjectName `json:"projectName"`
	Body        *externalRef0.InitializeProjectJSONRequestBody
}

type InitializeProjectResponseObject

type InitializeProjectResponseObject interface {
	VisitInitializeProjectResponse(w http.ResponseWriter) error
}

type MiddlewareFunc

type MiddlewareFunc func(c *gin.Context)

type MultiErrorHandler

type MultiErrorHandler func(openapi3.MultiError) error

MultiErrorHandler is called when oapi returns a MultiError type.

type MyProviderCallback302Response

type MyProviderCallback302Response struct {
	Headers MyProviderCallback302ResponseHeaders
}

func (MyProviderCallback302Response) VisitMyProviderCallbackResponse

func (response MyProviderCallback302Response) VisitMyProviderCallbackResponse(w http.ResponseWriter) error

type MyProviderCallback302ResponseHeaders

type MyProviderCallback302ResponseHeaders struct {
	Location string
}

type MyProviderCallbackRequestObject

type MyProviderCallbackRequestObject struct{}

type MyProviderCallbackResponseObject

type MyProviderCallbackResponseObject interface {
	VisitMyProviderCallbackResponse(w http.ResponseWriter) error
}

type MyProviderLogin302Response

type MyProviderLogin302Response struct {
	Headers MyProviderLogin302ResponseHeaders
}

func (MyProviderLogin302Response) VisitMyProviderLoginResponse

func (response MyProviderLogin302Response) VisitMyProviderLoginResponse(w http.ResponseWriter) error

type MyProviderLogin302ResponseHeaders

type MyProviderLogin302ResponseHeaders struct {
	Location string
}

type MyProviderLoginRequestObject

type MyProviderLoginRequestObject struct {
	Params externalRef0.MyProviderLoginParams
}

type MyProviderLoginResponseObject

type MyProviderLoginResponseObject interface {
	VisitMyProviderLoginResponse(w http.ResponseWriter) error
}

type NotificationResponse

type NotificationResponse struct {
	models.UserNotification
	Notification models.Notification `json:"notification" required:"true"` // notification_id clash
}

type OAValidatorOptions

type OAValidatorOptions struct {
	ValidateResponse  bool
	ErrorHandler      ErrorHandler
	Options           openapi3filter.Options
	ParamDecoder      openapi3filter.ContentParameterDecoder
	UserData          interface{}
	MultiErrorHandler MultiErrorHandler
}

OAValidatorOptions customizes request validation.

func CreateOpenAPIValidatorOptions

func CreateOpenAPIValidatorOptions() OAValidatorOptions

type OpenapiYamlGet200ApplicationxYamlResponse

type OpenapiYamlGet200ApplicationxYamlResponse struct {
	Body          io.Reader
	ContentLength int64
}

func (OpenapiYamlGet200ApplicationxYamlResponse) VisitOpenapiYamlGetResponse

func (response OpenapiYamlGet200ApplicationxYamlResponse) VisitOpenapiYamlGetResponse(w http.ResponseWriter) error

type OpenapiYamlGetRequestObject

type OpenapiYamlGetRequestObject struct{}

type OpenapiYamlGetResponseObject

type OpenapiYamlGetResponseObject interface {
	VisitOpenapiYamlGetResponse(w http.ResponseWriter) error
}

type OperationID

type OperationID string
const (
	// Operation IDs for the 'activity' tag.
	CreateActivity OperationID = "CreateActivity"
	DeleteActivity OperationID = "DeleteActivity"
	GetActivity    OperationID = "GetActivity"
	UpdateActivity OperationID = "UpdateActivity"

	// Operation IDs for the 'admin' tag.
	AdminPing OperationID = "AdminPing"

	// Operation IDs for the 'default' tag.
	OpenapiYamlGet OperationID = "OpenapiYamlGet"
	Ping           OperationID = "Ping"

	// Operation IDs for the 'events' tag.
	Events OperationID = "Events"

	// Operation IDs for the 'notifications' tag.
	GetPaginatedNotifications OperationID = "GetPaginatedNotifications"

	// Operation IDs for the 'oidc' tag.
	MyProviderCallback OperationID = "MyProviderCallback"
	MyProviderLogin    OperationID = "MyProviderLogin"

	// Operation IDs for the 'project' tag.
	GetProject          OperationID = "GetProject"
	GetProjectBoard     OperationID = "GetProjectBoard"
	GetProjectConfig    OperationID = "GetProjectConfig"
	GetProjectWorkitems OperationID = "GetProjectWorkitems"
	InitializeProject   OperationID = "InitializeProject"
	UpdateProjectConfig OperationID = "UpdateProjectConfig"

	// Operation IDs for the 'team' tag.
	CreateTeam OperationID = "CreateTeam"
	DeleteTeam OperationID = "DeleteTeam"
	GetTeam    OperationID = "GetTeam"
	UpdateTeam OperationID = "UpdateTeam"

	// Operation IDs for the 'timeEntry' tag.
	CreateTimeEntry OperationID = "CreateTimeEntry"
	DeleteTimeEntry OperationID = "DeleteTimeEntry"
	GetTimeEntry    OperationID = "GetTimeEntry"
	UpdateTimeEntry OperationID = "UpdateTimeEntry"

	// Operation IDs for the 'user' tag.
	DeleteUser              OperationID = "DeleteUser"
	GetCurrentUser          OperationID = "GetCurrentUser"
	GetPaginatedUsers       OperationID = "GetPaginatedUsers"
	UpdateUser              OperationID = "UpdateUser"
	UpdateUserAuthorization OperationID = "UpdateUserAuthorization"

	// Operation IDs for the 'workItem' tag.
	CreateWorkitem       OperationID = "CreateWorkitem"
	DeleteWorkitem       OperationID = "DeleteWorkitem"
	GetPaginatedWorkItem OperationID = "GetPaginatedWorkItem"
	GetWorkItem          OperationID = "GetWorkItem"
	UpdateWorkitem       OperationID = "UpdateWorkitem"

	// Operation IDs for the 'workItemComment' tag.
	CreateWorkItemComment OperationID = "CreateWorkItemComment"
	DeleteWorkItemComment OperationID = "DeleteWorkItemComment"
	GetWorkItemComment    OperationID = "GetWorkItemComment"
	UpdateWorkItemComment OperationID = "UpdateWorkItemComment"

	// Operation IDs for the 'workItemTag' tag.
	CreateWorkItemTag OperationID = "CreateWorkItemTag"
	DeleteWorkItemTag OperationID = "DeleteWorkItemTag"
	GetWorkItemTag    OperationID = "GetWorkItemTag"
	UpdateWorkItemTag OperationID = "UpdateWorkItemTag"

	// Operation IDs for the 'workItemType' tag.
	CreateWorkItemType OperationID = "CreateWorkItemType"
	DeleteWorkItemType OperationID = "DeleteWorkItemType"
	GetWorkItemType    OperationID = "GetWorkItemType"
	UpdateWorkItemType OperationID = "UpdateWorkItemType"
)

type PaginatedUsersResponse

type PaginatedUsersResponse = PaginationBaseResponse[UserResponse]

type Users []User // cannot be handled by swaggest lib (only handles structs) panic: reflect: NumField of non-struct type rest.Users should use below workaround as in paginated queries (all would be paginated queries in a way...)

type Users struct {
	Users []User `json:"users"`
}

type PaginationBaseResponse

type PaginationBaseResponse[T any] struct {
	Page  PaginationPage `json:"page"  required:"true"`
	Items []T            `json:"items" required:"true"`
}

type PaginationPage

type PaginationPage struct {
	NextCursor string `json:"nextCursor"`
}

type Ping200TextResponse

type Ping200TextResponse string

func (Ping200TextResponse) VisitPingResponse

func (response Ping200TextResponse) VisitPingResponse(w http.ResponseWriter) error

type Ping401Response

type Ping401Response struct{}

func (Ping401Response) VisitPingResponse

func (response Ping401Response) VisitPingResponse(w http.ResponseWriter) error

type Ping403Response

type Ping403Response struct{}

func (Ping403Response) VisitPingResponse

func (response Ping403Response) VisitPingResponse(w http.ResponseWriter) error

type Ping4XXJSONResponse

type Ping4XXJSONResponse struct {
	Body       externalRef0.HTTPError
	StatusCode int
}

func (Ping4XXJSONResponse) VisitPingResponse

func (response Ping4XXJSONResponse) VisitPingResponse(w http.ResponseWriter) error

type PingRequestObject

type PingRequestObject struct{}

type PingResponseObject

type PingResponseObject interface {
	VisitPingResponse(w http.ResponseWriter) error
}

type ProjectBoard

type ProjectBoard struct {
	ProjectName models.ProjectName `json:"projectName" ref:"#/components/schemas/ProjectName" required:"true"`
}

type SSEClient

type SSEClient struct {
	Chan   chan ClientMessage
	Topics models.Topics
}

type Server

type Server struct {
	Httpsrv *http.Server

	Event *EventServer
	// contains filtered or unexported fields
}

func NewServer

func NewServer(ctx context.Context, conf Config, opts ...ServerOption) (*Server, error)

NewServer returns a new http server.

type ServerInterface

type ServerInterface interface {
	// delete activity.
	// (DELETE /activity/{activityID})
	DeleteActivity(c *gin.Context, activityID models.ActivityID)
	// get activity.
	// (GET /activity/{activityID})
	GetActivity(c *gin.Context, activityID models.ActivityID)
	// update activity.
	// (PATCH /activity/{activityID})
	UpdateActivity(c *gin.Context, activityID models.ActivityID)
	// Ping pongs
	// (GET /admin/ping)
	AdminPing(c *gin.Context)

	// (GET /auth/myprovider/callback)
	MyProviderCallback(c *gin.Context)

	// (GET /auth/myprovider/login)
	MyProviderLogin(c *gin.Context, params externalRef0.MyProviderLoginParams)

	// (GET /events)
	Events(c *gin.Context, params externalRef0.EventsParams)
	// Get paginated user notifications
	// (GET /notifications/user/page)
	GetPaginatedNotifications(c *gin.Context, params externalRef0.GetPaginatedNotificationsParams)
	// Returns this very OpenAPI spec.
	// (GET /openapi.yaml)
	OpenapiYamlGet(c *gin.Context)
	// Ping pongs
	// (GET /ping)
	Ping(c *gin.Context)
	// returns board data for a project
	// (GET /project/{projectName}/)
	GetProject(c *gin.Context, projectName externalRef0.ProjectName)
	// create activity.
	// (POST /project/{projectName}/activity/)
	CreateActivity(c *gin.Context, projectName externalRef0.ProjectName)
	// returns board data for a project
	// (GET /project/{projectName}/board)
	GetProjectBoard(c *gin.Context, projectName externalRef0.ProjectName)
	// returns the project configuration
	// (GET /project/{projectName}/config)
	GetProjectConfig(c *gin.Context, projectName externalRef0.ProjectName)
	// updates the project configuration
	// (PUT /project/{projectName}/config)
	UpdateProjectConfig(c *gin.Context, projectName externalRef0.ProjectName)
	// creates initial data (teams, tags...) for a new project
	// (POST /project/{projectName}/initialize)
	InitializeProject(c *gin.Context, projectName externalRef0.ProjectName)
	// create team.
	// (POST /project/{projectName}/team/)
	CreateTeam(c *gin.Context, projectName externalRef0.ProjectName)
	// create workitemtag.
	// (POST /project/{projectName}/work-item-tag/)
	CreateWorkItemTag(c *gin.Context, projectName externalRef0.ProjectName)
	// create workitemtype.
	// (POST /project/{projectName}/work-item-type/)
	CreateWorkItemType(c *gin.Context, projectName externalRef0.ProjectName)
	// returns workitems for a project
	// (GET /project/{projectName}/workitems)
	GetProjectWorkitems(c *gin.Context, projectName externalRef0.ProjectName, params externalRef0.GetProjectWorkitemsParams)
	// delete team.
	// (DELETE /team/{teamID})
	DeleteTeam(c *gin.Context, teamID models.TeamID)
	// get team.
	// (GET /team/{teamID})
	GetTeam(c *gin.Context, teamID models.TeamID)
	// update team.
	// (PATCH /team/{teamID})
	UpdateTeam(c *gin.Context, teamID models.TeamID)
	// create time entry.
	// (POST /time-entry/)
	CreateTimeEntry(c *gin.Context)
	// delete time-entry.
	// (DELETE /time-entry/{timeEntryID})
	DeleteTimeEntry(c *gin.Context, timeEntryID models.TimeEntryID)
	// get time-entry.
	// (GET /time-entry/{timeEntryID})
	GetTimeEntry(c *gin.Context, timeEntryID models.TimeEntryID)
	// update time-entry.
	// (PATCH /time-entry/{timeEntryID})
	UpdateTimeEntry(c *gin.Context, timeEntryID models.TimeEntryID)
	// returns the logged in user
	// (GET /user/me)
	GetCurrentUser(c *gin.Context)
	// Get paginated users
	// (GET /user/page)
	GetPaginatedUsers(c *gin.Context, params externalRef0.GetPaginatedUsersParams)
	// deletes the user by id
	// (DELETE /user/{id})
	DeleteUser(c *gin.Context, id uuid.UUID)
	// updates the user by id
	// (PATCH /user/{id})
	UpdateUser(c *gin.Context, id uuid.UUID)
	// updates user role and scopes by id
	// (PATCH /user/{id}/authorization)
	UpdateUserAuthorization(c *gin.Context, id uuid.UUID)
	// delete workitemtag.
	// (DELETE /work-item-tag/{workItemTagID})
	DeleteWorkItemTag(c *gin.Context, workItemTagID models.WorkItemTagID)
	// get workitemtag.
	// (GET /work-item-tag/{workItemTagID})
	GetWorkItemTag(c *gin.Context, workItemTagID models.WorkItemTagID)
	// update workitemtag.
	// (PATCH /work-item-tag/{workItemTagID})
	UpdateWorkItemTag(c *gin.Context, workItemTagID models.WorkItemTagID)
	// delete workitemtype.
	// (DELETE /work-item-type/{workItemTypeID})
	DeleteWorkItemType(c *gin.Context, workItemTypeID models.WorkItemTypeID)
	// get workitemtype.
	// (GET /work-item-type/{workItemTypeID})
	GetWorkItemType(c *gin.Context, workItemTypeID models.WorkItemTypeID)
	// update workitemtype.
	// (PATCH /work-item-type/{workItemTypeID})
	UpdateWorkItemType(c *gin.Context, workItemTypeID models.WorkItemTypeID)
	// create workitem
	// (POST /work-item/)
	CreateWorkitem(c *gin.Context)
	// Get paginated user work-item
	// (GET /work-item/page)
	GetPaginatedWorkItem(c *gin.Context, params externalRef0.GetPaginatedWorkItemParams)
	// delete workitem
	// (DELETE /work-item/{workItemID}/)
	DeleteWorkitem(c *gin.Context, workItemID models.WorkItemID)
	// get workitem
	// (GET /work-item/{workItemID}/)
	GetWorkItem(c *gin.Context, workItemID models.WorkItemID)
	// update workitem
	// (PATCH /work-item/{workItemID}/)
	UpdateWorkitem(c *gin.Context, workItemID models.WorkItemID)
	// create work item comment.
	// (POST /work-item/{workItemID}/comment/)
	CreateWorkItemComment(c *gin.Context, workItemID int)
	// delete .
	// (DELETE /work-item/{workItemID}/comment/{workItemCommentID})
	DeleteWorkItemComment(c *gin.Context, workItemID models.WorkItemID, workItemCommentID models.WorkItemCommentID)
	// get work item comment.
	// (GET /work-item/{workItemID}/comment/{workItemCommentID})
	GetWorkItemComment(c *gin.Context, workItemID models.WorkItemID, workItemCommentID models.WorkItemCommentID)
	// update work item comment.
	// (PATCH /work-item/{workItemID}/comment/{workItemCommentID})
	UpdateWorkItemComment(c *gin.Context, workItemID models.WorkItemID, workItemCommentID models.WorkItemCommentID)
	// contains filtered or unexported methods
}

ServerInterface represents all server handlers.

func NewStrictHandler

func NewStrictHandler(ssi StrictServerInterface, strictMiddlewares []StrictMiddlewareFunc) ServerInterface

type ServerInterfaceWrapper

type ServerInterfaceWrapper struct {
	Handler ServerInterface
}

ServerInterfaceWrapper converts contexts to parameters.

func (*ServerInterfaceWrapper) AdminPing

func (siw *ServerInterfaceWrapper) AdminPing(c *gin.Context)

AdminPing operation with its own middleware.

func (*ServerInterfaceWrapper) CreateActivity

func (siw *ServerInterfaceWrapper) CreateActivity(c *gin.Context)

CreateActivity operation with its own middleware.

func (*ServerInterfaceWrapper) CreateTeam

func (siw *ServerInterfaceWrapper) CreateTeam(c *gin.Context)

CreateTeam operation with its own middleware.

func (*ServerInterfaceWrapper) CreateTimeEntry

func (siw *ServerInterfaceWrapper) CreateTimeEntry(c *gin.Context)

CreateTimeEntry operation with its own middleware.

func (*ServerInterfaceWrapper) CreateWorkItemComment

func (siw *ServerInterfaceWrapper) CreateWorkItemComment(c *gin.Context)

CreateWorkItemComment operation with its own middleware.

func (*ServerInterfaceWrapper) CreateWorkItemTag

func (siw *ServerInterfaceWrapper) CreateWorkItemTag(c *gin.Context)

CreateWorkItemTag operation with its own middleware.

func (*ServerInterfaceWrapper) CreateWorkItemType

func (siw *ServerInterfaceWrapper) CreateWorkItemType(c *gin.Context)

CreateWorkItemType operation with its own middleware.

func (*ServerInterfaceWrapper) CreateWorkitem

func (siw *ServerInterfaceWrapper) CreateWorkitem(c *gin.Context)

CreateWorkitem operation with its own middleware.

func (*ServerInterfaceWrapper) DeleteActivity

func (siw *ServerInterfaceWrapper) DeleteActivity(c *gin.Context)

DeleteActivity operation with its own middleware.

func (*ServerInterfaceWrapper) DeleteTeam

func (siw *ServerInterfaceWrapper) DeleteTeam(c *gin.Context)

DeleteTeam operation with its own middleware.

func (*ServerInterfaceWrapper) DeleteTimeEntry

func (siw *ServerInterfaceWrapper) DeleteTimeEntry(c *gin.Context)

DeleteTimeEntry operation with its own middleware.

func (*ServerInterfaceWrapper) DeleteUser

func (siw *ServerInterfaceWrapper) DeleteUser(c *gin.Context)

DeleteUser operation with its own middleware.

func (*ServerInterfaceWrapper) DeleteWorkItemComment

func (siw *ServerInterfaceWrapper) DeleteWorkItemComment(c *gin.Context)

DeleteWorkItemComment operation with its own middleware.

func (*ServerInterfaceWrapper) DeleteWorkItemTag

func (siw *ServerInterfaceWrapper) DeleteWorkItemTag(c *gin.Context)

DeleteWorkItemTag operation with its own middleware.

func (*ServerInterfaceWrapper) DeleteWorkItemType

func (siw *ServerInterfaceWrapper) DeleteWorkItemType(c *gin.Context)

DeleteWorkItemType operation with its own middleware.

func (*ServerInterfaceWrapper) DeleteWorkitem

func (siw *ServerInterfaceWrapper) DeleteWorkitem(c *gin.Context)

DeleteWorkitem operation with its own middleware.

func (*ServerInterfaceWrapper) Events

func (siw *ServerInterfaceWrapper) Events(c *gin.Context)

Events operation with its own middleware.

func (*ServerInterfaceWrapper) GetActivity

func (siw *ServerInterfaceWrapper) GetActivity(c *gin.Context)

GetActivity operation with its own middleware.

func (*ServerInterfaceWrapper) GetCurrentUser

func (siw *ServerInterfaceWrapper) GetCurrentUser(c *gin.Context)

GetCurrentUser operation with its own middleware.

func (*ServerInterfaceWrapper) GetPaginatedNotifications

func (siw *ServerInterfaceWrapper) GetPaginatedNotifications(c *gin.Context)

GetPaginatedNotifications operation with its own middleware.

func (*ServerInterfaceWrapper) GetPaginatedUsers

func (siw *ServerInterfaceWrapper) GetPaginatedUsers(c *gin.Context)

GetPaginatedUsers operation with its own middleware.

func (*ServerInterfaceWrapper) GetPaginatedWorkItem

func (siw *ServerInterfaceWrapper) GetPaginatedWorkItem(c *gin.Context)

GetPaginatedWorkItem operation with its own middleware.

func (*ServerInterfaceWrapper) GetProject

func (siw *ServerInterfaceWrapper) GetProject(c *gin.Context)

GetProject operation with its own middleware.

func (*ServerInterfaceWrapper) GetProjectBoard

func (siw *ServerInterfaceWrapper) GetProjectBoard(c *gin.Context)

GetProjectBoard operation with its own middleware.

func (*ServerInterfaceWrapper) GetProjectConfig

func (siw *ServerInterfaceWrapper) GetProjectConfig(c *gin.Context)

GetProjectConfig operation with its own middleware.

func (*ServerInterfaceWrapper) GetProjectWorkitems

func (siw *ServerInterfaceWrapper) GetProjectWorkitems(c *gin.Context)

GetProjectWorkitems operation with its own middleware.

func (*ServerInterfaceWrapper) GetTeam

func (siw *ServerInterfaceWrapper) GetTeam(c *gin.Context)

GetTeam operation with its own middleware.

func (*ServerInterfaceWrapper) GetTimeEntry

func (siw *ServerInterfaceWrapper) GetTimeEntry(c *gin.Context)

GetTimeEntry operation with its own middleware.

func (*ServerInterfaceWrapper) GetWorkItem

func (siw *ServerInterfaceWrapper) GetWorkItem(c *gin.Context)

GetWorkItem operation with its own middleware.

func (*ServerInterfaceWrapper) GetWorkItemComment

func (siw *ServerInterfaceWrapper) GetWorkItemComment(c *gin.Context)

GetWorkItemComment operation with its own middleware.

func (*ServerInterfaceWrapper) GetWorkItemTag

func (siw *ServerInterfaceWrapper) GetWorkItemTag(c *gin.Context)

GetWorkItemTag operation with its own middleware.

func (*ServerInterfaceWrapper) GetWorkItemType

func (siw *ServerInterfaceWrapper) GetWorkItemType(c *gin.Context)

GetWorkItemType operation with its own middleware.

func (*ServerInterfaceWrapper) InitializeProject

func (siw *ServerInterfaceWrapper) InitializeProject(c *gin.Context)

InitializeProject operation with its own middleware.

func (*ServerInterfaceWrapper) MyProviderCallback

func (siw *ServerInterfaceWrapper) MyProviderCallback(c *gin.Context)

MyProviderCallback operation with its own middleware.

func (*ServerInterfaceWrapper) MyProviderLogin

func (siw *ServerInterfaceWrapper) MyProviderLogin(c *gin.Context)

MyProviderLogin operation with its own middleware.

func (*ServerInterfaceWrapper) OpenapiYamlGet

func (siw *ServerInterfaceWrapper) OpenapiYamlGet(c *gin.Context)

OpenapiYamlGet operation with its own middleware.

func (*ServerInterfaceWrapper) Ping

func (siw *ServerInterfaceWrapper) Ping(c *gin.Context)

Ping operation with its own middleware.

func (*ServerInterfaceWrapper) UpdateActivity

func (siw *ServerInterfaceWrapper) UpdateActivity(c *gin.Context)

UpdateActivity operation with its own middleware.

func (*ServerInterfaceWrapper) UpdateProjectConfig

func (siw *ServerInterfaceWrapper) UpdateProjectConfig(c *gin.Context)

UpdateProjectConfig operation with its own middleware.

func (*ServerInterfaceWrapper) UpdateTeam

func (siw *ServerInterfaceWrapper) UpdateTeam(c *gin.Context)

UpdateTeam operation with its own middleware.

func (*ServerInterfaceWrapper) UpdateTimeEntry

func (siw *ServerInterfaceWrapper) UpdateTimeEntry(c *gin.Context)

UpdateTimeEntry operation with its own middleware.

func (*ServerInterfaceWrapper) UpdateUser

func (siw *ServerInterfaceWrapper) UpdateUser(c *gin.Context)

UpdateUser operation with its own middleware.

func (*ServerInterfaceWrapper) UpdateUserAuthorization

func (siw *ServerInterfaceWrapper) UpdateUserAuthorization(c *gin.Context)

UpdateUserAuthorization operation with its own middleware.

func (*ServerInterfaceWrapper) UpdateWorkItemComment

func (siw *ServerInterfaceWrapper) UpdateWorkItemComment(c *gin.Context)

UpdateWorkItemComment operation with its own middleware.

func (*ServerInterfaceWrapper) UpdateWorkItemTag

func (siw *ServerInterfaceWrapper) UpdateWorkItemTag(c *gin.Context)

UpdateWorkItemTag operation with its own middleware.

func (*ServerInterfaceWrapper) UpdateWorkItemType

func (siw *ServerInterfaceWrapper) UpdateWorkItemType(c *gin.Context)

UpdateWorkItemType operation with its own middleware.

func (*ServerInterfaceWrapper) UpdateWorkitem

func (siw *ServerInterfaceWrapper) UpdateWorkitem(c *gin.Context)

UpdateWorkitem operation with its own middleware.

type ServerOption

type ServerOption func(*Server)

func WithMiddlewares

func WithMiddlewares(mws ...gin.HandlerFunc) ServerOption

WithMiddlewares adds the given middlewares before registering the main routers.

type SharedWorkItemJoins

type SharedWorkItemJoins struct {
	TimeEntries      *[]models.TimeEntry              `json:"timeEntries"`
	WorkItemComments *[]models.WorkItemComment        `json:"workItemComments"`
	Members          *[]models.WorkItemM2MAssigneeWIA `json:"members"`
	WorkItemTags     *[]models.WorkItemTag            `json:"workItemTags"`
	WorkItemType     *models.WorkItemType             `json:"workItemType"`
}

NOTE: keep in sync with base workitem getSharedDBOpts.

type StrictHandlerFunc

type StrictHandlerFunc = strictgin.StrictGinHandlerFunc

type StrictHandlers

type StrictHandlers struct {
	// contains filtered or unexported fields
}

StrictHandlers implements StrictServerInterface.

func (*StrictHandlers) AdminPing

func (*StrictHandlers) CreateActivity

func (*StrictHandlers) CreateTeam

func (*StrictHandlers) CreateTimeEntry

func (*StrictHandlers) CreateWorkItemTag

func (*StrictHandlers) CreateWorkItemType

func (*StrictHandlers) CreateWorkitem

func (*StrictHandlers) DeleteActivity

func (*StrictHandlers) DeleteTeam

func (*StrictHandlers) DeleteTimeEntry

func (*StrictHandlers) DeleteUser

func (*StrictHandlers) DeleteWorkItemTag

func (*StrictHandlers) DeleteWorkItemType

func (*StrictHandlers) DeleteWorkitem

func (*StrictHandlers) Events

Events represents server sent events.

func (*StrictHandlers) GetActivity

func (*StrictHandlers) GetCurrentUser

func (*StrictHandlers) GetPaginatedUsers

func (*StrictHandlers) GetPaginatedWorkItem

func (*StrictHandlers) GetProject

func (*StrictHandlers) GetProjectBoard

func (*StrictHandlers) GetProjectConfig

func (*StrictHandlers) GetProjectWorkitems

func (*StrictHandlers) GetTeam

func (*StrictHandlers) GetTimeEntry

func (*StrictHandlers) GetWorkItem

func (*StrictHandlers) GetWorkItemComment

func (*StrictHandlers) GetWorkItemTag

func (*StrictHandlers) GetWorkItemType

func (*StrictHandlers) InitializeProject

func (*StrictHandlers) MyProviderCallback

func (*StrictHandlers) MyProviderLogin

func (*StrictHandlers) OpenapiYamlGet

func (*StrictHandlers) Ping

func (*StrictHandlers) UpdateActivity

func (*StrictHandlers) UpdateProjectConfig

func (*StrictHandlers) UpdateTeam

func (*StrictHandlers) UpdateTimeEntry

func (*StrictHandlers) UpdateUser

func (*StrictHandlers) UpdateWorkItemTag

func (*StrictHandlers) UpdateWorkItemType

func (*StrictHandlers) UpdateWorkitem

type StrictMiddlewareFunc

type StrictMiddlewareFunc = strictgin.StrictGinMiddlewareFunc

type StrictServerInterface

type StrictServerInterface interface {
	// delete activity.
	// (DELETE /activity/{activityID})
	DeleteActivity(c *gin.Context, request DeleteActivityRequestObject) (DeleteActivityResponseObject, error)
	// get activity.
	// (GET /activity/{activityID})
	GetActivity(c *gin.Context, request GetActivityRequestObject) (GetActivityResponseObject, error)
	// update activity.
	// (PATCH /activity/{activityID})
	UpdateActivity(c *gin.Context, request UpdateActivityRequestObject) (UpdateActivityResponseObject, error)
	// Ping pongs
	// (GET /admin/ping)
	AdminPing(c *gin.Context, request AdminPingRequestObject) (AdminPingResponseObject, error)

	// (GET /auth/myprovider/callback)
	MyProviderCallback(c *gin.Context, request MyProviderCallbackRequestObject) (MyProviderCallbackResponseObject, error)

	// (GET /auth/myprovider/login)
	MyProviderLogin(c *gin.Context, request MyProviderLoginRequestObject) (MyProviderLoginResponseObject, error)

	// (GET /events)
	Events(c *gin.Context, request EventsRequestObject) (EventsResponseObject, error)
	// Get paginated user notifications
	// (GET /notifications/user/page)
	GetPaginatedNotifications(c *gin.Context, request GetPaginatedNotificationsRequestObject) (GetPaginatedNotificationsResponseObject, error)
	// Returns this very OpenAPI spec.
	// (GET /openapi.yaml)
	OpenapiYamlGet(c *gin.Context, request OpenapiYamlGetRequestObject) (OpenapiYamlGetResponseObject, error)
	// Ping pongs
	// (GET /ping)
	Ping(c *gin.Context, request PingRequestObject) (PingResponseObject, error)
	// returns board data for a project
	// (GET /project/{projectName}/)
	GetProject(c *gin.Context, request GetProjectRequestObject) (GetProjectResponseObject, error)
	// create activity.
	// (POST /project/{projectName}/activity/)
	CreateActivity(c *gin.Context, request CreateActivityRequestObject) (CreateActivityResponseObject, error)
	// returns board data for a project
	// (GET /project/{projectName}/board)
	GetProjectBoard(c *gin.Context, request GetProjectBoardRequestObject) (GetProjectBoardResponseObject, error)
	// returns the project configuration
	// (GET /project/{projectName}/config)
	GetProjectConfig(c *gin.Context, request GetProjectConfigRequestObject) (GetProjectConfigResponseObject, error)
	// updates the project configuration
	// (PUT /project/{projectName}/config)
	UpdateProjectConfig(c *gin.Context, request UpdateProjectConfigRequestObject) (UpdateProjectConfigResponseObject, error)
	// creates initial data (teams, tags...) for a new project
	// (POST /project/{projectName}/initialize)
	InitializeProject(c *gin.Context, request InitializeProjectRequestObject) (InitializeProjectResponseObject, error)
	// create team.
	// (POST /project/{projectName}/team/)
	CreateTeam(c *gin.Context, request CreateTeamRequestObject) (CreateTeamResponseObject, error)
	// create workitemtag.
	// (POST /project/{projectName}/work-item-tag/)
	CreateWorkItemTag(c *gin.Context, request CreateWorkItemTagRequestObject) (CreateWorkItemTagResponseObject, error)
	// create workitemtype.
	// (POST /project/{projectName}/work-item-type/)
	CreateWorkItemType(c *gin.Context, request CreateWorkItemTypeRequestObject) (CreateWorkItemTypeResponseObject, error)
	// returns workitems for a project
	// (GET /project/{projectName}/workitems)
	GetProjectWorkitems(c *gin.Context, request GetProjectWorkitemsRequestObject) (GetProjectWorkitemsResponseObject, error)
	// delete team.
	// (DELETE /team/{teamID})
	DeleteTeam(c *gin.Context, request DeleteTeamRequestObject) (DeleteTeamResponseObject, error)
	// get team.
	// (GET /team/{teamID})
	GetTeam(c *gin.Context, request GetTeamRequestObject) (GetTeamResponseObject, error)
	// update team.
	// (PATCH /team/{teamID})
	UpdateTeam(c *gin.Context, request UpdateTeamRequestObject) (UpdateTeamResponseObject, error)
	// create time entry.
	// (POST /time-entry/)
	CreateTimeEntry(c *gin.Context, request CreateTimeEntryRequestObject) (CreateTimeEntryResponseObject, error)
	// delete time-entry.
	// (DELETE /time-entry/{timeEntryID})
	DeleteTimeEntry(c *gin.Context, request DeleteTimeEntryRequestObject) (DeleteTimeEntryResponseObject, error)
	// get time-entry.
	// (GET /time-entry/{timeEntryID})
	GetTimeEntry(c *gin.Context, request GetTimeEntryRequestObject) (GetTimeEntryResponseObject, error)
	// update time-entry.
	// (PATCH /time-entry/{timeEntryID})
	UpdateTimeEntry(c *gin.Context, request UpdateTimeEntryRequestObject) (UpdateTimeEntryResponseObject, error)
	// returns the logged in user
	// (GET /user/me)
	GetCurrentUser(c *gin.Context, request GetCurrentUserRequestObject) (GetCurrentUserResponseObject, error)
	// Get paginated users
	// (GET /user/page)
	GetPaginatedUsers(c *gin.Context, request GetPaginatedUsersRequestObject) (GetPaginatedUsersResponseObject, error)
	// deletes the user by id
	// (DELETE /user/{id})
	DeleteUser(c *gin.Context, request DeleteUserRequestObject) (DeleteUserResponseObject, error)
	// updates the user by id
	// (PATCH /user/{id})
	UpdateUser(c *gin.Context, request UpdateUserRequestObject) (UpdateUserResponseObject, error)
	// updates user role and scopes by id
	// (PATCH /user/{id}/authorization)
	UpdateUserAuthorization(c *gin.Context, request UpdateUserAuthorizationRequestObject) (UpdateUserAuthorizationResponseObject, error)
	// delete workitemtag.
	// (DELETE /work-item-tag/{workItemTagID})
	DeleteWorkItemTag(c *gin.Context, request DeleteWorkItemTagRequestObject) (DeleteWorkItemTagResponseObject, error)
	// get workitemtag.
	// (GET /work-item-tag/{workItemTagID})
	GetWorkItemTag(c *gin.Context, request GetWorkItemTagRequestObject) (GetWorkItemTagResponseObject, error)
	// update workitemtag.
	// (PATCH /work-item-tag/{workItemTagID})
	UpdateWorkItemTag(c *gin.Context, request UpdateWorkItemTagRequestObject) (UpdateWorkItemTagResponseObject, error)
	// delete workitemtype.
	// (DELETE /work-item-type/{workItemTypeID})
	DeleteWorkItemType(c *gin.Context, request DeleteWorkItemTypeRequestObject) (DeleteWorkItemTypeResponseObject, error)
	// get workitemtype.
	// (GET /work-item-type/{workItemTypeID})
	GetWorkItemType(c *gin.Context, request GetWorkItemTypeRequestObject) (GetWorkItemTypeResponseObject, error)
	// update workitemtype.
	// (PATCH /work-item-type/{workItemTypeID})
	UpdateWorkItemType(c *gin.Context, request UpdateWorkItemTypeRequestObject) (UpdateWorkItemTypeResponseObject, error)
	// create workitem
	// (POST /work-item/)
	CreateWorkitem(c *gin.Context, request CreateWorkitemRequestObject) (CreateWorkitemResponseObject, error)
	// Get paginated user work-item
	// (GET /work-item/page)
	GetPaginatedWorkItem(c *gin.Context, request GetPaginatedWorkItemRequestObject) (GetPaginatedWorkItemResponseObject, error)
	// delete workitem
	// (DELETE /work-item/{workItemID}/)
	DeleteWorkitem(c *gin.Context, request DeleteWorkitemRequestObject) (DeleteWorkitemResponseObject, error)
	// get workitem
	// (GET /work-item/{workItemID}/)
	GetWorkItem(c *gin.Context, request GetWorkItemRequestObject) (GetWorkItemResponseObject, error)
	// update workitem
	// (PATCH /work-item/{workItemID}/)
	UpdateWorkitem(c *gin.Context, request UpdateWorkitemRequestObject) (UpdateWorkitemResponseObject, error)
	// create work item comment.
	// (POST /work-item/{workItemID}/comment/)
	CreateWorkItemComment(c *gin.Context, request CreateWorkItemCommentRequestObject) (CreateWorkItemCommentResponseObject, error)
	// delete .
	// (DELETE /work-item/{workItemID}/comment/{workItemCommentID})
	DeleteWorkItemComment(c *gin.Context, request DeleteWorkItemCommentRequestObject) (DeleteWorkItemCommentResponseObject, error)
	// get work item comment.
	// (GET /work-item/{workItemID}/comment/{workItemCommentID})
	GetWorkItemComment(c *gin.Context, request GetWorkItemCommentRequestObject) (GetWorkItemCommentResponseObject, error)
	// update work item comment.
	// (PATCH /work-item/{workItemID}/comment/{workItemCommentID})
	UpdateWorkItemComment(c *gin.Context, request UpdateWorkItemCommentRequestObject) (UpdateWorkItemCommentResponseObject, error)
	// contains filtered or unexported methods
}

StrictServerInterface represents all server handlers.

func NewStrictHandlers

func NewStrictHandlers(
	logger *zap.SugaredLogger, pool *pgxpool.Pool,
	event *EventServer,
	moviesvcclient v1.MovieGenreClient,
	specPath string,
	svcs *services.Services,
	authmw *authMiddleware,
	provider rp.RelyingParty,
) StrictServerInterface

NewStrictHandlers returns a server implementation of an openapi specification.

type TeamResponse

type TeamResponse struct {
	models.Team
}

type TimeEntryResponse

type TimeEntryResponse struct {
	models.TimeEntry
}

type UpdateActivity200JSONResponse

type UpdateActivity200JSONResponse ActivityResponse

func (UpdateActivity200JSONResponse) VisitUpdateActivityResponse

func (response UpdateActivity200JSONResponse) VisitUpdateActivityResponse(w http.ResponseWriter) error

type UpdateActivity401Response

type UpdateActivity401Response struct{}

func (UpdateActivity401Response) VisitUpdateActivityResponse

func (response UpdateActivity401Response) VisitUpdateActivityResponse(w http.ResponseWriter) error

type UpdateActivity403Response

type UpdateActivity403Response struct{}

func (UpdateActivity403Response) VisitUpdateActivityResponse

func (response UpdateActivity403Response) VisitUpdateActivityResponse(w http.ResponseWriter) error

type UpdateActivity4XXJSONResponse

type UpdateActivity4XXJSONResponse struct {
	Body       externalRef0.HTTPError
	StatusCode int
}

func (UpdateActivity4XXJSONResponse) VisitUpdateActivityResponse

func (response UpdateActivity4XXJSONResponse) VisitUpdateActivityResponse(w http.ResponseWriter) error

type UpdateActivityRequest

type UpdateActivityRequest struct {
	models.ActivityUpdateParams
}

type UpdateActivityRequestObject

type UpdateActivityRequestObject struct {
	ActivityID models.ActivityID `json:"activityID"`
	Body       *UpdateActivityRequest
}

type UpdateActivityResponseObject

type UpdateActivityResponseObject interface {
	VisitUpdateActivityResponse(w http.ResponseWriter) error
}

type UpdateProjectConfig204Response

type UpdateProjectConfig204Response struct{}

func (UpdateProjectConfig204Response) VisitUpdateProjectConfigResponse

func (response UpdateProjectConfig204Response) VisitUpdateProjectConfigResponse(w http.ResponseWriter) error

type UpdateProjectConfigRequestObject

type UpdateProjectConfigRequestObject struct {
	ProjectName externalRef0.ProjectName `json:"projectName"`
	Body        *externalRef0.UpdateProjectConfigJSONRequestBody
}

type UpdateProjectConfigResponseObject

type UpdateProjectConfigResponseObject interface {
	VisitUpdateProjectConfigResponse(w http.ResponseWriter) error
}

type UpdateTeam200JSONResponse

type UpdateTeam200JSONResponse TeamResponse

func (UpdateTeam200JSONResponse) VisitUpdateTeamResponse

func (response UpdateTeam200JSONResponse) VisitUpdateTeamResponse(w http.ResponseWriter) error

type UpdateTeam401Response

type UpdateTeam401Response struct{}

func (UpdateTeam401Response) VisitUpdateTeamResponse

func (response UpdateTeam401Response) VisitUpdateTeamResponse(w http.ResponseWriter) error

type UpdateTeam403Response

type UpdateTeam403Response struct{}

func (UpdateTeam403Response) VisitUpdateTeamResponse

func (response UpdateTeam403Response) VisitUpdateTeamResponse(w http.ResponseWriter) error

type UpdateTeam4XXJSONResponse

type UpdateTeam4XXJSONResponse struct {
	Body       externalRef0.HTTPError
	StatusCode int
}

func (UpdateTeam4XXJSONResponse) VisitUpdateTeamResponse

func (response UpdateTeam4XXJSONResponse) VisitUpdateTeamResponse(w http.ResponseWriter) error

type UpdateTeamRequest

type UpdateTeamRequest struct {
	models.TeamUpdateParams
}

type UpdateTeamRequestObject

type UpdateTeamRequestObject struct {
	TeamID models.TeamID `json:"teamID"`
	Body   *UpdateTeamRequest
}

type UpdateTeamResponseObject

type UpdateTeamResponseObject interface {
	VisitUpdateTeamResponse(w http.ResponseWriter) error
}

type UpdateTimeEntry200JSONResponse

type UpdateTimeEntry200JSONResponse TimeEntryResponse

func (UpdateTimeEntry200JSONResponse) VisitUpdateTimeEntryResponse

func (response UpdateTimeEntry200JSONResponse) VisitUpdateTimeEntryResponse(w http.ResponseWriter) error

type UpdateTimeEntry401Response

type UpdateTimeEntry401Response struct{}

func (UpdateTimeEntry401Response) VisitUpdateTimeEntryResponse

func (response UpdateTimeEntry401Response) VisitUpdateTimeEntryResponse(w http.ResponseWriter) error

type UpdateTimeEntry403Response

type UpdateTimeEntry403Response struct{}

func (UpdateTimeEntry403Response) VisitUpdateTimeEntryResponse

func (response UpdateTimeEntry403Response) VisitUpdateTimeEntryResponse(w http.ResponseWriter) error

type UpdateTimeEntry4XXJSONResponse

type UpdateTimeEntry4XXJSONResponse struct {
	Body       externalRef0.HTTPError
	StatusCode int
}

func (UpdateTimeEntry4XXJSONResponse) VisitUpdateTimeEntryResponse

func (response UpdateTimeEntry4XXJSONResponse) VisitUpdateTimeEntryResponse(w http.ResponseWriter) error

type UpdateTimeEntryRequest

type UpdateTimeEntryRequest struct {
	models.TimeEntryUpdateParams
}

type UpdateTimeEntryRequestObject

type UpdateTimeEntryRequestObject struct {
	TimeEntryID models.TimeEntryID `json:"timeEntryID"`
	Body        *UpdateTimeEntryRequest
}

type UpdateTimeEntryResponseObject

type UpdateTimeEntryResponseObject interface {
	VisitUpdateTimeEntryResponse(w http.ResponseWriter) error
}

type UpdateUser200JSONResponse

type UpdateUser200JSONResponse UserResponse

func (UpdateUser200JSONResponse) VisitUpdateUserResponse

func (response UpdateUser200JSONResponse) VisitUpdateUserResponse(w http.ResponseWriter) error

type UpdateUser401Response

type UpdateUser401Response struct{}

func (UpdateUser401Response) VisitUpdateUserResponse

func (response UpdateUser401Response) VisitUpdateUserResponse(w http.ResponseWriter) error

type UpdateUser403Response

type UpdateUser403Response struct{}

func (UpdateUser403Response) VisitUpdateUserResponse

func (response UpdateUser403Response) VisitUpdateUserResponse(w http.ResponseWriter) error

type UpdateUser4XXJSONResponse

type UpdateUser4XXJSONResponse struct {
	Body       externalRef0.HTTPError
	StatusCode int
}

func (UpdateUser4XXJSONResponse) VisitUpdateUserResponse

func (response UpdateUser4XXJSONResponse) VisitUpdateUserResponse(w http.ResponseWriter) error

type UpdateUserAuthorization204Response

type UpdateUserAuthorization204Response struct{}

func (UpdateUserAuthorization204Response) VisitUpdateUserAuthorizationResponse

func (response UpdateUserAuthorization204Response) VisitUpdateUserAuthorizationResponse(w http.ResponseWriter) error

type UpdateUserAuthorization401Response

type UpdateUserAuthorization401Response struct{}

func (UpdateUserAuthorization401Response) VisitUpdateUserAuthorizationResponse

func (response UpdateUserAuthorization401Response) VisitUpdateUserAuthorizationResponse(w http.ResponseWriter) error

type UpdateUserAuthorization403Response

type UpdateUserAuthorization403Response struct{}

func (UpdateUserAuthorization403Response) VisitUpdateUserAuthorizationResponse

func (response UpdateUserAuthorization403Response) VisitUpdateUserAuthorizationResponse(w http.ResponseWriter) error

type UpdateUserAuthorization4XXJSONResponse

type UpdateUserAuthorization4XXJSONResponse struct {
	Body       externalRef0.HTTPError
	StatusCode int
}

func (UpdateUserAuthorization4XXJSONResponse) VisitUpdateUserAuthorizationResponse

func (response UpdateUserAuthorization4XXJSONResponse) VisitUpdateUserAuthorizationResponse(w http.ResponseWriter) error

type UpdateUserAuthorizationRequestObject

type UpdateUserAuthorizationRequestObject struct {
	Id   uuid.UUID `json:"id"`
	Body *externalRef0.UpdateUserAuthorizationJSONRequestBody
}

type UpdateUserAuthorizationResponseObject

type UpdateUserAuthorizationResponseObject interface {
	VisitUpdateUserAuthorizationResponse(w http.ResponseWriter) error
}

type UpdateUserRequestObject

type UpdateUserRequestObject struct {
	Id   uuid.UUID `json:"id"`
	Body *externalRef0.UpdateUserJSONRequestBody
}

type UpdateUserResponseObject

type UpdateUserResponseObject interface {
	VisitUpdateUserResponse(w http.ResponseWriter) error
}

type UpdateWorkItemComment200JSONResponse

type UpdateWorkItemComment200JSONResponse WorkItemCommentResponse

func (UpdateWorkItemComment200JSONResponse) VisitUpdateWorkItemCommentResponse

func (response UpdateWorkItemComment200JSONResponse) VisitUpdateWorkItemCommentResponse(w http.ResponseWriter) error

type UpdateWorkItemComment401Response

type UpdateWorkItemComment401Response struct{}

func (UpdateWorkItemComment401Response) VisitUpdateWorkItemCommentResponse

func (response UpdateWorkItemComment401Response) VisitUpdateWorkItemCommentResponse(w http.ResponseWriter) error

type UpdateWorkItemComment403Response

type UpdateWorkItemComment403Response struct{}

func (UpdateWorkItemComment403Response) VisitUpdateWorkItemCommentResponse

func (response UpdateWorkItemComment403Response) VisitUpdateWorkItemCommentResponse(w http.ResponseWriter) error

type UpdateWorkItemComment4XXJSONResponse

type UpdateWorkItemComment4XXJSONResponse struct {
	Body       externalRef0.HTTPError
	StatusCode int
}

func (UpdateWorkItemComment4XXJSONResponse) VisitUpdateWorkItemCommentResponse

func (response UpdateWorkItemComment4XXJSONResponse) VisitUpdateWorkItemCommentResponse(w http.ResponseWriter) error

type UpdateWorkItemCommentRequest

type UpdateWorkItemCommentRequest struct {
	models.WorkItemCommentUpdateParams
}

type UpdateWorkItemCommentRequestObject

type UpdateWorkItemCommentRequestObject struct {
	WorkItemID        models.WorkItemID        `json:"workItemID"`
	WorkItemCommentID models.WorkItemCommentID `json:"workItemCommentID"`
	Body              *UpdateWorkItemCommentRequest
}

type UpdateWorkItemCommentResponseObject

type UpdateWorkItemCommentResponseObject interface {
	VisitUpdateWorkItemCommentResponse(w http.ResponseWriter) error
}

type UpdateWorkItemTag200JSONResponse

type UpdateWorkItemTag200JSONResponse WorkItemTagResponse

func (UpdateWorkItemTag200JSONResponse) VisitUpdateWorkItemTagResponse

func (response UpdateWorkItemTag200JSONResponse) VisitUpdateWorkItemTagResponse(w http.ResponseWriter) error

type UpdateWorkItemTag401Response

type UpdateWorkItemTag401Response struct{}

func (UpdateWorkItemTag401Response) VisitUpdateWorkItemTagResponse

func (response UpdateWorkItemTag401Response) VisitUpdateWorkItemTagResponse(w http.ResponseWriter) error

type UpdateWorkItemTag403Response

type UpdateWorkItemTag403Response struct{}

func (UpdateWorkItemTag403Response) VisitUpdateWorkItemTagResponse

func (response UpdateWorkItemTag403Response) VisitUpdateWorkItemTagResponse(w http.ResponseWriter) error

type UpdateWorkItemTag4XXJSONResponse

type UpdateWorkItemTag4XXJSONResponse struct {
	Body       externalRef0.HTTPError
	StatusCode int
}

func (UpdateWorkItemTag4XXJSONResponse) VisitUpdateWorkItemTagResponse

func (response UpdateWorkItemTag4XXJSONResponse) VisitUpdateWorkItemTagResponse(w http.ResponseWriter) error

type UpdateWorkItemTagRequest

type UpdateWorkItemTagRequest struct {
	models.WorkItemTagUpdateParams
}

type UpdateWorkItemTagRequestObject

type UpdateWorkItemTagRequestObject struct {
	WorkItemTagID models.WorkItemTagID `json:"workItemTagID"`
	Body          *UpdateWorkItemTagRequest
}

type UpdateWorkItemTagResponseObject

type UpdateWorkItemTagResponseObject interface {
	VisitUpdateWorkItemTagResponse(w http.ResponseWriter) error
}

type UpdateWorkItemType200JSONResponse

type UpdateWorkItemType200JSONResponse WorkItemTypeResponse

func (UpdateWorkItemType200JSONResponse) VisitUpdateWorkItemTypeResponse

func (response UpdateWorkItemType200JSONResponse) VisitUpdateWorkItemTypeResponse(w http.ResponseWriter) error

type UpdateWorkItemType401Response

type UpdateWorkItemType401Response struct{}

func (UpdateWorkItemType401Response) VisitUpdateWorkItemTypeResponse

func (response UpdateWorkItemType401Response) VisitUpdateWorkItemTypeResponse(w http.ResponseWriter) error

type UpdateWorkItemType403Response

type UpdateWorkItemType403Response struct{}

func (UpdateWorkItemType403Response) VisitUpdateWorkItemTypeResponse

func (response UpdateWorkItemType403Response) VisitUpdateWorkItemTypeResponse(w http.ResponseWriter) error

type UpdateWorkItemType4XXJSONResponse

type UpdateWorkItemType4XXJSONResponse struct {
	Body       externalRef0.HTTPError
	StatusCode int
}

func (UpdateWorkItemType4XXJSONResponse) VisitUpdateWorkItemTypeResponse

func (response UpdateWorkItemType4XXJSONResponse) VisitUpdateWorkItemTypeResponse(w http.ResponseWriter) error

type UpdateWorkItemTypeRequest

type UpdateWorkItemTypeRequest struct {
	models.WorkItemTypeUpdateParams
}

type UpdateWorkItemTypeRequestObject

type UpdateWorkItemTypeRequestObject struct {
	WorkItemTypeID models.WorkItemTypeID `json:"workItemTypeID"`
	Body           *UpdateWorkItemTypeRequest
}

type UpdateWorkItemTypeResponseObject

type UpdateWorkItemTypeResponseObject interface {
	VisitUpdateWorkItemTypeResponse(w http.ResponseWriter) error
}

type UpdateWorkitem200JSONResponse

type UpdateWorkitem200JSONResponse externalRef0.WorkItemResponse

func (UpdateWorkitem200JSONResponse) VisitUpdateWorkitemResponse

func (response UpdateWorkitem200JSONResponse) VisitUpdateWorkitemResponse(w http.ResponseWriter) error

type UpdateWorkitemRequestObject

type UpdateWorkitemRequestObject struct {
	WorkItemID models.WorkItemID `json:"workItemID"`
}

type UpdateWorkitemResponseObject

type UpdateWorkitemResponseObject interface {
	VisitUpdateWorkitemResponse(w http.ResponseWriter) error
}

type UserResponse

type UserResponse struct {
	*models.User
	APIKey   *models.UserAPIKey `json:"apiKey,omitempty"`
	Teams    *[]models.Team     `json:"teams"`
	Projects *[]models.Project  `json:"projects"`
	// Role replaces db RoleRank
	Role models.Role `json:"role" ref:"#/components/schemas/Role" required:"true"`
}

UserResponse represents an OpenAPI schema response for a UserResponse.

type WorkItemBase

type WorkItemBase struct {
	models.WorkItem
	SharedWorkItemJoins
	ProjectName models.ProjectName `json:"projectName" ref:"#/components/schemas/ProjectName" required:"true"`
}

type WorkItemCommentResponse

type WorkItemCommentResponse struct {
	models.WorkItemComment
}

type WorkItemTagResponse

type WorkItemTagResponse struct {
	models.WorkItemTag
}

type WorkItemTypeResponse

type WorkItemTypeResponse struct {
	models.WorkItemType
}

Directories

Path Synopsis
Package resttesting provides primitives to interact with the openapi HTTP API.
Package resttesting provides primitives to interact with the openapi HTTP API.

Jump to

Keyboard shortcuts

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