repository

package
v0.0.0-...-4c384aa Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SharingsRepository

type SharingsRepository struct {
	Collection *mongo.Collection
}

func InitSharingsRepository

func InitSharingsRepository(DB *mongo.Database) SharingsRepository

func (*SharingsRepository) GetSharing

func (r *SharingsRepository) GetSharing(hash string) (dto.Sharing, error)

GetSharing - Queries the database to get a given sharing by hash

func (*SharingsRepository) InsertSharing

func (r *SharingsRepository) InsertSharing(sharing dto.Sharing) error

InsertSharing - Inserts a sharing record

Jump to

Keyboard shortcuts

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