db

package
v0.0.0-...-39d4010 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Adapter

type Adapter struct {
	Client *mongo.Client
}

func NewAdapter

func NewAdapter(dataSourceUrl string) (*Adapter, error)

func (*Adapter) GetUrlByShortUrl

func (a *Adapter) GetUrlByShortUrl(ctx context.Context, shortUrl string) (domain.Url, error)

func (*Adapter) SaveUrl

func (a *Adapter) SaveUrl(ctx context.Context, url domain.Url) error

Jump to

Keyboard shortcuts

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