本文整理汇总了Golang中camlistore/org/pkg/blob.ValidRefString函数的典型用法代码示例。如果您正苦于以下问题:Golang ValidRefString函数的具体用法?Golang ValidRefString怎么用?Golang ValidRefString使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了ValidRefString函数的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Golang代码示例。
示例1: wantsPermanode
func wantsPermanode(req *http.Request) bool {
if httputil.IsGet(req) && blob.ValidRefString(req.FormValue("p")) {
// The new UI is handled by index.html.
if req.FormValue("newui") != "1" {
return true
}
}
return false
}
示例2: wantsFileTreePage
func wantsFileTreePage(req *http.Request) bool {
return httputil.IsGet(req) && blob.ValidRefString(req.FormValue("d"))
}
示例3: wantsBlobInfo
func wantsBlobInfo(req *http.Request) bool {
return httputil.IsGet(req) && blob.ValidRefString(req.FormValue("b"))
}
示例4: wantsPermanode
func wantsPermanode(req *http.Request) bool {
return httputil.IsGet(req) && blob.ValidRefString(req.FormValue("p"))
}
示例5: wantsFileTreePage
func wantsFileTreePage(req *http.Request) bool {
return req.Method == "GET" && blob.ValidRefString(req.FormValue("d"))
}
示例6: wantsBlobInfo
func wantsBlobInfo(req *http.Request) bool {
return req.Method == "GET" && blob.ValidRefString(req.FormValue("b"))
}
示例7: wantsPermanode
func wantsPermanode(req *http.Request) bool {
return req.Method == "GET" && blob.ValidRefString(req.FormValue("p"))
}