Documentation
¶
Index ¶
- func GetFetch(c *gin.Context)
- func GetFetchByID(c *gin.Context)
- func StringError(c *gin.Context, httpCode int, code, message string)
- func TaskModel2Dto(task *model.Task) *types.TaskDto
- type SunoTask
- func (t *SunoTask) HandleError(err *base.TaskError)
- func (t *SunoTask) Init() *base.TaskError
- func (t *SunoTask) Relay() *base.TaskError
- func (t *SunoTask) SetProvider() *base.TaskError
- func (t *SunoTask) ShouldRetry(c *gin.Context, err *base.TaskError) bool
- func (t *SunoTask) UpdateTaskStatus(ctx context.Context, taskChannelM map[int][]string, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetFetchByID ¶
Types ¶
type SunoTask ¶
type SunoTask struct {
base.TaskBase
Action string
Request *sunoProvider.SunoSubmitReq
Provider *sunoProvider.SunoProvider
}
func (*SunoTask) HandleError ¶
func (*SunoTask) SetProvider ¶
func (*SunoTask) ShouldRetry ¶
Click to show internal directories.
Click to hide internal directories.