handler

package
v0.0.0-...-4fe83b5 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2025 License: MIT Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChatCompletions

func ChatCompletions(c *gin.Context)

func Create

func Create(c *gin.Context)

func EnqueueUnfinishedTask

func EnqueueUnfinishedTask() error

func FastSpeed

func FastSpeed(c *gin.Context)

func Generate

func Generate(c *gin.Context)

func GetImage

func GetImage(c *gin.Context)

func SlowSpeed

func SlowSpeed(c *gin.Context)

func TaskQuery

func TaskQuery(c *gin.Context)

func UploadImage

func UploadImage(c *gin.Context)

Types

type StorageHandler

type StorageHandler struct {
	// contains filtered or unexported fields
}

func NewStorageHandler

func NewStorageHandler() *StorageHandler

func (*StorageHandler) InputImage

func (s *StorageHandler) InputImage() model.InputImage

func (*StorageHandler) OutputImage

func (s *StorageHandler) OutputImage() model.OutputImage

func (*StorageHandler) Query

func (*StorageHandler) Upload

func (s *StorageHandler) Upload(request request.UploadRequest) error

type TaskHandler

type TaskHandler struct {
	// contains filtered or unexported fields
}

func (*TaskHandler) Execute

func (h *TaskHandler) Execute(ctx context.Context, wg *sync.WaitGroup) error

func (*TaskHandler) Fail

func (h *TaskHandler) Fail(err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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