web

package
v0.0.0-...-8aec21d Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetOnDiskFn

type GetOnDiskFn func(category string) (*server.OnDisk, error)

type Server

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

Server implements a web server

func NewServer

func NewServer(logger *log.Logger, instanceName string, dirname string, listenAddr string, replStorage *replication.Storage, getOnDisk GetOnDiskFn) *Server

NewServer creates *Server

func (*Server) Serve

func (s *Server) Serve() error

Serve listens to HTTP connections

Jump to

Keyboard shortcuts

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