gather

package
v0.0.19 Latest Latest
Warning

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

Go to latest
Published: May 10, 2021 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CrawlImages added in v0.0.8

func CrawlImages(ctx context.Context, bucket *blob.Bucket, rsp_ch chan *GatherImagesResponse) error

Iterate through all the items stored in a blob.Bucket instance, generate a GatherImagesResponse for things that are images and dispatch that response to a user-defined channel.

func GatherImages added in v0.0.8

func GatherImages(ctx context.Context, bucket *blob.Bucket, cb GatherImageCallbackFunc) error

func GatherImagesWithOptions added in v0.0.8

func GatherImagesWithOptions(ctx context.Context, bucket *blob.Bucket, opts *GatherImagesOptions) error

Types

type GatherImageCallbackFunc added in v0.0.8

type GatherImageCallbackFunc func(*GatherImagesResponse) error

type GatherImagesOptions added in v0.0.8

type GatherImagesOptions struct {
	Callback   GatherImageCallbackFunc
	HashImages bool
}

type GatherImagesResponse added in v0.0.8

type GatherImagesResponse struct {
	Path        string
	Fingerprint string
	MimeType    string
	ImageHashes []*common.ImageHashRsp
}

func GatherImageResponseWithPath added in v0.0.14

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

Jump to

Keyboard shortcuts

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