Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrorMiddleware ¶
func ErrorMiddleware(next echo.HandlerFunc) echo.HandlerFunc
func HTTPErrorHandler ¶
func HTTPErrorHandler(err error, c echo.Context)
Types ¶
type APIServerStartOptions ¶ added in v0.27.7
type Api ¶ added in v0.27.8
type Api struct { sync.Mutex // Address is the network address where the web server will listen on. // Defaults to `:9999`. Address string TLSAddress string // ShutdownTimeout defines the max duration used to wait the web server // gracefully shutting down. Defaults to `30 * time.Second`. ShutdownTimeout time.Duration // contains filtered or unexported fields }
func NewWithManager ¶ added in v0.27.7
func NewWithManager(manager rpaas.RpaasManager) (*Api, error)
New creates an api instance.
func NewWithTargetFactory ¶ added in v0.27.7
func NewWithTargetFactoryWithDefaults ¶ added in v0.27.7
func (*Api) StartWithOptions ¶ added in v0.27.8
func (a *Api) StartWithOptions(options APIServerStartOptions) error
Source Files ¶
Click to show internal directories.
Click to hide internal directories.