server

package
v0.0.0-...-038a048 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2019 License: GPL-3.0 Imports: 7 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 {
	conf.Configuration
}

Server Data Structure for holding the configuration and logger

func NewServer

func NewServer(c conf.Configuration) *Server

NewServer function creates a new server and return a pointer to it

func (*Server) RootHandler

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

RootHandler is the controller responsible for the frontend

func (*Server) SearchFile

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

SearchFile is the controller that helps with indexing the file

func (*Server) Start

func (s *Server) Start()

Start function starts the server

Jump to

Keyboard shortcuts

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