Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Register ¶
func Register(name string, factory GeneratorFactory)
Types ¶
type Generator ¶
type Generator interface {
Generate(context.Context, io.ReadSeeker, int64) (io.ReadCloser, error)
}
func NewImageGenerator ¶
func NewImageGenerator(opt *ImageOption) (Generator, error)
type GeneratorFactory ¶
type GeneratorFactory = func() Option
type ImageOption ¶
func (*ImageOption) Match ¶
func (opt *ImageOption) Match(mimeType string) bool
func (*ImageOption) New ¶
func (opt *ImageOption) New() (Generator, error)
Click to show internal directories.
Click to hide internal directories.