dedup

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2023 License: MPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateChecksum

func GenerateChecksum(s string) string

GenerateChecksum generates a checksum using SHA256

Types

type DeDuper

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

func NewDeDuper

func NewDeDuper(ctx context.Context, request *http.Request, eventRepo datastore.EventRepository) *DeDuper

func (*DeDuper) Exists

func (d *DeDuper) Exists(source, projectId string, input []string) (bool, error)

func (*DeDuper) GenerateChecksum

func (d *DeDuper) GenerateChecksum(source string, input []string) (string, error)

GenerateChecksum generates a checksum using the provided request input fields

type Idempotency

type Idempotency interface {
	GenerateChecksum(string, []string) (string, error)
	Exists(string, string, []string) (bool, error)
}

Jump to

Keyboard shortcuts

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