storage

package
v0.0.0-...-04ebe59 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2023 License: GPL-3.0 Imports: 6 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 *types.URL) error

func (*Postgre) InitDB

func (p *Postgre) InitDB()

func (*Postgre) InsertURL

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

type Storage

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

Jump to

Keyboard shortcuts

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