server

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2020 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Package server implements a starbow node.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger interface {
	Printf(format string, v ...interface{})
}

type Server

type Server struct {
	Addr   string
	Net    string
	Logger Logger
	Stores []storage.Store
	// contains filtered or unexported fields
}

func New

func New() *Server

New creates a new server with default values.

func (*Server) Serve

func (s *Server) Serve() error

Serve starts the server and blocks until the process receives a terminating operating system signal.

func (*Server) ServeHTTP

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

Jump to

Keyboard shortcuts

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