content

package
v0.0.0-...-01fc84d Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Data

type Data struct {
	// The location of the data in the repository
	Namespace string
	RefIDs    []string
	ID        string

	// The actual data
	Data []byte
	Meta []byte
}

type Repository

type Repository interface {
	Post(ctx context.Context, namespace string, refIDs []string, ID string, data Data) (Data, *types.CommonError)

	// Get daya by owner ID
	Get(ctx context.Context, namespace string, refIDs []string, ID string) ([]Data, *types.CommonError)

	// Delete specific ID data. If no data, MUST return error
	Delete(ctx context.Context, namespace string, refIDs []string, ID string) (Data, *types.CommonError)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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