Versions in this module Expand all Collapse all v1 v1.1.0 Apr 12, 2024 v1.0.0 Apr 6, 2024 Changes in this version + func GetSwagger() (swagger *openapi3.T, err error) + func PathToRawSpec(pathToFile string) map[string]func() ([]byte, error) + func RegisterHandlers(router EchoRouter, si ServerInterface) + func RegisterHandlersWithBaseURL(router EchoRouter, si ServerInterface, baseURL string) + type Book struct + Author string + Category string + Description string + Featured bool + Id *string + ImageLink string + Summary string + Title string + type BookItem struct + Author string + Id string + ImageLink string + Summary string + Title string + type BookList struct + Items []BookItem + Total int + type EchoRouter interface + CONNECT func(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route + DELETE func(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route + GET func(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route + HEAD func(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route + OPTIONS func(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route + PATCH func(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route + POST func(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route + PUT func(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route + TRACE func(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route + type Error struct + Code string + Msg string + type GetBooksParams struct + Limit *int + Offset *int + type GetBooksSearchParams struct + Limit *int + Offset *int + Q *string + type PostBooksJSONRequestBody = Book + type Server struct + func NewServer(repo *core.Repository) *Server + func (s *Server) DeleteBookByID(c echo.Context, id string) error + func (s *Server) GetBookByID(c echo.Context, id string) error + func (s *Server) GetBooks(c echo.Context, params GetBooksParams) error + func (s *Server) GetBooksSearch(c echo.Context, params GetBooksSearchParams) error + func (s *Server) PostBooks(c echo.Context) error + func (s *Server) RegisterWith(e *echo.Echo) + func (s *Server) UpdateBookByID(c echo.Context, id string) error + type ServerInterface interface + DeleteBookByID func(ctx echo.Context, id string) error + GetBookByID func(ctx echo.Context, id string) error + GetBooks func(ctx echo.Context, params GetBooksParams) error + GetBooksSearch func(ctx echo.Context, params GetBooksSearchParams) error + PostBooks func(ctx echo.Context) error + UpdateBookByID func(ctx echo.Context, id string) error + type ServerInterfaceWrapper struct + Handler ServerInterface + func (w *ServerInterfaceWrapper) DeleteBookByID(ctx echo.Context) error + func (w *ServerInterfaceWrapper) GetBookByID(ctx echo.Context) error + func (w *ServerInterfaceWrapper) GetBooks(ctx echo.Context) error + func (w *ServerInterfaceWrapper) GetBooksSearch(ctx echo.Context) error + func (w *ServerInterfaceWrapper) PostBooks(ctx echo.Context) error + func (w *ServerInterfaceWrapper) UpdateBookByID(ctx echo.Context) error + type UpdateBookByIDJSONRequestBody = Book