Documentation ¶
Overview ¶
Package models is for loading and updating documentation files.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Products = new(products)
Functions ¶
func GetBlog ¶
func GetBlog(fullName, lang string) *docFile
GetBlog returns 'docFile' by given name and language version.
func GetDoc ¶
func GetDoc(fullName, lang string) *docFile
GetDoc returns 'docFile' by given name and language version.
func InitModels ¶
func InitModels()
func RegisterDB ¶
func RegisterDB()
Types ¶
type DocNode ¶
type DocNode struct { IsDir bool Path string RelPath string FileRelPath string FilePath string Date time.Time Name string Sort int Link string Docs DocList Root *DocRoot Parent *DocNode // contains filtered or unexported fields }
func (*DocNode) GetContent ¶
func (*DocNode) HasContent ¶
type DocRoot ¶
type DocRoot struct { Wd string Path string Doc *DocNode // contains filtered or unexported fields }
func GetDocByLocale ¶
type Servers ¶
type Servers struct { Id int64 Uid int64 Name string Description string `orm:"size(300)"` Attachment string //Created time.Time `orm:"index"` //Updated time.Time `orm:"index"` Views int64 `orm:"index"` Author string //DelteTime time.Time `orm:"index"` Cpu int64 Memory int64 }
func GetAllServerNmaes ¶
Click to show internal directories.
Click to hide internal directories.