restserver

package
v1.14.11 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2023 License: Apache-2.0 Imports: 22 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CustomHTTPErrorHandler added in v1.7.0

func CustomHTTPErrorHandler(err error, c echo.Context)

CustomHTTPErrorHandler custom echo http error

func EchoLoggerMiddleware added in v1.14.0

func EchoLoggerMiddleware(isActive bool, writer io.Writer) echo.MiddlewareFunc

EchoLoggerMiddleware middleware

func EchoWrapMiddleware added in v1.14.0

func EchoWrapMiddleware(m func(http.Handler) http.Handler) echo.MiddlewareFunc

EchoWrapMiddleware wraps `func(http.Handler) http.Handler` into `echo.MiddlewareFunc`

func NewServer

func NewServer(service factory.ServiceFactory, opts ...OptionFunc) factory.AppServerFactory

NewServer create new REST server

Types

type OptionFunc added in v1.7.4

type OptionFunc func(*option)

OptionFunc type

func AddGraphQLOption added in v1.12.0

func AddGraphQLOption(opts ...graphqlserver.OptionFunc) OptionFunc

AddGraphQLOption option func

func AddRootMiddlewares added in v1.8.7

func AddRootMiddlewares(middlewares ...echo.MiddlewareFunc) OptionFunc

AddRootMiddlewares option func, overide root middleware

func SetDebugMode added in v1.7.4

func SetDebugMode(debugMode bool) OptionFunc

SetDebugMode option func

func SetEchoEngineOption added in v1.11.3

func SetEchoEngineOption(echoFunc func(e *echo.Echo)) OptionFunc

SetEchoEngineOption option func

func SetErrorHandler added in v1.8.12

func SetErrorHandler(errorHandler echo.HTTPErrorHandler) OptionFunc

SetErrorHandler option func

func SetHTTPPort added in v1.7.4

func SetHTTPPort(port uint16) OptionFunc

SetHTTPPort option func

func SetIncludeGraphQL added in v1.7.4

func SetIncludeGraphQL(includeGraphQL bool) OptionFunc

SetIncludeGraphQL option func

func SetJaegerMaxPacketSize added in v1.7.4

func SetJaegerMaxPacketSize(max int) OptionFunc

SetJaegerMaxPacketSize option func

func SetRootHTTPHandler added in v1.7.4

func SetRootHTTPHandler(rootHandler http.Handler) OptionFunc

SetRootHTTPHandler option func

func SetRootMiddlewares added in v1.7.7

func SetRootMiddlewares(middlewares ...echo.MiddlewareFunc) OptionFunc

SetRootMiddlewares option func

func SetRootPath added in v1.7.4

func SetRootPath(rootPath string) OptionFunc

SetRootPath option func

func SetSharedListener added in v1.7.4

func SetSharedListener(sharedListener cmux.CMux) OptionFunc

SetSharedListener option func

Jump to

Keyboard shortcuts

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