weblog

package
v1.3.4 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DryccLogsMaximumLines   = 300
	DryccLogsMaximumTimeout = 300
)

Functions

This section is empty.

Types

type Server

type Server struct {
	// The Listener used for incoming HTTP connections
	Listener net.Listener
	// Server may be changed before calling Start()
	Server *http.Server
	// base URL of form http://ipaddr:port with no trailing slash
	URL string
	// contains filtered or unexported fields
}

Server implements an HTTP server.

func NewServer

func NewServer(storageAdapter storage.Adapter) *Server

NewServer returns a new HTTP Server. The caller should call Start to start it and Close when finished to shut it down.

func (*Server) Close

func (s *Server) Close()

Close closes the HTTP Server from listening for the inbound requests.

func (*Server) Start

func (s *Server) Start()

Start starts an HTTP server.

Jump to

Keyboard shortcuts

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