domain

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2024 License: Unlicense Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlobDescriptor

type BlobDescriptor struct {
	Pubkey   string
	Url      string
	Sha256   string
	Size     int64
	Type     string
	Blob     []byte
	Uploaded int64
}

type BlobDescriptorRepo

type BlobDescriptorRepo interface {
	Save(
		ctx context.Context,
		pubkey string,
		sha256 string,
		url string,
		size int64,
		mimeType string,
		blob []byte,
		created int64,
	) (*BlobDescriptor, error)
	Exists(ctx context.Context, sha256 string) (bool, error)
	GetFromHash(ctx context.Context, sha256 string) (*BlobDescriptor, error)
	GetFromPubkey(ctx context.Context, pubkey string) ([]*BlobDescriptor, error)
	DeleteFromHash(ctx context.Context, sha256 string) error
}

Jump to

Keyboard shortcuts

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