Crates.io | htsget-storage |
lib.rs | htsget-storage |
version | 0.2.1 |
source | src |
created_at | 2024-08-04 23:33:24.668781 |
updated_at | 2024-10-17 01:16:14.302236 |
description | Storage interfaces and abstractions for htsget-rs. |
homepage | https://github.com/umccr/htsget-rs/blob/main/htsget-storage/README.md |
repository | https://github.com/umccr/htsget-rs |
max_upload_size | |
id | 1325358 |
size | 124,814 |
Contains storage interfaces and abstractions for htsget-rs. It:
This crate is the mechanism by which htsget-rs interacts fetches data from bioinformatics files which it needs to process requrests. It also allows htsget-rs to create and format URL tickets correctly. It does this by providing storage layer abstractions which other crates can use to interact with data. It defines three kinds of storage which can fetch data:
This crate is responsible for allowing the user to fetch the URL tickets returned by the ticket server. In the case of
LocalStorage
, this entails a separate data_server
that can serve files using HTTP. S3Storage
simply returns
presigned S3 URLs.
In order to use a particular storage backend for URL tickets, the proper backend should be configured using htsget-config.
This crate provides have the following features:
Storage
trait contains functions used to fetch data: get
, range_url
, head
and data_url
. The local, s3,
and url modules implement the Storage
functionality.This crate has the following features:
s3-storage
: used to enable S3Storage
functionality.url-storage
: used to enable UrlStorage
functionality.experimental
: used to enable experimental features that aren't necessarily part of the htsget spec, such as Crypt4GH support through C4GHStorage
.This project is licensed under the MIT license.