internal

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 24, 2024 License: GPL-3.0 Imports: 10 Imported by: 0

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

func (*Server) Start

func (s *Server) Start(ctx context.Context)

type ServerConfig

type ServerConfig struct {
	ListenAddr string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL