store

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2023 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Download

func Download(storage string, key string) (io.ReadCloser, error)

Download is a convenience method for downloading a file from the store.

func NewStoreAdapter

func NewStoreAdapter(storage string, key string, fragment string) (*tlcsv.TmpZipAdapter, error)

NewStoreAdapter is a convenience method for getting a GTFS Zip reader from the store.

func UploadFile

func UploadFile(storage string, src string, dst string) error

UploadFile is a convenience method for uploading a file to the store.

Types

type Store

type Store interface {
	request.Uploader
	request.Downloader
}

Store provides data storage methods.

func GetStore

func GetStore(ustr string) (Store, error)

GetStore returns a configured store based on the provided url.

Jump to

Keyboard shortcuts

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