Documentation ¶
Index ¶
- func CreateApplet(ctx context.Context, projectID types.SFID, r *CreateAppletReq) (mApplet *models.Applet, err error)
- func GetBySFID(ctx context.Context, id types.SFID) (*models.Applet, error)
- func RemoveApplet(ctx context.Context, id types.SFID) error
- func UpdateAndDeploy(ctx context.Context, r *UpdateAndDeployReq) 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 UpdateAndDeployReq
- type UpdateAppletReq
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateApplet ¶
func UpdateAndDeploy ¶
func UpdateAndDeploy(ctx context.Context, r *UpdateAndDeployReq) 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 UpdateAndDeployReq ¶
type UpdateAndDeployReq struct { File *multipart.FileHeader `name:"file"` *Info `name:"info"` Cache *wasm.Cache `name:"cache,omitempty"` }
type UpdateAppletReq ¶
type UpdateAppletReq struct { File *multipart.FileHeader `name:"file"` *Info `name:"info"` }
Click to show internal directories.
Click to hide internal directories.