Documentation
¶
Index ¶
Constants ¶
View Source
const ( Random = iota AutoIncrement )
View Source
const ( RedirectProxy = "proxy" Redirect301 = "301" Redirect302 = "302" Redirect303 = "303" Redirect307 = "307" )
Variables ¶
This section is empty.
Functions ¶
func InitSlotGenerator ¶
func OriginExist ¶
Types ¶
type Slot ¶
type Slot struct {
Humanity bool
Length int
Algorithm int
Letters string
Start string
// contains filtered or unexported fields
}
var SlotGenerator *Slot
type Url ¶
type Url struct {
Slot string `json:"slot"`
Origin string `json:"origin"`
RedirectType string `json:"redirect_type" bson:"redirect_type"`
CreatedTime time.Time `json:"created_time" bson:"created_time"`
ExpiresIn int `json:"expires_in" bson:"expires_in"`
Count int64 `json:"count"`
Url string `json:"url" bson:"-"`
}
func FindHottestUrls ¶
func FindNewestUrls ¶
func FindUrlByOrigin ¶
func FindUrlBySlot ¶
func NewCustomUrl ¶
Click to show internal directories.
Click to hide internal directories.
