Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Sakurifice ¶
func Sakurifice(cfg *Config)
Sakurifice makes cache be compatible with saku. i.e. makes body dir ,attach dir and dat.stat in under cache dir.
func StartDaemon ¶
StartDaemon setups saves pid, start cron job and a http server.
Types ¶
type Config ¶
type Config struct { SaveRecord int64 SaveSize int // It is not seconds, but number. GetRange int64 SyncRange int64 SaveRemoved int64 DefaultPort int //DefaultPort is listening port MaxConnection int Docroot string LogDir string RunDir string FileDir string CacheDir string TemplateDir string SpamList string InitnodeList string NodeAllowFile string NodeDenyFile string ReAdminStr string ReFriendStr string ReVisitorStr string ServerName string TagSize int RSSRange int64 TopRecentRange int64 RecentRange int64 RecordLimit int ThreadPageSize int DefaultThumbnailSize string Enable2ch bool EnableNAT bool //EnableNAT is enabled if you want to use nat. ForceThumbnail bool EnableProf bool HeavyMoon bool EnableEmbed bool }
Config contains params ini file.
Click to show internal directories.
Click to hide internal directories.