Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterEndpoints ¶
func RegisterEndpoints( mux *http.ServeMux, logger *slog.Logger, users user.UserStore, workouts workout.WorkoutStore, exercises exercise.ExerciseStore, )
Types ¶
type Server ¶
type Server struct { ServerConfig // contains filtered or unexported fields }
func NewServer ¶
func NewServer( config ServerConfig, logger *slog.Logger, users user.UserStore, workouts workout.WorkoutStore, exercises exercise.ExerciseStore, ) *Server
type ServerConfig ¶
type ServerConfig struct {
ListenAddr string
}
Click to show internal directories.
Click to hide internal directories.