cbt

package
v0.0.0-...-55eceb9 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: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Params

type Params struct {
	// FromSnaphotHandle is the 'from' snapshot handle to be used for the CBT
	// computation.
	FromSnapshotHandle string

	// ToSnaphotHandle is the 'to' snapshot handle to be used for the CBT
	// computation.
	ToSnapshotHandle string

	// MaxBytes defines the maximum amount of data to be returned to the CBT
	// consumer.
	MaxBytes uint64
}

Params is a collection of parameters used to construct to CBT request to be sent to the provider.

type Provider

type Provider interface {
	// FetchCBTs sends a CBT request, containing input parameters defined by
	// params to the CBT provider. The CBT response from the provider is written
	// to the writer w.
	FetchCBTs(params *Params, w io.WriteCloser) error
}

Provider exposes the FetchCBTs API which serves an abstract interface betewedwe between CBT consumer and the CBT providers.

Directories

Path Synopsis
provider

Jump to

Keyboard shortcuts

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