repository

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

type DB interface {
	GetAllSubscriptions(ctx context.Context) ([]ds.SubscriptionResponse, error)
	CreateSubscription(ctx context.Context, sub ds.SubscriptionRequest) (ds.SubscriptionResponse, error)
	UpsertListing(ctx context.Context, listing ds.UpsertListingRequest) error
	GetListingsBySubscriptionID(ctx context.Context, subscriptionID string) ([]ds.ListingResponse, error)
	GetListingsByIsNeedSend(ctx context.Context, isNeedSend bool) ([]ds.ListingResponse, error)
	CreateNotification(ctx context.Context, notification ds.CreateNotificationRequest) (ds.NotificationResponse, error)
	GetSubscriptionsByUserID(ctx context.Context, userID int64) ([]ds.SubscriptionResponse, error)
	DeleteListingsBySubscriptionIDs(ctx context.Context, ids []string) error
	DeleteSubscriptionsByUserID(ctx context.Context, userID int64) error
	DeleteUserByID(ctx context.Context, id int64)
	UpsertUser(ctx context.Context, request ds.UserRequest) (ds.UserResponse, error)
}

Directories

Path Synopsis
psql
db

Jump to

Keyboard shortcuts

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