common

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: BSD-3-Clause Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractText added in v0.4.0

func ExtractText(ctx context.Context, e emboss.Embosser, bucket *blob.Bucket, path string) ([]byte, error)

ExtractText will return the text contained in the body of 'path' derived using 'e'.

func FingerprintFile added in v0.0.8

func FingerprintFile(ctx context.Context, bucket *blob.Bucket, path string) (string, error)

Generate a SHA-1 hash of a file stored in a blob.Bucket instance.

func NewReader

func NewReader(ctx context.Context, uri string) (reader.Reader, error)

NewReader returns a whosonfirst/go-reader.Reader instance. Instances are cached in memory for repeat lookups.

func NewWriter

func NewWriter(ctx context.Context, uri string) (writer.Writer, error)

NewWriter returns a whosonfirst/go-writer.Writer instance. Instances are cached in memory for repeat lookups.

Types

type ImageHashRsp added in v0.0.8

type ImageHashRsp struct {
	// String label describing the image hashing procedure used.
	Approach string
	// The hexidecimal hash of an image.
	Hash string
}

ImageHashRsp is a struct representing the results of an image hashing operation.

func ImageHashes added in v0.0.8

func ImageHashes(ctx context.Context, bucket *blob.Bucket, im_path string) ([]*ImageHashRsp, error)

Generate a list of ImageHashRsp instances for a file stored in a blob.Bucket instance using the corona10/goimagehash package.

Jump to

Keyboard shortcuts

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