backend

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

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

Go to latest
Published: Jan 4, 2018 License: Apache-2.0 Imports: 19 Imported by: 2

Documentation

Overview

Package backend implements etcd-play web.

Index

Constants

This section is empty.

Variables

View Source
var (
	WebCommand = &cobra.Command{
		Use:   "web",
		Short: "web plays etcd in web browser.",
		Run:   CommandFunc,
	}
)

Functions

func CommandFunc

func CommandFunc(cmd *cobra.Command, args []string)

Types

type ContextAdapter

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

func (*ContextAdapter) ServeHTTP

func (ca *ContextAdapter) ServeHTTP(w http.ResponseWriter, req *http.Request)

type ContextHandler

type ContextHandler interface {
	ServeHTTPContext(context.Context, http.ResponseWriter, *http.Request) error
}

type ContextHandlerFunc

type ContextHandlerFunc func(context.Context, http.ResponseWriter, *http.Request) error

func (ContextHandlerFunc) ServeHTTPContext

func (f ContextHandlerFunc) ServeHTTPContext(ctx context.Context, w http.ResponseWriter, req *http.Request) error

type Flags

type Flags struct {
	EtcdBinary  string
	ClusterSize int
	LiveLog     bool

	KeepAlive      bool
	ClusterTimeout time.Duration
	LimitInterval  time.Duration
	ReviveInterval time.Duration

	StressNumber int

	PlayWebPort    string
	IsRemote       bool
	AgentEndpoints []string
}

Jump to

Keyboard shortcuts

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