Documentation ¶ Index ¶ type Server func NewServer(addr string, log *slog.Logger, newStats *stats.Stats, handle *handler.Handler) *Server func (s *Server) Err() <-chan error func (s *Server) ServeAsync() func (s *Server) Shutdown(ctx context.Context) error func (s *Server) Stats() *stats.Stats 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 Source Files ¶ View all Source files server.go Click to show internal directories. Click to hide internal directories.