interfaces

package
v1.14.0 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetIdentifiers

func GetIdentifiers[T MergeModel](ms []T) []string

Types

type MergeModel

type MergeModel interface {
	set.Hasher[string]
	GetBlockIdentifier() string
}

type MergedEntities

type MergedEntities[T MergeModel] struct {
	EntitiesToCreate set.Collection[T]
	EntitiesToUpdate set.Collection[T]
	EntitiesToDelete set.Collection[T]
}

func MergeEntities

func MergeEntities[T MergeModel](plan []T, state []T) MergedEntities[T]

type OperationType added in v1.10.0

type OperationType string
const (
	CreateOperation OperationType = "create"
	UpdateOperation OperationType = "update"
	DeleteOperation OperationType = "delete"
)

Jump to

Keyboard shortcuts

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