Documentation ¶
Index ¶
- type Add
- type AddRequest
- type AddResponse
- type Edit
- type EditDisable
- type EditEnable
- type EditFailed
- type EditHandler
- type EditRequest
- type EditResponse
- type EditStatus
- type EditSubscriber
- type EditSucceed
- type RemoteBuild
- type RemoteBuildRequest
- type RemoteBuildResponse
- type RemoteDestroy
- type RemoteDestroyRequest
- type RemoteDestroyResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddRequest ¶
type AddRequest struct { DelaySeconds int `` /* 269-byte string literal not displayed */ TopicName string `json:"topic_name" validate:"required,gte=2,lte=30" mock:"orders" label:"Topic name"` TopicTag string `json:"topic_tag" validate:"required,gte=2,lte=60" mock:"created" label:"Topic tag"` Handler string `json:"handler" validate:"required,url" mock:"https://example.com/orders/expired/remove" label:"Callback address"` Title string `json:"title" validate:"required,lte=80" mock:"Example task" label:"Task name"` Remark string `json:"remark" mock:"Task remark" label:"Description about task"` }
func (*AddRequest) Override ¶
func (o *AddRequest) Override()
func (*AddRequest) Validate ¶
func (o *AddRequest) Validate() error
type AddResponse ¶
type AddResponse struct { DelaySeconds int `json:"delay_seconds" mock:"0" label:"Delay seconds"` Id int `json:"id" mock:"1" label:"Task id"` Title string `json:"title" mock:"Example task" label:"Task name"` TopicName string `json:"topic_name" mock:"orders" label:"Topic name"` TopicTag string `json:"topic_tag" mock:"created" label:"Topic tag"` }
type EditDisable ¶
type EditDisable struct {
// contains filtered or unexported fields
}
func NewEditDisable ¶
func NewEditDisable() *EditDisable
func (*EditDisable) Run ¶
func (o *EditDisable) Run(ctx context.Context, i iris.Context) (res interface{})
type EditEnable ¶
type EditEnable struct {
// contains filtered or unexported fields
}
func NewEditEnable ¶
func NewEditEnable() *EditEnable
func (*EditEnable) Run ¶
func (o *EditEnable) Run(ctx context.Context, i iris.Context) (res interface{})
type EditFailed ¶
type EditFailed struct {
// contains filtered or unexported fields
}
func NewEditFailed ¶
func NewEditFailed() *EditFailed
func (*EditFailed) Run ¶
func (o *EditFailed) Run(ctx context.Context, i iris.Context) (res interface{})
type EditHandler ¶
type EditHandler struct {
// contains filtered or unexported fields
}
func NewEditHandler ¶
func NewEditHandler() *EditHandler
func (*EditHandler) Run ¶
func (o *EditHandler) Run(ctx context.Context, i iris.Context) (res interface{})
type EditRequest ¶
type EditRequest struct { Id int `json:"id" validate:"required,gte=1" mock:"1" label:"Task id"` DelaySeconds *int `` /* 278-byte string literal not displayed */ Parallels *int `` /* 135-byte string literal not displayed */ Concurrency *int32 `` /* 336-byte string literal not displayed */ MaxRetry *int `` /* 139-byte string literal not displayed */ Broadcasting *int `` /* 161-byte string literal not displayed */ Title *string `json:"title" mock:"Example task" label:"Task name"` Remark *string `json:"remark" mock:"Description about task" label:"Task remark"` }
func (*EditRequest) Override ¶
func (o *EditRequest) Override(x *models.Task)
func (*EditRequest) Validate ¶
func (o *EditRequest) Validate() error
type EditResponse ¶
type EditStatus ¶
type EditStatus struct {
Id int `json:"id" validate:"required,gte=1" mock:"1" label:"任务ID"`
}
type EditSubscriber ¶
type EditSubscriber struct { Id int `json:"id" validate:"required,gte=1" mock:"1" label:"Task id"` Handler *string `` /* 172-byte string literal not displayed */ Condition *string `` /* 147-byte string literal not displayed */ IgnoreCodes *string `` /* 244-byte string literal not displayed */ Method *string `json:"method" label:"Deliver method" desc:"Request method when delivering message. <br />Default: POST"` ResponseType *int `` /* 215-byte string literal not displayed */ Timeout *int `json:"timeout" mock:"10" label:"Timeout" desc:"If response not returned within specified seconds."` }
func (*EditSubscriber) OverrideFailed ¶
func (o *EditSubscriber) OverrideFailed(x *models.Task)
func (*EditSubscriber) OverrideHandler ¶
func (o *EditSubscriber) OverrideHandler(x *models.Task)
func (*EditSubscriber) OverrideSucceed ¶
func (o *EditSubscriber) OverrideSucceed(x *models.Task)
func (*EditSubscriber) Validate ¶
func (o *EditSubscriber) Validate() error
type EditSucceed ¶
type EditSucceed struct {
// contains filtered or unexported fields
}
func NewEditSucceed ¶
func NewEditSucceed() *EditSucceed
func (*EditSucceed) Run ¶
func (o *EditSucceed) Run(ctx context.Context, i iris.Context) (res interface{})
type RemoteBuild ¶
type RemoteBuild struct {
// contains filtered or unexported fields
}
func NewRemoteBuild ¶
func NewRemoteBuild() *RemoteBuild
func (*RemoteBuild) Run ¶
func (o *RemoteBuild) Run(ctx context.Context, i iris.Context) (res interface{})
type RemoteBuildRequest ¶
type RemoteBuildRequest struct {
Id int `json:"id" validate:"required,gte=1" mock:"1" label:"Task ID"`
}
type RemoteBuildResponse ¶
type RemoteDestroy ¶
type RemoteDestroy struct {
// contains filtered or unexported fields
}
func NewRemoteDestroy ¶
func NewRemoteDestroy() *RemoteDestroy
func (*RemoteDestroy) Run ¶
func (o *RemoteDestroy) Run(ctx context.Context, i iris.Context) (res interface{})
type RemoteDestroyRequest ¶
type RemoteDestroyRequest struct {
Id int `json:"id" validate:"required,gte=1" mock:"1" label:"Task ID"`
}
type RemoteDestroyResponse ¶
Click to show internal directories.
Click to hide internal directories.