storage

package
v0.0.0-...-5a62a3f Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Postgre

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

func NewPostgre

func NewPostgre() *Postgre

func (*Postgre) Close

func (p *Postgre) Close() error

func (*Postgre) GetURL

func (p *Postgre) GetURL(url *picori.URL) error

func (*Postgre) InitDB

func (p *Postgre) InitDB()

func (*Postgre) InsertURL

func (p *Postgre) InsertURL(url picori.URL) error

type Sqlite

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

func NewSqlite

func NewSqlite() *Sqlite

func (*Sqlite) CheckUser

func (s *Sqlite) CheckUser(userFilter *picori.UserFilter) (*picori.User, error)

func (*Sqlite) Close

func (s *Sqlite) Close() error

func (*Sqlite) CreateUser

func (s *Sqlite) CreateUser(user picori.User) error

func (*Sqlite) GetURL

func (s *Sqlite) GetURL(url *picori.URL) error

func (*Sqlite) InitDB

func (s *Sqlite) InitDB()

func (*Sqlite) InsertURL

func (s *Sqlite) InsertURL(url picori.URL) error

type Storage

type Storage interface {
	GetURL(*picori.URL) error
	InsertURL(picori.URL) error
}

Jump to

Keyboard shortcuts

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