gateway

package
v0.0.0-...-9ccf891 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2016 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// Gateway HTTP listening address.
	Addr string

	// Etcd endpoints
	EtcdAddrs []string
}

Config is the configuration for etcdv3 gateway.

type Gateway

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

Gateway is a HTTP gateway to communicate with Etcd with v3 protocol.

func NewGateway

func NewGateway(cfg *Config) (*Gateway, error)

NewGateway creates the gateway.

func (*Gateway) Run

func (gw *Gateway) Run() error

Run runs the gateway server.

Jump to

Keyboard shortcuts

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