Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewGoogleVisionClient ¶
func NewGoogleVisionClient(ctx context.Context, retryOpts helper.RetryOptions, opts VisionClientOptions) (*vision.ImageAnnotatorClient, error)
Types ¶
type Client ¶
type Client interface {
contract.ImageIntelOperator
}
func NewClient ¶
func NewClient(d Dependencies) (Client, error)
func NewNoopClient ¶ added in v0.1.859
func NewNoopClient() Client
type DefaultTool ¶
func NewTool ¶
func NewTool(c Client, opts contract.ToolOptions[Client]) *DefaultTool
func (*DefaultTool) Close ¶
func (d *DefaultTool) Close(ctx context.Context) error
Close shuts down the underlying client.
func (*DefaultTool) IsForbidden ¶
IsForbidden checks if the image contains explicit content.
func (*DefaultTool) ScanMany ¶
func (d *DefaultTool) ScanMany(ctx context.Context, files []*contract.BucketFile) ([]*contract.BucketScan, error)
ScanMany processes multiple images files concurrently to detect explicit content.
type Dependencies ¶
type Dependencies struct {
C contract.GoogleVision
R contract.Reader
P contract.PoolOperator
CP contract.Copier
}
type VisionClientOptions ¶ added in v0.1.479
type VisionClientOptions struct {
Loaded
}
Click to show internal directories.
Click to hide internal directories.