image

package
v0.2.12 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 21, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NoOpImageFilter = func(uuid string, content *native.Content) (bool, error) { return false, nil }

NoOpImageFilter always returns false; useful for testing

Functions

This section is empty.

Types

type Filter

type Filter func(uuid string, content *native.Content) (bool, error)

Filter given a uuid and native content object from mongo, will test whether the content is an image, or error if there is no body or content is nil

func NewFilter

func NewFilter() Filter

NewFilter returns a function which will return true if the native content is an image.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL