Documentation ¶
Overview ¶
基于redigo的封装
Index ¶
- Variables
- func NewConnection()
- func NewConnectionWithFile(tagName, path string) error
- type Config
- type Reply
- func (r *Reply) Bool() (bool, error)
- func (r *Reply) ByteSlices() ([][]byte, error)
- func (r *Reply) Bytes() ([]byte, error)
- func (r *Reply) Error() error
- func (r *Reply) Float64s() ([]float64, error)
- func (r *Reply) Int() (int, error)
- func (r *Reply) Int64() (int64, error)
- func (r *Reply) Int64Map() (map[string]int64, error)
- func (r *Reply) Int64s() ([]int64, error)
- func (r *Reply) IntMap() (map[string]int, error)
- func (r *Reply) Ints() ([]int, error)
- func (r *Reply) Positions() ([]*[2]float64, error)
- func (r *Reply) Result() (interface{}, error)
- func (r *Reply) ScanStruct(obj interface{}) error
- func (r *Reply) String() (string, error)
- func (r *Reply) StringMap() (map[string]string, error)
- func (r *Reply) Strings() ([]string, error)
- func (r *Reply) Uint64() (uint64, error)
- func (r *Reply) Values() ([]interface{}, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrorConfig error = fmt.Errorf("请先初始化redis配置")
)
View Source
var NilError = redis.ErrNil
View Source
var RedigoConn = new(redigoPack)
Functions ¶
func NewConnection ¶
func NewConnection()
func NewConnectionWithFile ¶
Types ¶
type Reply ¶
type Reply struct {
// contains filtered or unexported fields
}
func (*Reply) ByteSlices ¶
Click to show internal directories.
Click to hide internal directories.