database

package
v0.0.0-...-133dcc5 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PostgresRepository

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

func NewPostgresRepository

func NewPostgresRepository(url string) (*PostgresRepository, error)

Constructor

func (*PostgresRepository) Close

func (repo *PostgresRepository) Close()

Close connection with database

func (*PostgresRepository) InsertFeed

func (repo *PostgresRepository) InsertFeed(ctx context.Context, feed *models.Feed) error

Insert feed

func (*PostgresRepository) ListFeeds

func (repo *PostgresRepository) ListFeeds(ctx context.Context) ([]*models.Feed, error)

List of feeds

Jump to

Keyboard shortcuts

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