Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNotFound = errors.New("record not found")
)
Functions ¶
This section is empty.
Types ¶
type Reposiroty ¶
type Reposiroty struct { TinyURL interface { Create(tinyURL *models.TinyURL) error Get(short string) (*models.TinyURL, error) } }
func NewRepo ¶
func NewRepo(db *database.DB) *Reposiroty
type TinyURLRepo ¶
type TinyURLRepo struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.