Documentation ¶
Index ¶
- func CreateStrategy(ctx context.Context, projectID types.SFID, r *CreateStrategyBatchReq) (err error)
- func GetStrategyByStrategyID(ctx context.Context, strategyID types.SFID) (*models.Strategy, error)
- func RemoveStrategy(ctx context.Context, r *RemoveStrategyReq) error
- func UpdateStrategy(ctx context.Context, strategyID types.SFID, r *CreateStrategyReq) (err error)
- type CreateStrategyBatchReq
- type CreateStrategyReq
- type Detail
- type InfoDetail
- type InstanceHandler
- type ListStrategyReq
- type ListStrategyRsp
- type RemoveStrategyReq
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateStrategy ¶
func GetStrategyByStrategyID ¶
func RemoveStrategy ¶
func RemoveStrategy(ctx context.Context, r *RemoveStrategyReq) error
func UpdateStrategy ¶
Types ¶
type CreateStrategyBatchReq ¶
type CreateStrategyBatchReq struct {
Strategies []CreateStrategyReq `json:"strategies"`
}
type CreateStrategyReq ¶
type CreateStrategyReq struct { models.RelApplet models.StrategyInfo }
type Detail ¶
type Detail struct { ProjectID types.SFID `json:"projectID"` Strategies []InfoDetail `json:"strategies,omitempty"` datatypes.OperationTimes }
type InfoDetail ¶
type InstanceHandler ¶
func FindStrategyInstances ¶
type ListStrategyReq ¶
type ListStrategyReq struct { IDs []uint64 `in:"query" name:"id,omitempty"` AppletIDs []types.SFID `in:"query" name:"appletID,omitempty"` StrategyIDs []types.SFID `in:"query" name:"strategyID,omitempty"` EventTypes []string `in:"query" name:"eventType,omitempty"` datatypes.Pager // contains filtered or unexported fields }
func (*ListStrategyReq) Additions ¶
func (r *ListStrategyReq) Additions() builder.Additions
func (*ListStrategyReq) Condition ¶
func (r *ListStrategyReq) Condition() builder.SqlCondition
func (*ListStrategyReq) SetCurrentProjectID ¶
func (r *ListStrategyReq) SetCurrentProjectID(projectID types.SFID)
type ListStrategyRsp ¶
type ListStrategyRsp struct { Data []Detail `json:"data"` // Data strategy data list Total int64 `json:"total"` // Total strategy count under current projectID }
func ListStrategy ¶
func ListStrategy(ctx context.Context, r *ListStrategyReq) (*ListStrategyRsp, error)
type RemoveStrategyReq ¶
Click to show internal directories.
Click to hide internal directories.