Documentation
¶
Index ¶
Constants ¶
View Source
const ( MAX_UPLOAD_SIZE = 2621440 // 2.5MB MAX_LOSSLESS_SIZE = 256000.0 // 250KB MAX_FRAMES = 750 MAX_WIDTH = 1000 MAX_HEIGHT = 1000 MAX_TAGS = 6 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type EmoteJobEvent ¶
type EmoteJobEvent struct {
JobID primitive.ObjectID
Type EmoteJobEventType
Timestamp time.Time
}
type EmoteJobEventType ¶
type EmoteJobEventType string
const ( EmoteJobEventTypeStarted EmoteJobEventType = "started" EmoteJobEventTypeDownloaded EmoteJobEventType = "downloaded" EmoteJobEventTypeStageOne EmoteJobEventType = "stage-one" EmoteJobEventTypeStageOneComplete EmoteJobEventType = "stage-one-complete" EmoteJobEventTypeStageTwo EmoteJobEventType = "stage-two" EmoteJobEventTypeStageTwoComplete EmoteJobEventType = "stage-two-complete" EmoteJobEventTypeStageThree EmoteJobEventType = "stage-three" EmoteJobEventTypeStageThreeComplete EmoteJobEventType = "stage-three-complete" EmoteJobEventTypeCompleted EmoteJobEventType = "completed" EmoteJobEventTypeCleaned EmoteJobEventType = "cleaned" )
type EmoteProcessingListener ¶
func (*EmoteProcessingListener) HandleResultEvent ¶
func (epl *EmoteProcessingListener) HandleResultEvent(evt *EmoteResultEvent) error
func (*EmoteProcessingListener) HandleUpdateEvent ¶
func (epl *EmoteProcessingListener) HandleUpdateEvent(evt *EmoteJobEvent) error
func (*EmoteProcessingListener) Listen ¶
func (epl *EmoteProcessingListener) Listen()
type EmoteResultEvent ¶
type EmoteResultEvent struct {
JobID primitive.ObjectID `json:"job_id"`
Success bool `json:"success"`
Files []EmoteResultFile `json:"files"`
Error string `json:"error"`
}
type EmoteResultFile ¶
Click to show internal directories.
Click to hide internal directories.