firestore

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2021 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package firestore uses firestore as a backend

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBackend

func NewBackend(ctx context.Context, servAcc string, opts *Options) (backend.Backend, error)

NewBackend returns a fsHandler, which is an implementation for FS

Types

type Options

type Options struct {
	// ProjectID is the id of the firebase project
	ProjectID string `yaml:"projectId"`
	// ChatsCollection is the name of the collections where
	// chats are stored
	ChatsCollection string `yaml:"chatsCollection"`
	// UseCache tells whether to cache chats locally
	UseCache bool `yaml:"useCache"`
}

Options contains options for firestore

Jump to

Keyboard shortcuts

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