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.
Click to show internal directories.
Click to hide internal directories.