store

package
v0.0.0-...-9fce2f1 Latest Latest
Warning

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

Go to latest
Published: May 2, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultChunkSize = 1 << 10

Variables

This section is empty.

Functions

func NewHandler

func NewHandler() pb.StoreServer

func ReadStream

func ReadStream(uri string, opts ...Option) (io.ReadCloser, error)

Types

type Option

type Option func(*Options)

func WithNamespace

func WithNamespace(ns string) Option

type Options

type Options struct {
	Namespace string
	Expiry    time.Duration
}

type Store

type Store interface {
	ReadStream(string, ...Option) (io.ReadCloser, error)
}
var DefaultStore Store

Jump to

Keyboard shortcuts

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