mongo

package
v0.0.0-...-410382b Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2023 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

type DB struct {
	// contains filtered or unexported fields
}

DB extends Mongo client to address business model (genomic variants)

func Connect

func Connect(uri string, database string) (*DB, error)

Connect creates connection with MongoDB

func (*DB) Remove

func (db *DB) Remove(datasetID string, assemblyID string) error

Remove removes variants from database given a dataset ID and/or assembly ID. If both are zero value them it deletes all variants.

func (*DB) Save

func (db *DB) Save(v *variant.Variant) error

Save stores variant to Mongo database

func (*DB) Search

func (db *DB) Search(i *search.Input) (*search.Response, error)

Search is the main method to search for variants.

Jump to

Keyboard shortcuts

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