pacific

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Logger

func Logger(ctx context.Context) zerolog.Logger

func LoggerMiddleware

func LoggerMiddleware(next http.Handler) http.Handler

Types

type Server

type Server[T any] struct {
	// contains filtered or unexported fields
}

func NewServer

func NewServer[T any](contextCreator func(w http.ResponseWriter, r *http.Request) T) *Server[T]

func (*Server[T]) AddRoute

func (s *Server[T]) AddRoute(method string, pattern string, handler func(T))

func (*Server[T]) Serve

func (s *Server[T]) Serve(listenAddr string) error

Jump to

Keyboard shortcuts

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