package
Version:
v0.0.0-...-d23ef4a
Opens a new window with list of versions in this module.
Published: Jun 20, 2018
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 3
Opens a new window with list of known importers.
Documentation
¶
type ChangePasswordRequest struct {
OldPassword string `form:"old_password" json:"old_password" binding:"required"`
NewPassword string `form:"new_password" json:"new_password" binding:"required"`
}
type ConfigurationsWithCount struct {
TotalCount int64 `json:"total_count"`
Items []models.Config `json:"items"`
}
type ErrorResponse struct {
Code int `json:"code"`
Message string `json:"message"`
}
type LoginRequest struct {
Username string `form:"username" json:"username" binding:"required"`
Password string `form:"password" json:"password" binding:"required"`
}
type LoginResponse struct {
AccessToken string `json:"access_token"`
}
type LogsWithCount struct {
TotalCount int64 `json:"total_count"`
Items []models.Log `json:"items"`
}
type Paging struct {
Page uint32 `json:"page" form:"page" query:"page"`
Size uint32 `json:"size" form:"size" query:"size"`
Sort string `json:"sort" form:"sort" query:"sort"`
Order string `json:"order" form:"order" query:"order"`
}
type PluginCommandExecResult struct {
Result string `json:"result"`
}
type PluginsWithCount struct {
TotalCount int64 `json:"total_count"`
Items []models.Plugin `json:"items"`
}
type PutConfigureRequest struct {
Key string `form:"key" json:"key" binding:"required"`
Value interface{} `form:"value" json:"value" binding:"required"`
}
type RegisterRequest struct {
Username string `form:"username" json:"username" binding:"required"`
Password string `form:"password" json:"password" binding:"required"`
Roles []string `form:"roles" json:"roles" binding:"required"`
}
type RegisterResponse struct {
Username string `json:"username"`
Role []string `json:"role"`
CreateDate time.Time `json:"create_date"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.