Documentation
¶
Overview ¶
Package service provides the business logic for URL shortener
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func New ¶
func New(s store.StoreInterface) *Store
func (*Store) GetLongURL ¶
GetLongURL retrieves the long URL from the store
func (*Store) GetURLVisits ¶
GetURLVisits quries the store for URL visits
func (*Store) LogURLVisit ¶
LogURLVisit inserts URL visit event in the store
Click to show internal directories.
Click to hide internal directories.