server

package
v0.0.0-...-b50d03b Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	Log         *log.Logger
	Repos       []string
	DaysOld     int
	APIEndpoint string
	Token       string
	Port        string
}

Options hold options for the server.

type Server

type Server interface {
	Start() error
	Shutdown(ctx context.Context) error

	Report(w http.ResponseWriter, r *http.Request)
}

Server is the interface for the server.

func NewServer

func NewServer(opts Options) (Server, error)

NewServer initializes a new server.

Jump to

Keyboard shortcuts

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