kling

package
v0.5.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 15, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFetchByID

func GetFetchByID(c *gin.Context)

func StringError

func StringError(c *gin.Context, httpCode int, code, message string)

Types

type KlingTask

type KlingTask struct {
	base.TaskBase
	TaskId   string
	Request  *KlingProvider.KlingTask
	Provider *KlingProvider.KlingProvider

	Class  string
	Action string
}

func (*KlingTask) HandleError

func (t *KlingTask) HandleError(err *base.TaskError)

func (*KlingTask) Init

func (t *KlingTask) Init() *base.TaskError

func (*KlingTask) Relay

func (t *KlingTask) Relay() *base.TaskError

func (*KlingTask) SetProvider

func (t *KlingTask) SetProvider() *base.TaskError

func (*KlingTask) ShouldRetry

func (t *KlingTask) ShouldRetry(c *gin.Context, err *base.TaskError) bool

func (*KlingTask) UpdateTaskStatus

func (t *KlingTask) UpdateTaskStatus(ctx context.Context, taskChannelM map[int][]string, taskM map[string]*model.Task) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL