database

package
v0.0.0-...-3ca74ef Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2021 License: MIT Imports: 8 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 - DB structure

func Connect

func Connect() *DB

Connect - Connect mongoDB

func (*DB) All

func (db *DB) All() []*model.Survey

All - Find all surveys

func (*DB) FindByID

func (db *DB) FindByID(ID string) *model.Survey

FindByID - Find survey by ID

func (*DB) Save

func (db *DB) Save(input *model.SurveyInput) *model.Survey

Save - Save new survey

Jump to

Keyboard shortcuts

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