storage

package
v0.0.0-...-08b8e73 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CropURLStorage

type CropURLStorage interface {
	Close()                                   // close connection to the storage (database / file / ....)
	IsSet(string) bool                        // checks if the short ID is in the database
	AddURL(*model.LinkData) error             // creates a new redirect link
	Resolve(string) (string, error)           // retrieves long URL from database to produce redirect
	ViewStat(string) (*model.LinkData, error) // retrieves all data that corresponds to the short ID
	Delete(string) error                      // deletes data about specified short ID
}

CropURLStorage describes storage necessary methods to work with the application.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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