db

package
v0.0.0-...-00dd7a2 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2021 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddEntry

func AddEntry(entry string)

func ConnectToDB

func ConnectToDB() *mongo.Client

ConnectToDB establishes Database connection

Types

type Track

type Track struct {
	ID     string   `bson:"_id"`
	Artist string   `bson:"artist,omitempty"`
	Title  string   `bson:"title,omitempty"`
	Genre  string   `bson:"genre,omitempty"`
	Tags   []string `bson:"tags,omitempty"`
}

func FindEntry

func FindEntry(value string) (Track, error)

Jump to

Keyboard shortcuts

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