Documentation ¶
Index ¶
- Constants
- Variables
- func AddDB(dbhost, dbport, dbuser, dbpass, dbname, dbprefix, dbtype string) error
- func FinishInstall()
- func FullTextSearch(keywords string) []int64
- func GetRequestIP(req *revel.Request) string
- func InitCache(isInstalled bool, config *config.Config)
- func InitRedis()
- func InitSearcher()
- func InitXorm(appConfig *config.Config) error
- func InstallInterceptor(c *revel.Controller) revel.Result
- func LoginFilter(c *revel.Controller) revel.Result
- func TestXorm(driver, user, pass, host, port, dbname string, prefix string) error
- type Sign
Constants ¶
View Source
const ( DEFAULT = 0 REDIS = 1 SPY_CONF_MD5_KEY = "speedy:conf:md5:key" SPY_CONF_SIGN_KEY = "speedy:conf:sign:key" SPY_ADMIN_INFO = "admin:info:id:" SPY_BLOGGER_LIST = "speedy:blogger:list" SPY_BLOGGER_SINGLE = "speedy:blogger:id:" )
Variables ¶
View Source
var AppConfig *config.Config
View Source
var Cache *redis.Client
View Source
var IsInstalled bool
View Source
var Isinstalled bool
View Source
var MCache cache.Cache
View Source
var SPY_CONF_MD5_VAL string
View Source
var SPY_CONF_SIGN_VAL string
View Source
var ( // searcher是协程安全的 Searcher = engine.Engine{} )
View Source
var Xorm *xorm.Engine
Functions ¶
func FinishInstall ¶
func FinishInstall()
func FullTextSearch ¶
func GetRequestIP ¶
func InitSearcher ¶
func InitSearcher()
func InstallInterceptor ¶
func InstallInterceptor(c *revel.Controller) revel.Result
func LoginFilter ¶
func LoginFilter(c *revel.Controller) revel.Result
LoginFilter check login status
Types ¶
type Sign ¶
func (*Sign) AesDecrypt ¶
decrypt from base64 to decrypted string
func (*Sign) AesEncrypt ¶
encrypt string to base64 crypto using AES
Click to show internal directories.
Click to hide internal directories.