Documentation
¶
Index ¶
- Variables
- func ContextPrepareMiddleware(lg zerolog.Logger) func(handler http.Handler) http.Handler
- func ContextPrepareMiddlewareEcho(lg zerolog.Logger) echo.MiddlewareFunc
- func LoggingMiddleware(next http.Handler) http.Handler
- func NewChiHandler(lg zerolog.Logger) http.Handler
- func NewEchoHandler(lg zerolog.Logger) http.Handler
- func RecoverMiddleware(next http.Handler) http.Handler
- func RecoverMiddlewareEcho(next echo.HandlerFunc) echo.HandlerFunc
- func RequestErrorHandlerFunc(w http.ResponseWriter, r *http.Request, err error)
- func RequestLoggingMiddleware(next http.Handler) http.Handler
- func RequestLoggingMiddlewareEcho(next echo.HandlerFunc) echo.HandlerFunc
- func ResponseErrorHandlerFunc(w http.ResponseWriter, r *http.Request, err error)
- func StartServer(addr string, lg zerolog.Logger, handler http.Handler) error
- type ChiServer
- func (s ChiServer) CreateUpdatePropertyInfoById(ctx context.Context, ...) (chi_server.CreateUpdatePropertyInfoByIdResponseObject, error)
- func (s ChiServer) GetPropertiesInfo(ctx context.Context, request chi_server.GetPropertiesInfoRequestObject) (chi_server.GetPropertiesInfoResponseObject, error)
- func (s ChiServer) GetPropertyInfoById(ctx context.Context, request chi_server.GetPropertyInfoByIdRequestObject) (chi_server.GetPropertyInfoByIdResponseObject, error)
- type EchoServer
- func (e EchoServer) CreateUpdatePropertyInfoById(ctx context.Context, ...) (echo_server.CreateUpdatePropertyInfoByIdResponseObject, error)
- func (e EchoServer) GetPropertiesInfo(ctx context.Context, request echo_server.GetPropertiesInfoRequestObject) (echo_server.GetPropertiesInfoResponseObject, error)
- func (e EchoServer) GetPropertyInfoById(ctx context.Context, request echo_server.GetPropertyInfoByIdRequestObject) (echo_server.GetPropertyInfoByIdResponseObject, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotImplemented = errors.New("not implemented")
Functions ¶
func RecoverMiddlewareEcho ¶
func RecoverMiddlewareEcho(next echo.HandlerFunc) echo.HandlerFunc
func RequestErrorHandlerFunc ¶
func RequestErrorHandlerFunc(w http.ResponseWriter, r *http.Request, err error)
func RequestLoggingMiddlewareEcho ¶
func RequestLoggingMiddlewareEcho(next echo.HandlerFunc) echo.HandlerFunc
func ResponseErrorHandlerFunc ¶
func ResponseErrorHandlerFunc(w http.ResponseWriter, r *http.Request, err error)
Types ¶
type ChiServer ¶
type ChiServer struct{}
func (ChiServer) CreateUpdatePropertyInfoById ¶
func (s ChiServer) CreateUpdatePropertyInfoById( ctx context.Context, request chi_server.CreateUpdatePropertyInfoByIdRequestObject, ) (chi_server.CreateUpdatePropertyInfoByIdResponseObject, error)
func (ChiServer) GetPropertiesInfo ¶
func (s ChiServer) GetPropertiesInfo(ctx context.Context, request chi_server.GetPropertiesInfoRequestObject) (chi_server.GetPropertiesInfoResponseObject, error)
func (ChiServer) GetPropertyInfoById ¶
func (s ChiServer) GetPropertyInfoById( ctx context.Context, request chi_server.GetPropertyInfoByIdRequestObject, ) (chi_server.GetPropertyInfoByIdResponseObject, error)
type EchoServer ¶
type EchoServer struct{}
func (EchoServer) CreateUpdatePropertyInfoById ¶
func (e EchoServer) CreateUpdatePropertyInfoById( ctx context.Context, request echo_server.CreateUpdatePropertyInfoByIdRequestObject, ) (echo_server.CreateUpdatePropertyInfoByIdResponseObject, error)
func (EchoServer) GetPropertiesInfo ¶
func (e EchoServer) GetPropertiesInfo( ctx context.Context, request echo_server.GetPropertiesInfoRequestObject, ) (echo_server.GetPropertiesInfoResponseObject, error)
func (EchoServer) GetPropertyInfoById ¶
func (e EchoServer) GetPropertyInfoById( ctx context.Context, request echo_server.GetPropertyInfoByIdRequestObject, ) (echo_server.GetPropertyInfoByIdResponseObject, error)
Directories
¶
Path | Synopsis |
---|---|
server
|
|
chi
Package oapi_chi_server provides primitives to interact with the openapi HTTP API.
|
Package oapi_chi_server provides primitives to interact with the openapi HTTP API. |
echo
Package oapi_echo_server provides primitives to interact with the openapi HTTP API.
|
Package oapi_echo_server provides primitives to interact with the openapi HTTP API. |
Click to show internal directories.
Click to hide internal directories.