server

package
v0.0.0-...-099dad8 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2021 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 ControlPanel

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

ControlPanel is an API for providing operations on a WARC archive.

func NewControlPanel

func NewControlPanel(server *Server, router *mux.Router) *ControlPanel

NewControlPanel creates a new control panel.

type ResourceHandler

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

ResourceHandler is an API for providing web resources for an WARC archive.

func NewResourceHandler

func NewResourceHandler(server *Server, router *mux.Router) *ResourceHandler

NewResourceHandler creates a new resource handler.

type Server

type Server struct {
	Archive         *warc.File
	EnableInterface bool
	Site            string
	// contains filtered or unexported fields
}

Server serves a WARC file locally.

func NewServer

func NewServer(reader *warc.Reader, archive *warc.File, site string) *Server

NewServer creates a new server for an archive.

func (*Server) Start

func (server *Server) Start(address string, port uint16)

Start starts the server on the current thread.

Jump to

Keyboard shortcuts

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