Documentation
¶
Index ¶
- func CreateApplet(ctx context.Context, projectID types.SFID, r *CreateAppletReq) (mApplet *models.Applet, err error)
- func RemoveApplet(ctx context.Context, r *RemoveAppletReq) error
- func UpdateApplet(ctx context.Context, appletID types.SFID, r *UpdateAppletReq) (err error)
- type CreateAppletReq
- type GetAppletReq
- type GetAppletRsp
- type Info
- type InfoApplet
- type ListAppletReq
- type ListAppletRsp
- type RemoveAppletReq
- type UpdateAppletReq
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateApplet ¶
func RemoveApplet ¶
func RemoveApplet(ctx context.Context, r *RemoveAppletReq) error
func UpdateApplet ¶
Types ¶
type CreateAppletReq ¶
type CreateAppletReq struct {
File *multipart.FileHeader `name:"file"`
Info `name:"info"`
}
type GetAppletReq ¶
type GetAppletRsp ¶
type GetAppletRsp struct {
InfoApplet
Instances []models.Instance `json:"instances"`
}
func GetAppletByAppletID ¶
type Info ¶
type Info struct {
AppletName string `json:"appletName"`
WasmName string `json:"wasmName"`
Strategies []models.StrategyInfo `json:"strategies,omitempty"`
}
type InfoApplet ¶
type ListAppletReq ¶
type ListAppletReq struct {
IDs []uint64 `in:"query" name:"id,omitempty"`
AppletIDs []types.SFID `in:"query" name:"appletID,omitempty"`
Names []string `in:"query" name:"names,omitempty"`
NameLike string `in:"query" name:"name,omitempty"`
datatypes.Pager
}
func (*ListAppletReq) Additions ¶
func (r *ListAppletReq) Additions() builder.Additions
func (*ListAppletReq) Condition ¶
func (r *ListAppletReq) Condition() builder.SqlCondition
type ListAppletRsp ¶
func ListApplets ¶
func ListApplets(ctx context.Context, r *ListAppletReq) (*ListAppletRsp, error)
type RemoveAppletReq ¶
type UpdateAppletReq ¶
type UpdateAppletReq struct {
File *multipart.FileHeader `name:"file"`
*Info `name:"info"`
}
Click to show internal directories.
Click to hide internal directories.