external

package
v0.0.0-...-b98b87e Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGoogleCloudStorage

func NewGoogleCloudStorage(cl *storage.Client) *googleCloudStorage

func NewRekognitionClient

func NewRekognitionClient(cl *rekognition.Rekognition) *rekognitionService

Types

type CloudStorageService

type CloudStorageService interface {
	UploadFile(ctx context.Context, objectPath string, objectName string, file multipart.File) error
	DownloadFile(ctx context.Context, objectPath string, objectName string) ([]byte, error)
}

type RekognitionService

type RekognitionService interface {
	CompareImages(ctx context.Context, reference []byte, comparison []byte, THRESHOLD float64) (*rekognition.CompareFacesOutput, error)
}

Jump to

Keyboard shortcuts

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