server

package
v0.0.0-...-9107137 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

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
}

func NewServer

func NewServer(staticPath string, listener net.Listener, store *datastore.Datastore, log logr.Logger) (*Server, error)

func (*Server) Address

func (s *Server) Address() string
func (s *Server) BackLinks(w http.ResponseWriter, r *http.Request)

BackLinks returns backLinks for a given document.

func (*Server) HealthCheck

func (s *Server) HealthCheck(w http.ResponseWriter, r *http.Request)

func (*Server) NotFoundHandler

func (s *Server) NotFoundHandler(w http.ResponseWriter, r *http.Request)

func (*Server) StartAndBlock

func (s *Server) StartAndBlock() error

StartAndBlock starts the server and blocks.

Jump to

Keyboard shortcuts

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