Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHandler ¶
func NewHandler(repo Repository, middlewares ...Middleware) http.Handler
NewHandler returns a new Handler.
Types ¶
type Redirector ¶
type Redirector struct {
// contains filtered or unexported fields
}
type Repository ¶
type Repository interface {
GetURLAndUpdateStats(ctx context.Context, name string) (*url.URL, error)
}
func NewRepository ¶
func NewRepository(c *firestore.Client) Repository
Click to show internal directories.
Click to hide internal directories.