Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsUnretriable ¶
func NilIfUnretriable ¶
func TaskImport ¶
func TaskImport(tctx *TaskContext) (*data.TaskOutput, error)
Types ¶
type FileMetadata ¶
type ReadHasher ¶
type ReadHasher struct {
// contains filtered or unexported fields
}
func NewReadHasher ¶
func NewReadHasher(r io.Reader) *ReadHasher
func (*ReadHasher) FinishReader ¶
func (h *ReadHasher) FinishReader() (int64, error)
func (*ReadHasher) MD5 ¶
func (h *ReadHasher) MD5() string
func (*ReadHasher) SHA256 ¶
func (h *ReadHasher) SHA256() string
func (*ReadHasher) Size ¶
func (h *ReadHasher) Size() uint64
type RunnerOptions ¶
type RunnerOptions struct { AMQPUri string ExchangeName string QueueName string TaskHandlers map[string]TaskHandler LivepeerAPIOptions livepeerAPI.ClientOptions }
type TaskContext ¶
type TaskContext struct { context.Context data.TaskInfo *livepeerAPI.Task *livepeerAPI.Asset *livepeerAPI.ObjectStore // contains filtered or unexported fields }
type TaskHandler ¶
type TaskHandler func(tctx *TaskContext) (*data.TaskOutput, error)
type UnretriableError ¶
type UnretriableError struct {
// contains filtered or unexported fields
}
func (UnretriableError) Error ¶
func (e UnretriableError) Error() string
func (UnretriableError) Unwrap ¶
func (e UnretriableError) Unwrap() error
Click to show internal directories.
Click to hide internal directories.