pgstore

package
v0.0.0-...-4ec28c1 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2021 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 DBPgItem

type DBPgItem struct {
	ID          uuid.UUID `db:"id"`
	ShortUrl    string    `db:"shortUrl"`
	LongUrl     string    `db:"longUrl"`
	Count       int       `db:"count"`
	Permissions int       `db:"perms"`
}

type Items

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

func NewUsers

func NewUsers(dsn string) *Items

func (*Items) Close

func (us *Items) Close()

func (*Items) Create

func (us *Items) Create(ctx context.Context, u item.Item) (*uuid.UUID, error)

func (*Items) Delete

func (us *Items) Delete(ctx context.Context, uid uuid.UUID) error

func (*Items) Read

func (us *Items) Read(ctx context.Context, uid uuid.UUID) (*item.Item, error)

func (*Items) SearchItems

func (us *Items) SearchItems(ctx context.Context, s string) (chan item.Item, error)

Jump to

Keyboard shortcuts

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