server

package
v0.0.0-...-4eca9c6 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2023 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Overview

Package server implements the ricrob server.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

Server represents a ricrob server.

func New

func New(logger *log.Logger, host, port string, execer *exec.Execer, solvers []string) (*Server, error)

New creates a new server instance.

func (*Server) ListenAndServe

func (s *Server) ListenAndServe(errCh chan<- error)

ListenAndServe starts the server listening and serving content.

func (*Server) Shutdown

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

Shutdown shuts down the server gracefully.

Jump to

Keyboard shortcuts

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