db

package
v0.0.0-...-80d61b6 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cassandra

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

func (*Cassandra) CreateURL

func (c *Cassandra) CreateURL(url string) (string, error)

func (*Cassandra) GetURL

func (c *Cassandra) GetURL(key string) (string, error)

func (*Cassandra) Init

func (c *Cassandra) Init()

type CurrentID

type CurrentID struct {
	ID int
	// contains filtered or unexported fields
}

type DB

type DB interface {
	Init()
	CreateURL(url string) (string, error)
	GetURL(key string) (string, error)
}

func GetDB

func GetDB() DB

type Postgres

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

func (*Postgres) CreateURL

func (p *Postgres) CreateURL(mainUrl string) (string, error)

func (*Postgres) GetURL

func (p *Postgres) GetURL(key string) (string, error)

func (*Postgres) Init

func (p *Postgres) Init()

Jump to

Keyboard shortcuts

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