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
Click to show internal directories.
Click to hide internal directories.