helper

package
v0.0.0-...-996e6dd Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2016 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Bolt *bolt.DB

Bolt obtains a db connection

View Source
var Callbacks []func(string)

Callbacks - event callbacks wich would be called

Functions

func BoltDel

func BoltDel(key string)

BoltDel - Delete a key from BoltDB

func BoltGet

func BoltGet(key string) string

BoltGet - Fetch key from BoltDB

func BoltInit

func BoltInit()

BoltInit - Setup key bucket

func BoltSet

func BoltSet(key, value string)

BoltSet - Set key value in BoltDB

func RedisClient

func RedisClient() *redis.Client

RedisClient - Get new redis connection.

func Unzip

func Unzip(str string) string

Unzip - reverse method to Zip()

func Zip

func Zip(str string) string

Zip - Generic compression layer. It provides supports multiple compression layers

  • gzip
  • snappy
  • uncompress (empty - default)

This option should be set by system environment var "COMPRESSION"

Types

This section is empty.

Jump to

Keyboard shortcuts

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