categoryweb

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

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

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 Category

type Category struct {
	Id   *string `json:"id,omitempty"`
	Name *string `json:"name,omitempty"`
}

Category defines model for Category.

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 (s Server) CreateCategory(ctx echo.Context) error

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.

Jump to

Keyboard shortcuts

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