repository

package
v0.0.0-...-83b9238 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewUserRepo

func NewUserRepo(db *gorm.DB) *userRepo

Types

type TrackingRepo

type TrackingRepo struct {
	// contains filtered or unexported fields
}

func NewTrackingRepo

func NewTrackingRepo(db *gorm.DB) *TrackingRepo

func (TrackingRepo) Delete

func (sr TrackingRepo) Delete(c context.Context, id uint) (err error)

func (TrackingRepo) Fetch

func (sr TrackingRepo) Fetch(c context.Context, m *[]models.Tracking, userID uint) (err error)

func (TrackingRepo) GetByUserID

func (sr TrackingRepo) GetByUserID(c context.Context, m *models.Tracking, id uint) (err error)

func (*TrackingRepo) Store

func (sr *TrackingRepo) Store(c context.Context, m *models.Tracking) (err error)

func (*TrackingRepo) Update

func (sr *TrackingRepo) Update(c context.Context, mu models.Tracking, id uint) (socialMedia models.Tracking, err error)

Jump to

Keyboard shortcuts

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