Documentation ¶
Index ¶
- func CustomHTTPErrorHandler(err error, c echo.Context)
- func NewServer(service factory.ServiceFactory, opts ...OptionFunc) factory.AppServerFactory
- type OptionFunc
- func AddRootMiddlewares(middlewares ...echo.MiddlewareFunc) OptionFunc
- func SetDebugMode(debugMode bool) OptionFunc
- func SetGraphQLDisableIntrospection(graphqlDisableIntrospection bool) OptionFunc
- func SetHTTPPort(port uint16) OptionFunc
- func SetIncludeGraphQL(includeGraphQL bool) OptionFunc
- func SetJaegerMaxPacketSize(max int) OptionFunc
- func SetRootHTTPHandler(rootHandler http.Handler) OptionFunc
- func SetRootMiddlewares(middlewares ...echo.MiddlewareFunc) OptionFunc
- func SetRootPath(rootPath string) OptionFunc
- func SetSharedListener(sharedListener cmux.CMux) OptionFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CustomHTTPErrorHandler ¶ added in v1.7.0
CustomHTTPErrorHandler custom echo http error
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 AddRootMiddlewares ¶ added in v1.8.7
func AddRootMiddlewares(middlewares ...echo.MiddlewareFunc) OptionFunc
AddRootMiddlewares option func
func SetDebugMode ¶ added in v1.7.4
func SetDebugMode(debugMode bool) OptionFunc
SetDebugMode option func
func SetGraphQLDisableIntrospection ¶ added in v1.7.4
func SetGraphQLDisableIntrospection(graphqlDisableIntrospection bool) OptionFunc
SetGraphQLDisableIntrospection 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
Click to show internal directories.
Click to hide internal directories.