package
0.0.0-20231024072928-1def5908d099
Repository: https://github.com/rasha108bik/tiny_url.git
Documentation: pkg.go.dev
# Functions
NewMockPostgres creates a new mock instance.
NewMockStorager creates a new mock instance.
NewPostgres returns a newly initialized handler objects that implements the Storager interface.
# Structs
DB struct with postgres driver *sqlx.DB.
MockPostgres is a mock of Postgres interface.
MockPostgresMockRecorder is the mock recorder for MockPostgres.
MockStorager is a mock of Storager interface.
MockStoragerMockRecorder is the mock recorder for MockStorager.
ShortLink struct which use in postgres operations: StoreURL, GetOriginalURLByShortURL.