Documentation ¶
Index ¶
- type CompressionFactor
- type Convertor
- func (c *Convertor) HandlerActiveOff(_ http.ResponseWriter, _ *http.Request)
- func (c *Convertor) HandlerActiveOn(_ http.ResponseWriter, _ *http.Request)
- func (c *Convertor) HandlerIsActive(w http.ResponseWriter, _ *http.Request)
- func (c *Convertor) Health(_ context.Context) any
- func (c *Convertor) Router(r chi.Router)
- func (c *Convertor) Run(ctx context.Context, concurrent int) error
- func (c *Convertor) SetActive(active bool)
- type VideoConvertor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CompressionFactor ¶
type CompressionFactor float64
func CalculateCompression ¶
func CalculateCompression(before, after string) (CompressionFactor, error)
func (CompressionFactor) LogValue ¶
func (c CompressionFactor) LogValue() slog.Value
type Convertor ¶
type Convertor struct { VideoConvertor RemoveConverted bool // contains filtered or unexported fields }
func (*Convertor) HandlerActiveOff ¶
func (c *Convertor) HandlerActiveOff(_ http.ResponseWriter, _ *http.Request)
func (*Convertor) HandlerActiveOn ¶
func (c *Convertor) HandlerActiveOn(_ http.ResponseWriter, _ *http.Request)
func (*Convertor) HandlerIsActive ¶
func (c *Convertor) HandlerIsActive(w http.ResponseWriter, _ *http.Request)
Click to show internal directories.
Click to hide internal directories.