storage

package
v0.0.0-...-ebba24f Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Database

type Database interface {
	//Get(ctx context.Context, uri string) (io.ReadCloser, error)
	Add(context.Context, *pb.Task) error
	List(context.Context, *pb.Category) ([]*pb.Task, error)
	Close() error
}

type Firestore

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

func NewFirestore

func NewFirestore(ctx context.Context, credentialsFile, projectId, collection string) (*Firestore, error)

func (*Firestore) Add

func (fs *Firestore) Add(ctx context.Context, t *pb.Task) error

func (*Firestore) Close

func (fs *Firestore) Close() error

func (*Firestore) List

func (fs *Firestore) List(ctx context.Context, category *pb.Category) ([]*pb.Task, error)

Jump to

Keyboard shortcuts

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