Documentation ¶
Index ¶
- type BackendInterface
- type MemCacheBackend
- func (r *MemCacheBackend) Activate()
- func (r MemCacheBackend) Clone() BackendInterface
- func (r *MemCacheBackend) GetPoolSize() int
- func (r *MemCacheBackend) GetResult(key string) (message.Result, error)
- func (r *MemCacheBackend) SetPoolSize(n int)
- func (r *MemCacheBackend) SetResult(result message.Result, exTime int) error
- type MongoBackend
- func (r *MongoBackend) Activate()
- func (r MongoBackend) Clone() BackendInterface
- func (r *MongoBackend) GetPoolSize() int
- func (r *MongoBackend) GetResult(key string) (message.Result, error)
- func (r *MongoBackend) SetPoolSize(n int)
- func (r *MongoBackend) SetResult(result message.Result, exTime int) error
- type RedisBackend
- func (r *RedisBackend) Activate()
- func (r RedisBackend) Clone() BackendInterface
- func (r *RedisBackend) GetPoolSize() int
- func (r *RedisBackend) GetResult(key string) (message.Result, error)
- func (r *RedisBackend) SetPoolSize(n int)
- func (r *RedisBackend) SetResult(result message.Result, exTime int) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BackendInterface ¶
type MemCacheBackend ¶
type MemCacheBackend struct {
// contains filtered or unexported fields
}
func NewMemCacheBackend ¶
func NewMemCacheBackend(host, port string, poolSize int) MemCacheBackend
func (*MemCacheBackend) Activate ¶
func (r *MemCacheBackend) Activate()
func (MemCacheBackend) Clone ¶
func (r MemCacheBackend) Clone() BackendInterface
func (*MemCacheBackend) GetPoolSize ¶
func (r *MemCacheBackend) GetPoolSize() int
func (*MemCacheBackend) GetResult ¶
func (r *MemCacheBackend) GetResult(key string) (message.Result, error)
func (*MemCacheBackend) SetPoolSize ¶
func (r *MemCacheBackend) SetPoolSize(n int)
type MongoBackend ¶
type MongoBackend struct {
// contains filtered or unexported fields
}
func NewMongoBackend ¶
func NewMongoBackend(host, port, user, password, db, collection string) MongoBackend
func (*MongoBackend) Activate ¶
func (r *MongoBackend) Activate()
func (MongoBackend) Clone ¶
func (r MongoBackend) Clone() BackendInterface
func (*MongoBackend) GetPoolSize ¶
func (r *MongoBackend) GetPoolSize() int
func (*MongoBackend) GetResult ¶
func (r *MongoBackend) GetResult(key string) (message.Result, error)
func (*MongoBackend) SetPoolSize ¶
func (r *MongoBackend) SetPoolSize(n int)
type RedisBackend ¶
type RedisBackend struct {
// contains filtered or unexported fields
}
func NewRedisBackend ¶
func (*RedisBackend) Activate ¶
func (r *RedisBackend) Activate()
func (RedisBackend) Clone ¶
func (r RedisBackend) Clone() BackendInterface
func (*RedisBackend) GetPoolSize ¶
func (r *RedisBackend) GetPoolSize() int
func (*RedisBackend) GetResult ¶
func (r *RedisBackend) GetResult(key string) (message.Result, error)
func (*RedisBackend) SetPoolSize ¶
func (r *RedisBackend) SetPoolSize(n int)
Click to show internal directories.
Click to hide internal directories.