http

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	Log *slog.Logger
	// contains filtered or unexported fields
}

func NewServer

func NewServer(addr string, log *slog.Logger, newStats *stats.Stats, handle *handler.Handler) *Server

func (*Server) Err

func (s *Server) Err() <-chan error

func (*Server) ServeAsync

func (s *Server) ServeAsync()

func (*Server) Shutdown

func (s *Server) Shutdown(ctx context.Context) error

func (*Server) Stats

func (s *Server) Stats() *stats.Stats

Jump to

Keyboard shortcuts

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