Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewGoogleVideoIntelligenceClient ¶
func NewGoogleVideoIntelligenceClient(ctx context.Context, retryOpts helper.RetryOptions, opts VideoIntelligenceClientOptions) (*videointelligence.Client, error)
Types ¶
type Client ¶
type Client interface {
contract.VideoIntelOperator
}
func NewClient ¶
func NewClient(d Dependencies) (Client, error)
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 video contains explicit content.
func (*DefaultTool) ScanMany ¶
func (d *DefaultTool) ScanMany(ctx context.Context, files []*contract.BucketFile) ([]*contract.BucketScan, error)
ScanMany processes multiple video files concurrently to detect explicit content.
type Dependencies ¶
type Dependencies struct {
C contract.GoogleVideoIntelligence
R contract.Reader
P contract.PoolOperator
CP contract.Copier
}
type VideoIntelligenceClientOptions ¶ added in v0.1.479
type VideoIntelligenceClientOptions struct {
Loaded
}
Click to show internal directories.
Click to hide internal directories.