Documentation ¶ Index ¶ type Request type Response Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Request ¶ type Request struct { LongUrl string `json:"lurl"` Hours int `json:"hrs"` Minutes int `json:"mins"` Days int `json:"days"` } type Response ¶ type Response struct { ID primitive.ObjectID `bson:"_id,omitempty"` LongUrl string `bson:"lurl"` ShortUrl string `bson:"surl"` Hits int `bson:"hits"` ExpiresAt int `bson:"expat"` LastRequestTime int `bson:"lastreq"` } Source Files ¶ View all Source files model.go Click to show internal directories. Click to hide internal directories.