idxkey

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IDXKey

type IDXKey struct {
	Key   string
	Value string
}

IDXKey represents a KV of Key => File.Key and Value => File.Signature

func New

func New(k, v string) *IDXKey

New returns a new IDXKey with te Key and Value provided

type Repository

type Repository interface {
	CreateOrReplace(ctx context.Context, ik *IDXKey) error
	FindByKey(ctx context.Context, key string) (*IDXKey, error)
	DeleteByKey(ctx context.Context, key string) error
	DeleteAll(ctx context.Context) error
}

Repository is the interface that has to be fulfiled to interact with IDXKeys

Jump to

Keyboard shortcuts

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