models

package
v0.0.0-...-5d5b006 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2022 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Pubkey  string
	PrivKey string
}

type Location

type Location struct {
	Lat  float32
	Long float32
}

type MediaReport

type MediaReport struct {
	Id            string
	DateSubmitted string
	Reporter      string
	Text          string
	// D.C properties
	Contributor string
	Coverage    string
	Creator     string
	Date        string
	Description string
	Format      string
	Identifier  string
	Language    string
	Publisher   string
	Relation    string
	Rights      string
	Source      string
	Subject     string
	Title       string
	Type        string
	Analysis    NLUAnalysis
}

type NLUAnalysis

type NLUAnalysis struct {
	Pii        pii.Response
	NL         nlapi.AnalyzeResponse
	HateSpeech hatespeech.HateSpeechDetectResponse
}

type VictimReport

type VictimReport struct {
	Id            string
	DateSubmitted string
	Reporter      string
	Title         string
	Description   string
	Location      Location
}

type WitnessReport

type WitnessReport struct {
	Id               string
	DateSubmitted    string
	Reporter         string
	Title            string
	Text             string
	Date             string
	Location         Location
	GroupResponsible string
	Analysis         NLUAnalysis
}

Jump to

Keyboard shortcuts

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