Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventHandler ¶
type EventHandler struct { OnBeforeExecute OnBeforeExecute OnExecute OnExecute OnBeforeStart OnBeforeStart OnStop OnStop OnScanner OnScanner StopTimeoutMs int64 }
func NewExiftoolHandler ¶
func NewExiftoolHandler() EventHandler
type OnBeforeExecute ¶
type OnBeforeExecute func(stdin io.WriteCloser, cmd string, flags *[]*string) error
type OnBeforeStart ¶
type Pool ¶
Pool creates multiple stay open exiftool instances and spreads the work across them with a simple round robin distribution.
type Stayopen ¶
type Stayopen struct {
// contains filtered or unexported fields
}
Stayopen abstracts running cmd with `-stay_open` to greatly improve performance. Remember to call Stayopen.Stop() to signal cmd to shutdown to avoid zombie perl processes
func NewStayOpen ¶
func NewStayOpen(h EventHandler, cmd string, flags ...string) (*Stayopen, error)
Click to show internal directories.
Click to hide internal directories.