handler

package
v0.0.0-...-96d424b Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2020 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Admin

type Admin struct {
	Addr  string
	Etcd  *clientv3.Client
	Model *model.Model
}

func (*Admin) IndexHandle

func (admin *Admin) IndexHandle(c *gin.Context)

func (*Admin) MigrateHandle

func (admin *Admin) MigrateHandle(c *gin.Context)

MigrateHandle 数据迁移.

func (*Admin) NodeHandle

func (admin *Admin) NodeHandle(c *gin.Context)

NodeHandle 节点.

func (*Admin) ReturnJson

func (admin *Admin) ReturnJson(c *gin.Context, msg string, status bool)

func (*Admin) SlotHandle

func (admin *Admin) SlotHandle(c *gin.Context)

SlotHandle 插槽.

func (*Admin) Start

func (admin *Admin) Start()

func (*Admin) StartMigrateHandle

func (admin *Admin) StartMigrateHandle(c *gin.Context)

StartMigrateHandle .

type AdminEngine

type AdminEngine interface {
	Start()
	// contains filtered or unexported methods
}

func NewAdmin

func NewAdmin() AdminEngine

NewAdmin 返回一个Admin接口.

type SlotParams

type SlotParams struct {
	StartSlot int
	EndSlot   int
	IP        string
}

Jump to

Keyboard shortcuts

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