keys

package
v0.0.0-...-d340b99 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KeysController

type KeysController struct {
}

KeysController key控制器

func (*KeysController) Add

func (api *KeysController) Add(c *gin.Context)

Add 添加key

func (*KeysController) Del

func (api *KeysController) Del(c *gin.Context)

Del 删除key

func (*KeysController) List

func (api *KeysController) List(c *gin.Context)

List 获取目录下key列表

func (*KeysController) Members

func (api *KeysController) Members(c *gin.Context)

Members 获取etcd服务节点

func (*KeysController) Put

func (api *KeysController) Put(c *gin.Context)

Put 修改key

func (*KeysController) Val

func (api *KeysController) Val(c *gin.Context)

Val 获取一个key的值

type ReqKeyBody

type ReqKeyBody struct {
	Path  string `json:"path"`
	Value string `json:"value"`
}

ReqKeyBody 添加和修改key请求body

Jump to

Keyboard shortcuts

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