Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrUnknownTarget is the error returned when the target address of the node // is unknown. ErrUnknownTarget = errors.New("target address unknown") )
Functions ¶
This section is empty.
Types ¶
type IResolver ¶
type IResolver interface { Resolve(uint64, uint64) (string, string, error) Add(uint64, uint64, string) }
IResolver converts the (shard id, replica id) tuple to network address.
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
Registry is used to manage all known node addresses in the multi raft system. The transport layer uses this address registry to locate nodes.
func NewNodeRegistry ¶
func NewNodeRegistry(v config.TargetValidator) *Registry
NewNodeRegistry returns a new Registry object.
func (*Registry) RemoveShard ¶
RemoveShard removes info associated with the specified shard.
Click to show internal directories.
Click to hide internal directories.