episode

package
v0.0.0-...-aeeea33 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(collection *mongo.Collection, episode Episode)

CREATE

func Delete_all

func Delete_all(collection *mongo.Collection)

DELETE

func Update

func Update(collection *mongo.Collection, filter bson.D)

UPDATE

Types

type Episode

type Episode struct {
	Full_text string `bson:"full_text"`
	Title     string `bson:"title"`
	Yt_id     string `bson:"yt_id"`
}

func Read

func Read(collection *mongo.Collection, filter bson.D) Episode

READ

func Search(collection *mongo.Collection, searchterm string) (error, []Episode)

SEARCH

type SearchResults

type SearchResults struct {
	Err     bool      `bson:"error"`
	Results []Episode `bson:"results"`
}

Jump to

Keyboard shortcuts

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