tchao

package
v0.0.0-...-ac52da4 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2025 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Abuser

type Abuser struct {
	Name        string       `json:"name"`
	Aliases     []string     `json:"aliases"`
	Accusations []Accusation `json:"accusations"`
}

type Accusation

type Accusation struct {
	Text    string   `json:"accusation"`
	Sources []Source `json:"sources"`
}

type Source

type Source struct {
	Title   string `json:"title"`
	Format  string `json:"format"`
	URL     string `json:"source"`
	Paywall bool   `json:"paywall,omitempty"`
}

type TchaoDB

type TchaoDB struct {
	URL     string
	Abusers []Abuser
}

func New

func New() TchaoDB

func (*TchaoDB) Load

func (db *TchaoDB) Load() error

func (*TchaoDB) Search

func (db *TchaoDB) Search(searchTerms ...string) ([]Abuser, error)

Jump to

Keyboard shortcuts

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