g

package
v0.0.0-...-9f6fd05 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 9, 2018 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	BlogTitle              string
	BlogResume             string
	QiniuAccessKey         string
	QiniuSecretKey         string
	QiniuScope             string
	UseQiniu               bool
	QiniuHttpDomain        string
	IsQiniuPublicAccess    bool = true
	QiniuCatalogUploadPath string
	LocalCatalogUploadPath string
	NSQAddr                string
)
View Source
var Cache cache.Cache
View Source
var MemcachedCache cache.Cache
View Source
var RSAPrivateKey *rsa.PrivateKey
View Source
var RSAPublicKey *rsa.PublicKey
View Source
var RunMode string

Functions

func BlogCacheDel

func BlogCacheDel(key string) error

func BlogCacheGet

func BlogCacheGet(key string) interface{}

func BlogCachePut

func BlogCachePut(key string, val interface{}) error

func BlogContentCacheDel

func BlogContentCacheDel(key int64) error

func BlogContentCacheGet

func BlogContentCacheGet(key int64) string

func BlogContentCachePut

func BlogContentCachePut(key int64, val interface{}) error

func CatalogCacheDel

func CatalogCacheDel(key string) error

func CatalogCacheGet

func CatalogCacheGet(key string) interface{}

func CatalogCachePut

func CatalogCachePut(key string, val interface{}) error

func Decrypt

func Decrypt(serialized string) string

func Encrypt

func Encrypt(plaintext string) string

func InitEnv

func InitEnv() error

func LoadRSACipher

func LoadRSACipher() error

加载RSA密钥/公钥

func RenderMarkdown

func RenderMarkdown(mdStr string) string

func UploadFile

func UploadFile(localFile string, destName string) (addr string, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL