download

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2025 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DownloadSegment

type DownloadSegment struct {
	PresignedURL string `json:"presigned_url"`
	Range        string `json:"range"`
}

type DownloadServer

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

func NewServer

func NewServer(pgxPool *pgxpool.Pool, cacheDir string, maxCacheSize int64, encryptionKey string) (*DownloadServer, error)

func (*DownloadServer) Close

func (s *DownloadServer) Close() error

func (*DownloadServer) PreSignDownloadForDatapoints

type PreSignDownloadForDatapointsRequest

type PreSignDownloadForDatapointsRequest struct {
	Datas3tName    string `json:"datas3t_name"`
	FirstDatapoint uint64 `json:"first_datapoint"`
	LastDatapoint  uint64 `json:"last_datapoint"`
}

func (*PreSignDownloadForDatapointsRequest) Validate

type PreSignDownloadForDatapointsResponse

type PreSignDownloadForDatapointsResponse struct {
	DownloadSegments []DownloadSegment `json:"download_segments"`
}

Jump to

Keyboard shortcuts

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