storeplication

package
v0.0.0-...-ea0be71 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 10, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Controls replication of data between volumes

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HasQueuedWriteIOsForVolume

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

Types

type Controller

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

func New

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

func (c *Controller) Progress() int

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL