Documentation
¶
Index ¶
- type BaseResponse
- type ClusterInfo
- type ClusterInfoData
- type DiscordServer
- type DiscordServerData
- type HistoryItem
- type HistoryList
- type HistoryListData
- type HistoryQuery
- type NodeItem
- type PageInfoRequest
- type PageInfoResponse
- type UserInfo
- type UserInfoData
- type UserItem
- type UserList
- type UserListData
- type UserQuery
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseResponse ¶ added in v1.3.3
type BaseResponse struct { // code Code int32 `json:"code"` // message Message string `json:"message,omitempty"` }
BaseResponse base response
swagger:model BaseResponse
func (*BaseResponse) ContextValidate ¶ added in v1.3.3
ContextValidate validates this base response based on context it is used
func (*BaseResponse) MarshalBinary ¶ added in v1.3.3
func (m *BaseResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*BaseResponse) UnmarshalBinary ¶ added in v1.3.3
func (m *BaseResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ClusterInfo ¶ added in v1.1.2
type ClusterInfo struct { // code Code int32 `json:"code"` // data Data *ClusterInfoData `json:"data"` // message Message string `json:"message,omitempty"` }
ClusterInfo cluster info
swagger:model ClusterInfo
func (*ClusterInfo) ContextValidate ¶ added in v1.1.2
ContextValidate validate this cluster info based on the context it is used
func (*ClusterInfo) MarshalBinary ¶ added in v1.1.2
func (m *ClusterInfo) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ClusterInfo) UnmarshalBinary ¶ added in v1.1.2
func (m *ClusterInfo) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ClusterInfoData ¶ added in v1.1.2
type ClusterInfoData struct { // cluster Cluster []*NodeItem `json:"cluster"` }
ClusterInfoData cluster info data
swagger:model ClusterInfoData
func (*ClusterInfoData) ContextValidate ¶ added in v1.1.2
ContextValidate validate this cluster info data based on the context it is used
func (*ClusterInfoData) MarshalBinary ¶ added in v1.1.2
func (m *ClusterInfoData) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ClusterInfoData) UnmarshalBinary ¶ added in v1.1.2
func (m *ClusterInfoData) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type DiscordServer ¶ added in v1.1.2
type DiscordServer struct { // code Code int32 `json:"code"` // data Data *DiscordServerData `json:"data"` // message Message string `json:"message,omitempty"` }
DiscordServer discord server
swagger:model DiscordServer
func (*DiscordServer) ContextValidate ¶ added in v1.1.2
ContextValidate validate this discord server based on the context it is used
func (*DiscordServer) MarshalBinary ¶ added in v1.1.2
func (m *DiscordServer) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*DiscordServer) UnmarshalBinary ¶ added in v1.1.2
func (m *DiscordServer) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type DiscordServerData ¶ added in v1.1.2
type DiscordServerData struct { // url URL string `json:"url,omitempty"` }
DiscordServerData discord server data
swagger:model DiscordServerData
func (*DiscordServerData) ContextValidate ¶ added in v1.1.2
ContextValidate validates this discord server data based on context it is used
func (*DiscordServerData) MarshalBinary ¶ added in v1.1.2
func (m *DiscordServerData) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*DiscordServerData) UnmarshalBinary ¶ added in v1.1.2
func (m *DiscordServerData) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type HistoryItem ¶ added in v1.0.1
type HistoryItem struct { // command Command string `json:"command,omitempty"` // created Created string `json:"created,omitempty"` // id ID string `json:"id,omitempty"` // images Images []string `json:"images"` // images blurhash ImagesBlurhash []string `json:"images_blurhash"` // options Options interface{} `json:"options,omitempty"` // user avatar UserAvatar string `json:"user_avatar,omitempty"` // user id UserID string `json:"user_id,omitempty"` // user name UserName string `json:"user_name,omitempty"` }
HistoryItem history item
swagger:model HistoryItem
func (*HistoryItem) ContextValidate ¶ added in v1.0.1
ContextValidate validates this history item based on context it is used
func (*HistoryItem) MarshalBinary ¶ added in v1.0.1
func (m *HistoryItem) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*HistoryItem) UnmarshalBinary ¶ added in v1.0.1
func (m *HistoryItem) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type HistoryList ¶ added in v1.0.1
type HistoryList struct { // code Code int32 `json:"code"` // data Data *HistoryListData `json:"data"` // message Message string `json:"message,omitempty"` }
HistoryList history list
swagger:model HistoryList
func (*HistoryList) ContextValidate ¶ added in v1.0.1
ContextValidate validate this history list based on the context it is used
func (*HistoryList) MarshalBinary ¶ added in v1.0.1
func (m *HistoryList) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*HistoryList) UnmarshalBinary ¶ added in v1.0.1
func (m *HistoryList) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type HistoryListData ¶ added in v1.0.1
type HistoryListData struct { // history History []*HistoryItem `json:"history"` // page info PageInfo *PageInfoResponse `json:"page_info,omitempty"` }
HistoryListData history list data
swagger:model HistoryListData
func (*HistoryListData) ContextValidate ¶ added in v1.0.1
ContextValidate validate this history list data based on the context it is used
func (*HistoryListData) MarshalBinary ¶ added in v1.0.1
func (m *HistoryListData) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*HistoryListData) UnmarshalBinary ¶ added in v1.0.1
func (m *HistoryListData) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type HistoryQuery ¶ added in v1.0.1
type HistoryQuery struct { // command Command string `json:"command,omitempty"` }
HistoryQuery history query
swagger:model HistoryQuery
func (*HistoryQuery) ContextValidate ¶ added in v1.0.1
ContextValidate validates this history query based on context it is used
func (*HistoryQuery) MarshalBinary ¶ added in v1.0.1
func (m *HistoryQuery) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*HistoryQuery) UnmarshalBinary ¶ added in v1.0.1
func (m *HistoryQuery) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type NodeItem ¶ added in v1.1.2
type NodeItem struct { // host Host string `json:"host,omitempty"` // max concurrent MaxConcurrent int32 `json:"max_concurrent"` // name Name string `json:"name,omitempty"` // pending Pending int32 `json:"pending"` // running Running int32 `json:"running"` }
NodeItem node item
swagger:model NodeItem
func (*NodeItem) ContextValidate ¶ added in v1.1.2
ContextValidate validates this node item based on context it is used
func (*NodeItem) MarshalBinary ¶ added in v1.1.2
MarshalBinary interface implementation
func (*NodeItem) UnmarshalBinary ¶ added in v1.1.2
UnmarshalBinary interface implementation
type PageInfoRequest ¶
type PageInfoRequest struct { // page Page int32 `json:"page,omitempty"` // page size PageSize int32 `json:"page_size,omitempty"` }
PageInfoRequest page info request
swagger:model PageInfoRequest
func (*PageInfoRequest) ContextValidate ¶
ContextValidate validates this page info request based on context it is used
func (*PageInfoRequest) MarshalBinary ¶
func (m *PageInfoRequest) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PageInfoRequest) UnmarshalBinary ¶
func (m *PageInfoRequest) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type PageInfoResponse ¶
type PageInfoResponse struct { // page Page int32 `json:"page,omitempty"` // page size PageSize int32 `json:"page_size,omitempty"` // total Total int32 `json:"total,omitempty"` }
PageInfoResponse page info response
swagger:model PageInfoResponse
func (*PageInfoResponse) ContextValidate ¶
ContextValidate validates this page info response based on context it is used
func (*PageInfoResponse) MarshalBinary ¶
func (m *PageInfoResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PageInfoResponse) UnmarshalBinary ¶
func (m *PageInfoResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type UserInfo ¶
type UserInfo struct { // code Code int32 `json:"code"` // data Data *UserInfoData `json:"data"` // message Message string `json:"message,omitempty"` }
UserInfo user info
swagger:model UserInfo
func (*UserInfo) ContextValidate ¶
ContextValidate validate this user info based on the context it is used
func (*UserInfo) MarshalBinary ¶
MarshalBinary interface implementation
func (*UserInfo) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type UserInfoData ¶
type UserInfoData struct { // user User *UserItem `json:"user,omitempty"` }
UserInfoData user info data
swagger:model UserInfoData
func (*UserInfoData) ContextValidate ¶
ContextValidate validate this user info data based on the context it is used
func (*UserInfoData) MarshalBinary ¶
func (m *UserInfoData) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*UserInfoData) UnmarshalBinary ¶
func (m *UserInfoData) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type UserItem ¶
type UserItem struct { // avatar Avatar string `json:"avatar,omitempty"` // created Created string `json:"created,omitempty"` // enable Enable bool `json:"enable"` // id ID string `json:"id,omitempty"` // image count ImageCount int32 `json:"image_count"` // is private IsPrivate bool `json:"is_private"` // roles Roles string `json:"roles,omitempty"` // stable config StableConfig interface{} `json:"stable_config,omitempty"` // username Username string `json:"username,omitempty"` }
UserItem user item
swagger:model UserItem
func (*UserItem) ContextValidate ¶
ContextValidate validates this user item based on context it is used
func (*UserItem) MarshalBinary ¶
MarshalBinary interface implementation
func (*UserItem) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type UserList ¶
type UserList struct { // code Code int32 `json:"code"` // data Data *UserListData `json:"data"` // message Message string `json:"message,omitempty"` }
UserList user list
swagger:model UserList
func (*UserList) ContextValidate ¶
ContextValidate validate this user list based on the context it is used
func (*UserList) MarshalBinary ¶
MarshalBinary interface implementation
func (*UserList) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type UserListData ¶
type UserListData struct { // page info PageInfo *PageInfoResponse `json:"page_info,omitempty"` // users Users []*UserItem `json:"users"` }
UserListData user list data
swagger:model UserListData
func (*UserListData) ContextValidate ¶
ContextValidate validate this user list data based on the context it is used
func (*UserListData) MarshalBinary ¶
func (m *UserListData) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*UserListData) UnmarshalBinary ¶
func (m *UserListData) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type UserQuery ¶
type UserQuery struct { // id ID string `json:"id,omitempty"` // only enable OnlyEnable bool `json:"only_enable,omitempty"` // username Username string `json:"username,omitempty"` }
UserQuery user query
swagger:model UserQuery
func (*UserQuery) ContextValidate ¶
ContextValidate validates this user query based on context it is used
func (*UserQuery) MarshalBinary ¶
MarshalBinary interface implementation
func (*UserQuery) UnmarshalBinary ¶
UnmarshalBinary interface implementation