favorites

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Favorite

type Favorite struct {
	ProviderCode string
	InstanceId   string
}

type FavoritesRepo

type FavoritesRepo interface {
	ListAll(ctx app.Context) ([]*Favorite, error)
	IsFavorite(ctx app.Context, favorite *Favorite) (bool, error)
	Add(ctx app.Context, favorite *Favorite) error
	Remove(ctx app.Context, favorite *Favorite) error
}

func NewFavorites

func NewFavorites(db *sql.DB) FavoritesRepo

Jump to

Keyboard shortcuts

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