Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Referer ¶
type Referer struct { Id bson.ObjectId `json:"-" bson:"_id"` Address string `json:"address" bson:"address"` AddressHash [32]byte `json:"-" bson:"address_hash"` FirstVisitAt *time.Time `json:"first_visit_at" bson:"first_visit_at"` LastVisitAt *time.Time `json:"last_visit_at" bson:"last_visit_at"` ShortUrl string `json:"-" bson:"short_url"` Visits uint64 `json:"visits" bson:"visits"` }
type UrlMapping ¶
type UrlMapping struct { Id bson.ObjectId `json:"-" bson:"_id"` CreatedAt *time.Time `json:"created_at" bson:"created_at"` LastAccessedAt *time.Time `json:"last_accessed_at" bson:"last_accessed_at"` ShortUrl string `json:"short_url" bson:"short_url"` UniqueViews uint64 `json:"unique_views" bson:"unique_views"` Url string `json:"url" bson:"url"` UrlHash [32]byte `json:"-" bson:"url_hash"` Views uint64 `json:"views" bson:"views"` Meta `bson:"-"` }
func NewUrlMapping ¶
func NewUrlMapping(url string) *UrlMapping
Click to show internal directories.
Click to hide internal directories.