Documentation ¶
Index ¶
- func Error(c *gin.Context, code int, data interface{})
- type ChangePasswordRequest
- type ErrResponse
- type GetNodeListRequest
- type NodeAddRequest
- type NodeAddResponse
- type NodeAvailableRequest
- type NodeAvailableResponse
- type NodeListResponse
- type NodeResponse
- type PutUserToNodeRequest
- type Request
- type Response
- type UserCreateRequest
- type UserListResponse
- type UserNodeResponse
- type UserNodesResponse
- type UserResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ChangePasswordRequest ¶
type ErrResponse ¶
type ErrResponse struct { Code int `json:"code"` Data interface{} `json:"msg"` }
func (*ErrResponse) Build ¶
func (r *ErrResponse) Build(c *gin.Context)
type GetNodeListRequest ¶
type GetNodeListRequest struct {
Email string `json:"email"`
}
type NodeAddRequest ¶
type NodeAddRequest struct{}
type NodeAddResponse ¶
type NodeAddResponse struct { Addr string `json:"addr"` Port string `json:"port"` Tag string `json:"tag"` }
func (*NodeAddResponse) Build ¶
func (r *NodeAddResponse) Build(c *gin.Context)
type NodeAvailableRequest ¶
type NodeAvailableResponse ¶
type NodeAvailableResponse struct {
State int `json:"state"`
}
func (*NodeAvailableResponse) Build ¶
func (r *NodeAvailableResponse) Build(c *gin.Context)
type NodeListResponse ¶
type NodeListResponse []*NodeResponse
type NodeResponse ¶
type PutUserToNodeRequest ¶
type UserCreateRequest ¶
type UserListResponse ¶
type UserListResponse []*UserResponse
type UserNodeResponse ¶
type UserNodesResponse ¶
type UserNodesResponse []*UserNodeResponse
type UserResponse ¶
Click to show internal directories.
Click to hide internal directories.