Documentation ¶
Index ¶
- Constants
- Variables
- func FieldDebug(fields []*api.NodeField, colname string, length int) template.HTML
- func FieldHtml(fields []*api.NodeField, colname string) template.HTML
- func FieldHtmlPrint(nodeEntry api.Node, colname, lang string) template.HTML
- func FieldHtmlSubPrint(nodeEntry api.Node, colname string, length int, lang string) template.HTML
- func FieldString(fields []*api.NodeField, colname string) string
- func FieldStringPrint(nodeEntry api.Node, colname, lang string) string
- func FieldSubHtml(fields []*api.NodeField, colname string, length int) template.HTML
- func FieldSubString(fields []*api.NodeField, colname string, length int) string
- func FieldTimeFormat(fields []*api.NodeField, colname, format string) string
- func FilterUri(data map[string]interface{}, args ...interface{}) template.URL
- func GdocLocalPath(docId string) string
- func GdocNodeId(name string) string
- func NodeTermQuery(modname string, model *api.NodeModel, terms []api.NodeTerm) []api.NodeTerm
- func OpActionAllow(opbase, op uint32) bool
- func Pagelet(data map[string]interface{}, args ...string) template.HTML
- func StringSub(s string, start, length int) string
- func TermTaxonomyCacheClean(modname, table string)
- func TermTaxonomyCacheEntry(modname, table string, termid uint32) *api.Term
- func TermTaxonomyCacheIndexes(modname, table, termid_s string) []uint32
- func TextHtml2Str(src string) string
- func TimeFormat(timeString, formatFrom, formatTo string) string
- func UnixtimeFormat(timeValue interface{}, formatTo string) string
- func Worker()
- type NodeSearchEngine
- type NodeSphinxSearchEngine
- type QuerySet
- func (q *QuerySet) Filter(expr string, args ...interface{}) string
- func (q *QuerySet) FilterOr(expr string, args ...interface{}) string
- func (q *QuerySet) From(s string) string
- func (q *QuerySet) Hash() string
- func (q *QuerySet) Limit(num int64) string
- func (q *QuerySet) NodeCount() (int64, error)
- func (q *QuerySet) NodeEntry() api.Node
- func (q *QuerySet) NodeList(fields, terms []string) api.NodeList
- func (q *QuerySet) NodeListSearch(qry string) api.NodeList
- func (q *QuerySet) Offset(num int64) string
- func (q *QuerySet) Order(s string) string
- func (q *QuerySet) Query() []rdb.Entry
- func (q *QuerySet) QueryEntry() *rdb.Entry
- func (q *QuerySet) Select(s string) string
- func (q *QuerySet) TermCount() (int64, error)
- func (q *QuerySet) TermEntry() api.Term
- func (q *QuerySet) TermList() api.TermList
- func (q *QuerySet) Where() rdb.Filter
- type SphinxSearchConfig
- type SphinxSearchConfigBucketEntry
- type TermList
- type VcsRepoItem
Constants ¶
View Source
const ( VcsActionInit uint32 = 1 << 16 VcsActionPullOK uint32 = 1 << 19 VcsActionPullER uint32 = 1 << 20 )
Variables ¶
View Source
var (
VcsGitVerReg = regexp.MustCompile(`^[a-f0-9]{30,50}$`)
)
Functions ¶
func FieldDebug ¶
func FieldHtmlSubPrint ¶
func FieldSubHtml ¶
func FieldSubString ¶
func GdocLocalPath ¶
func GdocNodeId ¶
func NodeTermQuery ¶
func OpActionAllow ¶
func TermTaxonomyCacheClean ¶
func TermTaxonomyCacheClean(modname, table string)
func TermTaxonomyCacheEntry ¶
func TextHtml2Str ¶
func TimeFormat ¶
func UnixtimeFormat ¶
Types ¶
type NodeSearchEngine ¶
type NodeSearchEngine interface { Query(bucket string, q string, qs *QuerySet) api.NodeList Put(bucket string, node api.Node) error ModelSet(bucket string, model *api.NodeModel) error }
func NewNodeSphinxSearchEngine ¶
func NewNodeSphinxSearchEngine(prefix string) (NodeSearchEngine, error)
type NodeSphinxSearchEngine ¶
type NodeSphinxSearchEngine struct {
// contains filtered or unexported fields
}
func (*NodeSphinxSearchEngine) ModelSet ¶
func (it *NodeSphinxSearchEngine) ModelSet(bukname string, model *api.NodeModel) error
type QuerySet ¶
type QuerySet struct { ModName string ModelID string Table string Pager bool // contains filtered or unexported fields }
func (*QuerySet) QueryEntry ¶
type SphinxSearchConfig ¶
type SphinxSearchConfig struct { Prefix string `json:"prefix"` Buckets []*SphinxSearchConfigBucketEntry `json:"buckets"` Daemon struct { CpuCoreNum int `json:"cpu_core_num"` MaxChildren int `json:"max_children"` } `json:"daemon"` }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.