Documentation

Overview

Package backend implements etcd-play web.

Index

Constants

This section is empty.

Variables

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
}