language

package
v0.0.0-...-0d805c2 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2020 License: BSD-2-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateNoun

func CreateNoun(ctx context.Context, doc *models.Noun) error

CreateNoun creates a new noun.

func DeleteNoun

func DeleteNoun(ctx context.Context, doc *models.Noun) error

DeleteNoun deletes given noun.

func ListNouns

func ListNouns(ctx context.Context) ([]*models.Noun, error)

ListNouns lists all nouns.

func SearchNoun

func SearchNoun(ctx context.Context, doc *models.Noun) (*models.Noun, error)

SearchNoun searches for given noun in database, and queries external services if not found.

func UpdateNoun

func UpdateNoun(ctx context.Context, doc *models.Noun) error

UpdateNoun updates an existing noun.

func UpsertNoun

func UpsertNoun(ctx context.Context, doc *models.Noun) error

UpsertNoun upserts a noun.

Types

This section is empty.

Jump to

Keyboard shortcuts

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