Documentation ¶
Index ¶
- func FindSpans(r io.Reader, spans ...*Span) error
- func LargerThumbFromContext(ctx context.Context) *photo.Thumb
- func LargerThumbToContext(ctx context.Context, th photo.Thumb) context.Context
- func Remove(data []byte) ([]byte, error)
- func ToJpeg(imageBytes []byte) ([]byte, error)
- type Data
- type Indexer
- func (i *Indexer) Index(ctx context.Context, img photo.Image, flags photo.IndexingFlags) (err error)
- func (i *Indexer) PhotoImageIndexer() photo.ImageIndexer
- func (i *Indexer) QueueCallback(ctx context.Context, cb func(ctx context.Context))
- func (i *Indexer) QueueIndex(ctx context.Context, img photo.Image, flags photo.IndexingFlags)
- type Meta
- type Resizer
- type SimilarityIndex
- type Span
- type Thumbnailer
- type ThumbnailerDeps
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LargerThumbFromContext ¶ added in v0.0.12
func LargerThumbToContext ¶
Types ¶
type Data ¶ added in v0.0.12
type Indexer ¶
type Indexer struct {
// contains filtered or unexported fields
}
func NewIndexer ¶
func NewIndexer(deps indexerDeps) *Indexer
func (*Indexer) PhotoImageIndexer ¶
func (i *Indexer) PhotoImageIndexer() photo.ImageIndexer
func (*Indexer) QueueCallback ¶
func (*Indexer) QueueIndex ¶
type Meta ¶
type Resizer ¶
type Resizer struct { Quality int Interp resize.InterpolationFunction }
type SimilarityIndex ¶
type SimilarityIndex struct{}
func (*SimilarityIndex) Foo ¶
func (si *SimilarityIndex) Foo()
type Thumbnailer ¶
type Thumbnailer struct {
// contains filtered or unexported fields
}
func NewThumbnailer ¶
func NewThumbnailer(deps ThumbnailerDeps) *Thumbnailer
func (*Thumbnailer) PhotoThumbnailer ¶
func (t *Thumbnailer) PhotoThumbnailer() photo.Thumbnailer
type ThumbnailerDeps ¶
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package faces contains autogenerated REST client.
|
Package faces contains autogenerated REST client. |
Click to show internal directories.
Click to hide internal directories.