translate

package
v0.0.0-...-7f2d481 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init()

func String

func String(str string) (string, error)

Types

type ComfyWorker

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

func (ComfyWorker) BlockUntilReady

func (w ComfyWorker) BlockUntilReady()

BlockUntilReady is called before each job is processed and must block the calling goroutine until the Worker is ready to process the next job.

func (ComfyWorker) Interrupt

func (w ComfyWorker) Interrupt()

Interrupt is called when a job is cancelled. The worker is responsible for unblocking the Process implementation.

func (ComfyWorker) Process

func (w ComfyWorker) Process(payload interface{}) interface{}

func (ComfyWorker) Terminate

func (w ComfyWorker) Terminate()

Terminate is called when a Worker is removed from the processing pool and is responsible for cleaning up any held resources.

Jump to

Keyboard shortcuts

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