redhago

package module
v0.0.0-...-fae5788 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2014 License: Apache-2.0 Imports: 4 Imported by: 0

README

redhago

Go tool to query redis/hbase server status

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RedisSetWaitGet

func RedisSetWaitGet(pool *Pool, key string, value interface{}, wait, expire int) ([]byte, error)

Types

type Config

type Config struct {
	RedisServer []RedisConfig `json:"redis,omitempty"`
}

Config describe what we want to test

type Pool

type Pool struct {
	// contains filtered or unexported fields
}

func NewPool

func NewPool(addr, pass string, maxIdle, idleTimeout int) *Pool

func (*Pool) Get

func (p *Pool) Get(key string) ([]byte, error)

func (*Pool) Lpush

func (p *Pool) Lpush(key string, obj interface{}) error

func (*Pool) Set

func (p *Pool) Set(key string, obj interface{}) error

func (*Pool) SetDb

func (p *Pool) SetDb(db string) error

func (*Pool) Setex

func (p *Pool) Setex(key string, obj interface{}, exp int) error

type RedisConfig

type RedisConfig struct {
	Address        string `json:"address"`
	Password       string `json:"password,omitempty"`
	MaxIdleConn    int    `json:"max_idleconn,omitempty"`
	MaxIdleTimeout int    `json:"max_idletimeout,omitempty"`
}

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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