varasto: github.com/function61/varasto/pkg/stoserver/storeplication Index | Files

package storeplication

import "github.com/function61/varasto/pkg/stoserver/storeplication"

Controls replication of data between volumes

Index

Package Files

replicationcontroller.go

func HasQueuedWriteIOsForVolume Uses

func HasQueuedWriteIOsForVolume(volId int, tx *bbolt.Tx) (bool, error)

type Controller Uses

type Controller struct {
    // contains filtered or unexported fields
}

func New Uses

func New(
    toVolumeId int,
    db *bbolt.DB,
    diskAccess *stodiskaccess.Controller,
    logger *log.Logger,
    start func(fn func(context.Context) error),
) *Controller

returns controller API and a function you must call (maybe in a separate goroutine) to run the logic

func (*Controller) Progress Uses

func (c *Controller) Progress() int

Package storeplication imports 14 packages (graph) and is imported by 1 packages. Updated 2020-08-22. Refresh now. Tools for package owners.