Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Replica ¶
func NewReplica ¶
func (*Replica) HandleReplicate ¶
func (*Replica) HandleRequest ¶
HandleRequest handles read request if node is one of replica, otherwise forward to random replica write request will only write to first node in replica set, and replicate asynchronously
Click to show internal directories.
Click to hide internal directories.