Documentation
¶
Index ¶
- Variables
- func ListenReplication(s *agro.Server, addr string) error
- func OpenReplication(s *agro.Server) error
- type Distributor
- func (d *Distributor) Block(ctx context.Context, req *models.BlockRequest) (*models.BlockResponse, error)
- func (d *Distributor) BlockIterator() agro.BlockIterator
- func (d *Distributor) BlockSize() uint64
- func (d *Distributor) Close() error
- func (d *Distributor) DeleteBlock(ctx context.Context, i agro.BlockRef) error
- func (d *Distributor) Flush() error
- func (d *Distributor) GetBlock(ctx context.Context, i agro.BlockRef) ([]byte, error)
- func (d *Distributor) HasBlock(ctx context.Context, i agro.BlockRef) (bool, error)
- func (d *Distributor) Kind() string
- func (d *Distributor) NumBlocks() uint64
- func (d *Distributor) PutBlock(ctx context.Context, req *models.PutBlockRequest) (*models.PutResponse, error)
- func (d *Distributor) RebalanceCheck(ctx context.Context, req *models.RebalanceCheckRequest) (*models.RebalanceCheckResponse, error)
- func (d *Distributor) Ring() agro.Ring
- func (d *Distributor) UUID() string
- func (d *Distributor) UsedBlocks() uint64
- func (d *Distributor) WriteBlock(ctx context.Context, i agro.BlockRef, data []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNoPeersBlock = errors.New("distributor: no peers available for a block")
)
Functions ¶
func ListenReplication ¶
ListenReplication opens the internal networking port and connects to the cluster
func OpenReplication ¶
OpenReplication connects to the cluster without opening the internal networking.
Types ¶
type Distributor ¶
type Distributor struct {
// contains filtered or unexported fields
}
func (*Distributor) Block ¶
func (d *Distributor) Block(ctx context.Context, req *models.BlockRequest) (*models.BlockResponse, error)
func (*Distributor) BlockIterator ¶
func (d *Distributor) BlockIterator() agro.BlockIterator
func (*Distributor) BlockSize ¶
func (d *Distributor) BlockSize() uint64
func (*Distributor) Close ¶
func (d *Distributor) Close() error
func (*Distributor) DeleteBlock ¶
func (*Distributor) Flush ¶
func (d *Distributor) Flush() error
func (*Distributor) Kind ¶
func (d *Distributor) Kind() string
func (*Distributor) NumBlocks ¶
func (d *Distributor) NumBlocks() uint64
func (*Distributor) PutBlock ¶
func (d *Distributor) PutBlock(ctx context.Context, req *models.PutBlockRequest) (*models.PutResponse, error)
func (*Distributor) RebalanceCheck ¶
func (d *Distributor) RebalanceCheck(ctx context.Context, req *models.RebalanceCheckRequest) (*models.RebalanceCheckResponse, error)
func (*Distributor) Ring ¶
func (d *Distributor) Ring() agro.Ring
func (*Distributor) UUID ¶
func (d *Distributor) UUID() string
func (*Distributor) UsedBlocks ¶
func (d *Distributor) UsedBlocks() uint64
func (*Distributor) WriteBlock ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.