Documentation
¶
Index ¶
- type Repo
- type RoundRepo
- type Server
- func (s *Server) CreateRound(ctx echo.Context) error
- func (s *Server) GetLatestRoundID(ctx echo.Context) error
- func (s *Server) GetRound(ctx echo.Context, roundID string) error
- func (s *Server) ListenAndServe(addr string) error
- func (s *Server) SendScore(ctx echo.Context, roundID string) error
- func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)
- func (s *Server) WithLogLevel(level log.Lvl) *Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RoundRepo ¶
type RoundRepo interface {
CreateEventRoundStart(ctx context.Context, roundID uuid.UUID, req api.RoundRequest) error
GetRound(ctx context.Context, roundID uuid.UUID) (*api.Round, error)
SetScore(ctx context.Context, roundID uuid.UUID, scoreData api.PlayerScoreEvent) error
GetLatestRoundID(ctx context.Context) (string, error)
}
Click to show internal directories.
Click to hide internal directories.