Documentation ¶
Index ¶
- Constants
- func Call(cli *rpc.Client, method string, args interface{}, reply interface{}) error
- func Dial(addr string, connect bool) net.Conn
- type Parameters
- func (b *Parameters) Connect() error
- func (b *Parameters) Disconnect()
- func (b *Parameters) FindClosestReplica(replyRL *masterproto.GetReplicaListReply) error
- func (b *Parameters) GetListener() *bufio.Reader
- func (b *Parameters) MasterDial() *rpc.Client
- func (b *Parameters) Read(id int32, key int64)
- func (b *Parameters) Scan(key int64, count int64, id int32)
- func (b *Parameters) Stats() string
- func (b *Parameters) Submit(args genericsmrproto.Propose)
- func (b *Parameters) Write(id int32, key int64, value []byte)
Constants ¶
View Source
const MAX_ATTEMPTS = 3
View Source
const TIMEOUT = 3 * time.Second
View Source
const TRUE = uint8(1)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Parameters ¶
type Parameters struct { Leader int // contains filtered or unexported fields }
func NewParameters ¶
func (*Parameters) Connect ¶
func (b *Parameters) Connect() error
func (*Parameters) Disconnect ¶
func (b *Parameters) Disconnect()
func (*Parameters) FindClosestReplica ¶
func (b *Parameters) FindClosestReplica(replyRL *masterproto.GetReplicaListReply) error
func (*Parameters) GetListener ¶
func (b *Parameters) GetListener() *bufio.Reader
func (*Parameters) MasterDial ¶
func (b *Parameters) MasterDial() *rpc.Client
func (*Parameters) Read ¶
func (b *Parameters) Read(id int32, key int64)
func (*Parameters) Stats ¶
func (b *Parameters) Stats() string
func (*Parameters) Submit ¶
func (b *Parameters) Submit(args genericsmrproto.Propose)
Click to show internal directories.
Click to hide internal directories.