Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DBController ¶
type DBController struct {
// contains filtered or unexported fields
}
func NewDBController ¶
func NewDBController(db models.DBModel, cacher models.CahceModel) *DBController
type URLController ¶
type URLController struct { DBController *DBController models.URLModel }
func NewURLController ¶
func NewURLController(urlModel models.URLModel, DBController *DBController) *URLController
func (*URLController) Redirect ¶
func (uc *URLController) Redirect(ctx context.Context, w http.ResponseWriter, r *http.Request) error
func (*URLController) ShortenURL ¶
Click to show internal directories.
Click to hide internal directories.