modelmigration

package
v0.0.0-...-0a82276 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2024 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// LeadershipGuarantee is the amount of time that the lease service will
	// guarantee that the application leader will be the holder of the lease.
	LeadershipGuarantee = time.Minute
)

Variables

This section is empty.

Functions

func RegisterImport

func RegisterImport(coordinator Coordinator, logger logger.Logger)

RegisterImport registers the import operations with the given coordinator.

Types

type Coordinator

type Coordinator interface {
	// Add adds the given operation to the migration.
	Add(modelmigration.Operation)
}

Coordinator is the interface that is used to add operations to a migration.

type ImportService

type ImportService interface {
	ClaimLease(context.Context, lease.Key, lease.Request) error
}

ImportService is the interface that is used by the import operations to interact with the lease service.

Jump to

Keyboard shortcuts

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