shard

package
v0.0.0-...-d23ef4a Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2018 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChangePasswordRequest

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

type ConfigurationsWithCount struct {
	TotalCount int64           `json:"total_count"`
	Items      []models.Config `json:"items"`
}

type ErrorResponse

type ErrorResponse struct {
	Code    int    `json:"code"`
	Message string `json:"message"`
}

type LoginRequest

type LoginRequest struct {
	Username string `form:"username" json:"username" binding:"required"`
	Password string `form:"password" json:"password" binding:"required"`
}

type LoginResponse

type LoginResponse struct {
	AccessToken string `json:"access_token"`
}

type LogsWithCount

type LogsWithCount struct {
	TotalCount int64        `json:"total_count"`
	Items      []models.Log `json:"items"`
}

type Paging

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

type PluginCommandExecResult struct {
	Result string `json:"result"`
}

type PluginsWithCount

type PluginsWithCount struct {
	TotalCount int64           `json:"total_count"`
	Items      []models.Plugin `json:"items"`
}

type PutConfigureRequest

type PutConfigureRequest struct {
	Key   string      `form:"key" json:"key" binding:"required"`
	Value interface{} `form:"value" json:"value" binding:"required"`
}

type RegisterRequest

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

type RegisterResponse struct {
	Username   string    `json:"username"`
	Role       []string  `json:"role"`
	CreateDate time.Time `json:"create_date"`
}

Jump to

Keyboard shortcuts

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