utils

package
v0.0.0-...-743647c Latest Latest
Warning

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

Go to latest
Published: May 8, 2015 License: MIT Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(x, y *big.Int) *big.Int

func Mod

func Mod(x, y *big.Int) *big.Int

func Mul

func Mul(x, y *big.Int) *big.Int

func Sqrt

func Sqrt(x, y *big.Int) int

func Sub

func Sub(x, y *big.Int) *big.Int

Types

type Configuration

type Configuration struct {
	ConfigPath string
	Redis      *RedisConf
}

func (*Configuration) Init

func (self *Configuration) Init() *Configuration

type RedisConf

type RedisConf struct {
	Pool *redis.Pool
	Host string
}

func NewFactory

func NewFactory(host string) *RedisConf

func (*RedisConf) Add

func (conf *RedisConf) Add(item *RedisItem) (err error)

func (*RedisConf) Exists

func (conf *RedisConf) Exists(key string) (bool, error)

func (*RedisConf) Get

func (conf *RedisConf) Get(key string, e interface{}) (interface{}, error)

func (*RedisConf) NewPool

func (conf *RedisConf) NewPool() *redis.Pool

type RedisItem

type RedisItem struct {
	Key   uint64
	Value interface{}
}

Jump to

Keyboard shortcuts

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