store

package
v0.0.0-...-c3684ad Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store interface {
	GetAllProjects() []model.Project
	GetProjectById(id string) *model.Project
	CreateProject(project *model.Project) error
	UpdateProject(project *model.Project) error
	DeleteProject(projectId string) error
}

func BuildMongoProjectStore

func BuildMongoProjectStore(connectionString string, database string, collection string) (Store, *mongo.Client, context.Context, error)

Jump to

Keyboard shortcuts

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