storage

package
v0.0.0-...-c6cc573 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Storage

type Storage struct {
	DB *sqlx.DB
	// contains filtered or unexported fields
}

func NewStorage

func NewStorage(db *sqlx.DB, cfg *config.Config) *Storage

func (*Storage) AddSegmentToUser

func (strg *Storage) AddSegmentToUser(ans *models.CRUDSegmentToUser, insertSlice []string) error

func (*Storage) CreateInsertSlice

func (strg *Storage) CreateInsertSlice(ans *models.CRUDSegmentToUser) []string

func (*Storage) CreateSegmentDB

func (strg *Storage) CreateSegmentDB(segment *models.Segment) error

func (*Storage) DeleteSegmentDB

func (strg *Storage) DeleteSegmentDB(segment *models.Segment) error

func (*Storage) DeleteSegmentUser

func (strg *Storage) DeleteSegmentUser(ans *models.CRUDSegmentToUser) error

func (*Storage) DuplicateSegment

func (strg *Storage) DuplicateSegment(segment *models.Segment) bool

func (*Storage) DuplicateUser

func (strg *Storage) DuplicateUser(user *models.User) bool

func (*Storage) GetInfoSegmentsByUser

func (strg *Storage) GetInfoSegmentsByUser(duration *models.CSVRequest, userID *uuid.UUID) (*models.StorageCSV, error)

func (*Storage) SegmentByUserID

func (strg *Storage) SegmentByUserID(id *uuid.UUID) *models.Storage

func (*Storage) VerifyUser

func (strg *Storage) VerifyUser(userID *uuid.UUID) bool

Jump to

Keyboard shortcuts

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