selector

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 17, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type All

type All struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

All is a Selector that returns all servers

func (*All) Get

func (sa *All) Get(topic string) ([]string, error)

func (*All) Set

func (sa *All) Set(servers ...string) error

type Shard

type Shard struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

Shard is a Selector that shards to a single server

func (*Shard) Get

func (ss *Shard) Get(topic string) ([]string, error)

func (*Shard) Set

func (ss *Shard) Set(servers ...string) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL