Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Dir string MaxSize int )
View Source
var Instance *gorm.DB
View Source
var TrafficCache = make(map[uint]map[string]bool)
Functions ¶
func FolderSize ¶
func FolderSize() int
Types ¶
type Cache ¶
type Cache struct { Model Path string `gorm:"Type:varchar(64);Column:path;NOT NULL;primary_key;unique" json:"path"` File string `gorm:"Type:varchar(64);Column:file;NOT NULL;primary_key;unique" json:"file"` ContentType string `gorm:"Type:varchar(64);Column:content_type;NOT NULL" json:"content_type"` Traffics []Traffic `json:"-"` }
func SmallestTraffic ¶
func SmallestTraffic() (c Cache)
Click to show internal directories.
Click to hide internal directories.