server

package
v0.0.0-...-0f8884b Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClientDel

func ClientDel(c *gin.Context)

func ClientList

func ClientList(c *gin.Context)

func ClientPut

func ClientPut(c *gin.Context)

func Test

func Test(c *gin.Context)

func Version

func Version(c *gin.Context)

Types

type ClientDelHeader

type ClientDelHeader struct {
	Name string `json:"name"`
}

type ClientPutHeader

type ClientPutHeader struct {
	Config string `json:"config"`
}

type DtsResource

type DtsResource struct {
	Etcd *clientv3.Client
}
var DtsRes DtsResource

func (*DtsResource) Close

func (d *DtsResource) Close()

type DtsServer

type DtsServer struct {
	// contains filtered or unexported fields
}
var Server *DtsServer

func NewDtsServer

func NewDtsServer() *DtsServer

func (*DtsServer) GetName

func (s *DtsServer) GetName() string

func (*DtsServer) Shutdown

func (s *DtsServer) Shutdown()

type ResponseData

type ResponseData struct {
	Stat int         `json:"stat"`
	Data interface{} `json:"data"`
}

响应的消息

func BuildResponse

func BuildResponse(stat int, data interface{}) *ResponseData

Jump to

Keyboard shortcuts

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