models

package
v1.5.3 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

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

func (m *BaseResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

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

func (*BaseResponse) Validate added in v1.3.3

func (m *BaseResponse) Validate(formats strfmt.Registry) error

Validate validates this base response

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

func (m *ClusterInfo) ContextValidate(ctx context.Context, formats strfmt.Registry) error

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

func (*ClusterInfo) Validate added in v1.1.2

func (m *ClusterInfo) Validate(formats strfmt.Registry) error

Validate validates this cluster info

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

func (m *ClusterInfoData) ContextValidate(ctx context.Context, formats strfmt.Registry) error

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

func (*ClusterInfoData) Validate added in v1.1.2

func (m *ClusterInfoData) Validate(formats strfmt.Registry) error

Validate validates this cluster info data

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

func (m *DiscordServer) ContextValidate(ctx context.Context, formats strfmt.Registry) error

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

func (*DiscordServer) Validate added in v1.1.2

func (m *DiscordServer) Validate(formats strfmt.Registry) error

Validate validates this discord server

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

func (m *DiscordServerData) ContextValidate(ctx context.Context, formats strfmt.Registry) error

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

func (*DiscordServerData) Validate added in v1.1.2

func (m *DiscordServerData) Validate(formats strfmt.Registry) error

Validate validates this discord server data

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

func (m *HistoryItem) ContextValidate(ctx context.Context, formats strfmt.Registry) error

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

func (*HistoryItem) Validate added in v1.0.1

func (m *HistoryItem) Validate(formats strfmt.Registry) error

Validate validates this history item

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

func (m *HistoryList) ContextValidate(ctx context.Context, formats strfmt.Registry) error

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

func (*HistoryList) Validate added in v1.0.1

func (m *HistoryList) Validate(formats strfmt.Registry) error

Validate validates this history list

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

func (m *HistoryListData) ContextValidate(ctx context.Context, formats strfmt.Registry) error

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

func (*HistoryListData) Validate added in v1.0.1

func (m *HistoryListData) Validate(formats strfmt.Registry) error

Validate validates this history list data

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

func (m *HistoryQuery) ContextValidate(ctx context.Context, formats strfmt.Registry) error

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

func (*HistoryQuery) Validate added in v1.0.1

func (m *HistoryQuery) Validate(formats strfmt.Registry) error

Validate validates this history query

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

func (m *NodeItem) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this node item based on context it is used

func (*NodeItem) MarshalBinary added in v1.1.2

func (m *NodeItem) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*NodeItem) UnmarshalBinary added in v1.1.2

func (m *NodeItem) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*NodeItem) Validate added in v1.1.2

func (m *NodeItem) Validate(formats strfmt.Registry) error

Validate validates this node item

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

func (m *PageInfoRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

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

func (*PageInfoRequest) Validate

func (m *PageInfoRequest) Validate(formats strfmt.Registry) error

Validate validates this page info request

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

func (m *PageInfoResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

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

func (*PageInfoResponse) Validate

func (m *PageInfoResponse) Validate(formats strfmt.Registry) error

Validate validates this page info response

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

func (m *UserInfo) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this user info based on the context it is used

func (*UserInfo) MarshalBinary

func (m *UserInfo) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UserInfo) UnmarshalBinary

func (m *UserInfo) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UserInfo) Validate

func (m *UserInfo) Validate(formats strfmt.Registry) error

Validate validates this user info

type UserInfoData

type UserInfoData struct {

	// user
	User *UserItem `json:"user,omitempty"`
}

UserInfoData user info data

swagger:model UserInfoData

func (*UserInfoData) ContextValidate

func (m *UserInfoData) ContextValidate(ctx context.Context, formats strfmt.Registry) error

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

func (*UserInfoData) Validate

func (m *UserInfoData) Validate(formats strfmt.Registry) error

Validate validates this user info data

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

func (m *UserItem) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this user item based on context it is used

func (*UserItem) MarshalBinary

func (m *UserItem) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UserItem) UnmarshalBinary

func (m *UserItem) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UserItem) Validate

func (m *UserItem) Validate(formats strfmt.Registry) error

Validate validates this user item

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

func (m *UserList) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this user list based on the context it is used

func (*UserList) MarshalBinary

func (m *UserList) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UserList) UnmarshalBinary

func (m *UserList) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UserList) Validate

func (m *UserList) Validate(formats strfmt.Registry) error

Validate validates this user list

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

func (m *UserListData) ContextValidate(ctx context.Context, formats strfmt.Registry) error

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

func (*UserListData) Validate

func (m *UserListData) Validate(formats strfmt.Registry) error

Validate validates this user list data

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

func (m *UserQuery) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this user query based on context it is used

func (*UserQuery) MarshalBinary

func (m *UserQuery) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UserQuery) UnmarshalBinary

func (m *UserQuery) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UserQuery) Validate

func (m *UserQuery) Validate(formats strfmt.Registry) error

Validate validates this user query

Jump to

Keyboard shortcuts

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