api

package
v0.0.0-...-e705344 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RouteConfig

type RouteConfig struct {
	Timeout     time.Duration
	MaxPageSize int
	PageSize    int
	JWTSecret   string
	APIVersion  string
}

type Server

type Server struct {
	// contains filtered or unexported fields
}

func NewServer

func NewServer(
	logger *slog.Logger,
	db *database.Queries,
	timeProvider models.TimeProvider,
	config RouteConfig,
) (*Server, error)

func (*Server) SetupRoutes

func (s *Server) SetupRoutes(cfg handlers.Config) http.Handler

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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