server

package
v4.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2018 License: MIT Imports: 22 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 {
	Indexer  *indexer.Indexer
	BookDir  string
	CoverDir string
	NoCovers bool
	Addr     string
	Verbose  bool
	// contains filtered or unexported fields
}

Server is a BookBrowser server.

func NewServer

func NewServer(addr, bookdir, coverdir, version string, verbose, nocovers bool) *Server

NewServer creates a new BookBrowser server. It will not index the books automatically.

func (*Server) RefreshBookIndex

func (s *Server) RefreshBookIndex() error

RefreshBookIndex refreshes the book index

func (*Server) Serve

func (s *Server) Serve() error

Serve starts the BookBrowser server. It does not return unless there is an error.

Jump to

Keyboard shortcuts

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