Documentation
¶
Index ¶
- func HTTPErrorHandler(err error, c echo.Context)
- func NewRouter(server *Server) *echo.Echo
- type CacheStore
- type RacerStore
- func (s *RacerStore) Challenge(m *[]models.Racer) error
- func (s *RacerStore) Create(m *models.Racer) error
- func (s *RacerStore) Find(m *[]models.Racer) error
- func (s *RacerStore) First(m *models.Racer) error
- func (s *RacerStore) Ping() error
- func (s *RacerStore) VoteDown(racerId uuid.UUID) error
- func (s *RacerStore) VoteUp(racerId uuid.UUID) error
- type Server
- type Validator
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 RacerStore ¶
RacerStore implements the RacerStore interface
func (*RacerStore) Ping ¶
func (s *RacerStore) 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.