content

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HMAScanner

type HMAScanner struct {
	// contains filtered or unexported fields
}

func NewHMAScanner

func NewHMAScanner(apiBaseUrl string, apiKey string, enabledBankNames []string) (*HMAScanner, error)

func (*HMAScanner) Scan

func (s *HMAScanner) Scan(ctx context.Context, contentType Type, content []byte) ([]classification.Classification, error)

type Scanner

type Scanner interface {
	Scan(ctx context.Context, contentType Type, content []byte) ([]classification.Classification, error)
}

type Type

type Type string
const TypePhoto Type = "photo"
const TypeVideo Type = "video"

Jump to

Keyboard shortcuts

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