Documentation ¶
Overview ¶
Package categoryweb provides primitives to interact the openapi HTTP API.
Code generated by github.com/deepmap/oapi-codegen DO NOT EDIT.
Package categoryweb provides primitives to interact the openapi HTTP API.
Code generated by github.com/deepmap/oapi-codegen DO NOT EDIT.
Index ¶
- func RegisterHandlers(router EchoRouter, si ServerInterface)
- func RegisterHandlersWithBaseURL(router EchoRouter, si ServerInterface, baseURL string)
- type Category
- type CategoryIdParameter
- type CreateCategoryJSONBody
- type CreateCategoryJSONRequestBody
- type EchoRouter
- type GetCategoryByIdResponse
- type Server
- type ServerInterface
- type ServerInterfaceWrapper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterHandlers ¶
func RegisterHandlers(router EchoRouter, si ServerInterface)
RegisterHandlers adds each server route to the EchoRouter.
func RegisterHandlersWithBaseURL ¶
func RegisterHandlersWithBaseURL(router EchoRouter, si ServerInterface, baseURL string)
Registers handlers, and prepends BaseURL to the paths, so that the paths can be served under a prefix.
Types ¶
type CategoryIdParameter ¶ added in v1.5.0
type CategoryIdParameter string
CategoryIdParameter defines model for CategoryIdParameter.
type CreateCategoryJSONBody ¶
type CreateCategoryJSONBody Category
CreateCategoryJSONBody defines parameters for CreateCategory.
type CreateCategoryJSONRequestBody ¶
type CreateCategoryJSONRequestBody CreateCategoryJSONBody
CreateCategoryJSONRequestBody defines body for CreateCategory for application/json ContentType.
type EchoRouter ¶
type EchoRouter interface { CONNECT(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route DELETE(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route GET(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route HEAD(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route OPTIONS(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route PATCH(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route POST(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route PUT(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route TRACE(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route }
This is a simple interface which specifies echo.Route addition functions which are present on both echo.Echo and echo.Group, since we want to allow using either of them for path registration
type GetCategoryByIdResponse ¶ added in v1.5.0
type GetCategoryByIdResponse Category
GetCategoryByIdResponse defines model for GetCategoryByIdResponse.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func NewServer ¶
func NewServer(application app.Application) *Server
func (Server) CreateCategory ¶
func (Server) GetCategoryCategoryId ¶ added in v1.5.0
func (s Server) GetCategoryCategoryId(ctx echo.Context, categoryId CategoryIdParameter) error
type ServerInterface ¶
type ServerInterface interface { // (POST /category) CreateCategory(ctx echo.Context) error // (GET /category/{categoryId}) GetCategoryCategoryId(ctx echo.Context, categoryId CategoryIdParameter) error }
ServerInterface represents all server handlers.
type ServerInterfaceWrapper ¶
type ServerInterfaceWrapper struct {
Handler ServerInterface
}
ServerInterfaceWrapper converts echo contexts to parameters.
func (*ServerInterfaceWrapper) CreateCategory ¶
func (w *ServerInterfaceWrapper) CreateCategory(ctx echo.Context) error
CreateCategory converts echo context to params.
func (*ServerInterfaceWrapper) GetCategoryCategoryId ¶ added in v1.5.0
func (w *ServerInterfaceWrapper) GetCategoryCategoryId(ctx echo.Context) error
GetCategoryCategoryId converts echo context to params.