Documentation ¶
Index ¶
- type Conn
- func (This *Conn) CheckUri() error
- func (This *Conn) Close() bool
- func (This *Conn) Connect() bool
- func (This *Conn) Del(key string) (bool, error)
- func (This *Conn) GetConnStatus() string
- func (This *Conn) HeartCheck()
- func (This *Conn) Insert(key string, data interface{}) (bool, error)
- func (This *Conn) ReConnect() bool
- func (This *Conn) SendToList(key string, data interface{}) (bool, error)
- func (This *Conn) SetConnStatus(status string)
- func (This *Conn) SetExpir(TimeOut int)
- func (This *Conn) SetMustBeSuccess(b bool)
- func (This *Conn) Update(key string, data interface{}) (bool, error)
- type MyConn
- type Stub
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Conn ¶
type Conn struct { Uri string // contains filtered or unexported fields }
func (*Conn) GetConnStatus ¶
func (*Conn) HeartCheck ¶
func (This *Conn) HeartCheck()
func (*Conn) SetConnStatus ¶
func (*Conn) SetMustBeSuccess ¶
type MyConn ¶
type MyConn struct{}
func (*MyConn) GetTypeAndRule ¶
func (MyConn *MyConn) GetTypeAndRule() driver.TypeAndRule
func (*MyConn) GetUriExample ¶
type Stub ¶
type Stub struct { Check func() error Insert func(key string, timeout int, data map[string]dataDriver.Value) (e error) Update func(key string, timeout int, data map[string]dataDriver.Value) (e error) Delete func(key string) (e error) ToList func(key string, timeout int, data map[string]dataDriver.Value) (e error) }
Click to show internal directories.
Click to hide internal directories.