Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HTTPErrorHandler ¶
func HTTPErrorHandler(err error, c echo.Context)
Types ¶
type CacheStore ¶
CacheStore simple redis implementation
func (*CacheStore) Ping ¶
func (s *CacheStore) Ping() error
type Server ¶
type Server struct { Echo *echo.Echo // HTTP middleware // contains filtered or unexported fields }
func NewServer ¶
func NewServer(config *config.Configuration) *Server
NewServer will create a new instance of the application
func (*Server) GetConfig ¶
func (s *Server) GetConfig() *config.Configuration
GetConfig return the current app configuration
func (*Server) GetModelRegistry ¶
GetModelRegistry returns the model registry
func (*Server) GracefulShutdown ¶
func (s *Server) GracefulShutdown()
GracefulShutdown Wait for interrupt signal to gracefully shutdown the server with a timeout of 5 seconds.
func (*Server) ServeStaticFiles ¶
func (s *Server) ServeStaticFiles()
ServeStaticFiles serve static files for development purpose
Source Files ¶
Click to show internal directories.
Click to hide internal directories.