imagorvideoextended/config.go
Failure f348bb92e3
Some checks are pending
docker / Docker (push) Waiting to run
test / Test (push) Waiting to run
remove video specific stuff, base off of video, and add support for HTML
2024-07-30 02:34:01 -07:00

20 lines
346 B
Go

package imagorvideoextended
import (
"flag"
"github.com/cshum/imagor"
"go.uber.org/zap"
)
// Config imagorvideo config.Option
func Config(fs *flag.FlagSet, cb func() (*zap.Logger, bool)) imagor.Option {
var (
logger, isDebug = cb()
)
return imagor.WithProcessors(
NewProcessor(
WithLogger(logger),
WithDebug(isDebug),
),
)
}