Documentation
¶
Index ¶
- type RedisStore
- func (p *RedisStore) CreateNewTorrentKey(infoHash string)
- func (p *RedisStore) GetAllPeers(key string) []string
- func (p *RedisStore) GetKeyVal(key string) []string
- func (p *RedisStore) KeyExists(key string) (retval bool)
- func (p *RedisStore) RemoveKV(key, value string)
- func (p *RedisStore) SetIPMember(infoHash, ipPort string) (retval int)
- func (p *RedisStore) SetKV(key, value string)
- func (p *RedisStore) SetKeyIfNotExists(key, value string) (retval bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RedisStore ¶
type RedisStore struct {
// contains filtered or unexported fields
}
RedisStore represents the implementation of a `PeerStore` object.
func (*RedisStore) CreateNewTorrentKey ¶
func (p *RedisStore) CreateNewTorrentKey(infoHash string)
CreateNewTorrentKey wraps around the specific `CreateNewTorrentKey` function
func (*RedisStore) GetAllPeers ¶
func (p *RedisStore) GetAllPeers(key string) []string
GetAllPeers wraps around the specific `GetAllPeers` function
func (*RedisStore) GetKeyVal ¶
func (p *RedisStore) GetKeyVal(key string) []string
GetKeyVal wraps around the specific `GetKeyVal` function
func (*RedisStore) KeyExists ¶
func (p *RedisStore) KeyExists(key string) (retval bool)
KeyExists wraps around the specific `GetBoolKeyVal` function
func (*RedisStore) RemoveKV ¶
func (p *RedisStore) RemoveKV(key, value string)
RemoveKV wraps around the specific `RemoveKeysValue` function
func (*RedisStore) SetIPMember ¶
func (p *RedisStore) SetIPMember(infoHash, ipPort string) (retval int)
SetIPMember wraps around the specific `SetIPMember` function
func (*RedisStore) SetKV ¶
func (p *RedisStore) SetKV(key, value string)
SetKV wraps around the generic `SetKeyVal` function
func (*RedisStore) SetKeyIfNotExists ¶
func (p *RedisStore) SetKeyIfNotExists(key, value string) (retval bool)
SetKeyIfNotExists wraps around the generic RedisSetKeyIfNotExists function
Click to show internal directories.
Click to hide internal directories.