Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterWebFlags ¶
RegisterWebFlags reigisters flags for web server
Types ¶
type Transformer ¶
type Transformer struct {
// contains filtered or unexported fields
}
Transformer generates previews for video content
func NewTransformer ¶
func NewTransformer(sourceURL string, format string, width int) *Transformer
NewTransformer initializes new Transformer instance
type TransformerPool ¶
type TransformerPool struct {
// contains filtered or unexported fields
}
TransformerPool ensures that only one specific preview is generating at time
func NewTransformerPool ¶
func NewTransformerPool() *TransformerPool
NewTransformerPool initializes TransformerPool
func (*TransformerPool) Get ¶
func (s *TransformerPool) Get(sourceURL string, format string, width int, infoHash string, path string, p string) *Transformer
Get gets Transformer
Click to show internal directories.
Click to hide internal directories.