structs

package
v0.0.0-...-3853e65 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2021 License: MIT Imports: 0 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Analysis

type Analysis struct {
	Fingerprint            FingerprintResponse
	NSFW                   NSFWResponse
	FingerprintErrorString string
	NSFWErrorString        string
}

Analysis represents the fingerprint and NSFW data about a media.

type CacheResult

type CacheResult struct {
	FingerprintHit bool
	NSFWHit        bool
}

type FingerprintResponse

type FingerprintResponse struct {
	PHash     string
	Histogram []float64
}

FingerprintResponse represents the response of the fingerprinting service.

type GibberishResponse

type GibberishResponse struct {
	IsGibberish bool
}

GibberishResponse represents the response of the gibberish service.

type NSFWResponse

type NSFWResponse struct {
	IsNSFW     bool
	Confidence float64
	Label      string
}

NSFWResponse represents the response of the NSFW service.

Jump to

Keyboard shortcuts

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