http

package
v0.0.0-...-8a3301c Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2017 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HttpError

type HttpError struct {
	Message string `json:"message"`
	Code    int    `json:"-"`
}

func (HttpError) WriteTo

func (e HttpError) WriteTo(w http.ResponseWriter)

type HttpService

type HttpService interface {
	Start(chan<- error)
	Stop()
}

func NewHttpService

func NewHttpService(cfg HttpServiceConfig, node comm.Node, store storage.KeyValueStore) (HttpService, error)

type HttpServiceConfig

type HttpServiceConfig struct {
	ServiceUrl string
	// contains filtered or unexported fields
}

type LeaderResp

type LeaderResp struct {
	Leader   comm.Member `json:"leader"`
	IsLeader bool        `json:"is_leader"`
}

Jump to

Keyboard shortcuts

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