server

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2020 License: Apache-2.0 Imports: 8 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
}

Server allows the viewing and querying (and in the future, editing) of entries over HTTP. It wraps a *entries.Collection, meaning "filtered" servers can be made, which only render a subset of a larger Albatross store. Servers can be started using the command line tool, running `albatross get server`.

func NewServer

func NewServer(collection *entries.Collection) *Server

NewServer returns a new server struct from an *entries.Collection.

func (*Server) Serve

func (s *Server) Serve(port int) error

Serve begins accepting requests on the given port.

Jump to

Keyboard shortcuts

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