routers

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2018 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ROLE_LEADER   = "leader"
	ROLE_FOLLOWER = "follower"

	STATUS_HEALTHY   = "healthy"
	STATUS_UNHEALTHY = "unhealthy"
)
View Source
const (
	ETCD_USERNAME_HEADER = "X-Etcd-Username"
	ETCD_PASSWORD_HEADER = "X-Etcd-Password"
)
View Source
const (
	ETCD_CLIENT_TIMEOUT = 3 * time.Second
)

Variables

This section is empty.

Functions

func InitRouters

func InitRouters(g *gin.Engine, config *conf.Config, e3chClt *client.EtcdHRCHYClient)

Types

type Member

type Member struct {
	*etcdserverpb.Member
	Role   string `json:"role"`
	Status string `json:"status"`
	DbSize int64  `json:"db_size"`
}

type Node

type Node struct {
	Key   string `json:"key"`
	Value string `json:"value"`
	IsDir bool   `json:"is_dir"`
}

Jump to

Keyboard shortcuts

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