store

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Filename

func Filename(database, format string) string

Filename embellishes a output file.

Types

type File

type File struct {
	Dir string
}

File type is used for file based operations

func (File) Writer

func (s File) Writer(ctx context.Context, filename string) (io.WriteCloser, error)

Writer writes a File type.

type GCS

type GCS struct {
	Bucket string
	Dir    string
}

GCS type is used for GCS storage on GCP

func (GCS) Writer

func (g GCS) Writer(ctx context.Context, filename string) (io.WriteCloser, error)

Writer writes to googe cloud storage

type S3

type S3 struct {
	Bucket string
	Dir    string
}

S3 type is used for S3 based opertaions

func (S3) Writer

func (s S3) Writer(ctx context.Context, filename string) (io.WriteCloser, error)

Writer writes an S3 type.

type Storer

type Storer interface {
	Writer(ctx context.Context, filename string) (io.WriteCloser, error)
}

Storer interface abstracts a Writer func

Jump to

Keyboard shortcuts

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