server

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2020 License: BSD-3-Clause Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGRPCServer

func NewGRPCServer(config *Config) (*grpc.Server, error)

NewGRPCServer ...

func NewHTTPServer

func NewHTTPServer(config *Config) (*http.Server, error)

NewHTTPServer ...

Types

type Config

type Config struct {
	Db     clusterApi.Backend
	Logger log.Logger
	Addr   string
	Joiner Joiner
}

Config ...

type Joiner added in v0.3.0

type Joiner interface {
	Join(existing []string) (int, error)
}

Joiner is an interface to join to cluster

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server ...

func (*Server) ServeHTTP added in v0.1.0

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

ServeHTTP allows to serve HTTP requests.

Jump to

Keyboard shortcuts

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