server

package
v0.0.0-...-42bc384 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FlagRouter

func FlagRouter(h *flag.FlagHandler) chi.Router

Types

type Server

type Server struct {
	Mux    http.Handler
	Dbpool *pgxpool.Pool // pgx
	// contains filtered or unexported fields
}

func NewServer

func NewServer(config *ServerOptions) (*Server, error)

func (*Server) ServeHTTP

func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)

type ServerOptions

type ServerOptions struct {
	WebPort string                  `default:"8000" help:"web server port"`
	Logging telemetry.LoggingConfig `embed:"" prefix:"logging."`
}

Jump to

Keyboard shortcuts

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