repository

package
v0.0.0-...-fb2001d Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DBPinsRepo

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

func NewDBPinsRepoRepo

func NewDBPinsRepoRepo(db *pgxpool.Pool) DBPinsRepo

func (DBPinsRepo) AddNewPin

func (obj DBPinsRepo) AddNewPin(ctx context.Context, pin model.Pins) error

func (DBPinsRepo) DeactivatePin

func (obj DBPinsRepo) DeactivatePin(ctx context.Context, userID int64, msgID uint64) error

func (DBPinsRepo) GetRandomUnread

func (obj DBPinsRepo) GetRandomUnread(ctx context.Context, userID int64) ([]model.Pins, error)

Jump to

Keyboard shortcuts

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