repository

package
v0.0.0-...-23ef0f1 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

type Repository interface {
	Create(instance interface{}) (interface{}, error)
	Get(id uuid.UUID) (interface{}, error)
	GetAll() (interface{}, error)
	Delete(id uuid.UUID) error
}

func NewRepository

func NewRepository(mongoClient *mongo.Client, collection *mongo.Collection) Repository

Jump to

Keyboard shortcuts

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