Documentation ¶
Index ¶
- func CollectMetrics(c *gin.Context)
- func Leader(c *gin.Context)
- func LeaderResign(c *gin.Context)
- func PProf(c *gin.Context)
- func RedirectIfNotLeader(c *gin.Context)
- type ClusterHandler
- type CreateClusterRequest
- type CreateShardRequest
- type Error
- type MigrateSlotDataRequest
- type MigrateSlotOnlyRequest
- type NamespaceHandler
- type NodeHandler
- type Response
- type Server
- type ShardHandler
- func (handler *ShardHandler) Create(c *gin.Context)
- func (handler *ShardHandler) Failover(c *gin.Context)
- func (handler *ShardHandler) Get(c *gin.Context)
- func (handler *ShardHandler) List(c *gin.Context)
- func (handler *ShardHandler) MigrateSlotData(c *gin.Context)
- func (handler *ShardHandler) MigrateSlotOnly(c *gin.Context)
- func (handler *ShardHandler) Remove(c *gin.Context)
- func (handler *ShardHandler) UpdateSlots(c *gin.Context)
- type SlotsRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CollectMetrics ¶
func LeaderResign ¶
func RedirectIfNotLeader ¶
Types ¶
type ClusterHandler ¶
type ClusterHandler struct {
// contains filtered or unexported fields
}
func (*ClusterHandler) Create ¶
func (handler *ClusterHandler) Create(c *gin.Context)
func (*ClusterHandler) Get ¶
func (handler *ClusterHandler) Get(c *gin.Context)
func (*ClusterHandler) GetFailOverTasks ¶
func (handler *ClusterHandler) GetFailOverTasks(c *gin.Context)
func (*ClusterHandler) List ¶
func (handler *ClusterHandler) List(c *gin.Context)
func (*ClusterHandler) Remove ¶
func (handler *ClusterHandler) Remove(c *gin.Context)
type CreateClusterRequest ¶
type CreateShardRequest ¶
type MigrateSlotDataRequest ¶
type MigrateSlotOnlyRequest ¶
type NamespaceHandler ¶
type NamespaceHandler struct {
// contains filtered or unexported fields
}
func (*NamespaceHandler) Create ¶
func (handler *NamespaceHandler) Create(c *gin.Context)
func (*NamespaceHandler) Exists ¶
func (handler *NamespaceHandler) Exists(c *gin.Context)
func (*NamespaceHandler) List ¶
func (handler *NamespaceHandler) List(c *gin.Context)
func (*NamespaceHandler) Remove ¶
func (handler *NamespaceHandler) Remove(c *gin.Context)
type NodeHandler ¶
type NodeHandler struct {
// contains filtered or unexported fields
}
func (*NodeHandler) Create ¶
func (handler *NodeHandler) Create(c *gin.Context)
func (*NodeHandler) List ¶
func (handler *NodeHandler) List(c *gin.Context)
func (*NodeHandler) Remove ¶
func (handler *NodeHandler) Remove(c *gin.Context)
type Response ¶
type Response struct { Error *Error `json:"error,omitempty"` Data interface{} `json:"data"` }
type ShardHandler ¶
type ShardHandler struct {
// contains filtered or unexported fields
}
func (*ShardHandler) Create ¶
func (handler *ShardHandler) Create(c *gin.Context)
func (*ShardHandler) Failover ¶ added in v0.2.0
func (handler *ShardHandler) Failover(c *gin.Context)
func (*ShardHandler) Get ¶
func (handler *ShardHandler) Get(c *gin.Context)
func (*ShardHandler) List ¶
func (handler *ShardHandler) List(c *gin.Context)
func (*ShardHandler) MigrateSlotData ¶
func (handler *ShardHandler) MigrateSlotData(c *gin.Context)
func (*ShardHandler) MigrateSlotOnly ¶
func (handler *ShardHandler) MigrateSlotOnly(c *gin.Context)
func (*ShardHandler) Remove ¶
func (handler *ShardHandler) Remove(c *gin.Context)
func (*ShardHandler) UpdateSlots ¶
func (handler *ShardHandler) UpdateSlots(c *gin.Context)
type SlotsRequest ¶
type SlotsRequest struct {
Slots []string `json:"slots" validate:"required"`
}
Click to show internal directories.
Click to hide internal directories.