type github.com/go-redis/redis/v8.ringShard
19 uses
github.com/go-redis/redis/v8 (current package)
ring.go#L156: type ringShard struct {
ring.go#L161: func newRingShard(opt *RingOptions, name, addr string) *ringShard {
ring.go#L165: return &ringShard{
ring.go#L170: func (shard *ringShard) String() string {
ring.go#L180: func (shard *ringShard) IsDown() bool {
ring.go#L185: func (shard *ringShard) IsUp() bool {
ring.go#L190: func (shard *ringShard) Vote(up bool) bool {
ring.go#L212: shards map[string]*ringShard // read only
ring.go#L213: list []*ringShard // read only
ring.go#L219: shards := make(map[string]*ringShard, len(opt.Addrs))
ring.go#L220: list := make([]*ringShard, 0, len(shards))
ring.go#L240: func (c *ringShards) List() []*ringShard {
ring.go#L241: var list []*ringShard
ring.go#L266: func (c *ringShards) GetByKey(key string) (*ringShard, error) {
ring.go#L293: func (c *ringShards) GetByName(shardName string) (*ringShard, error) {
ring.go#L304: func (c *ringShards) Random() (*ringShard, error) {
ring.go#L529: go func(shard *ringShard) {
ring.go#L580: func (c *Ring) cmdShard(cmd Cmder) (*ringShard, error) {
ring.go#L709: var shards []*ringShard
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |