firestore

package
v0.0.0-...-4425001 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package firestore supports randomizer storage in Google Cloud Firestore.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FactoryFromEnv

func FactoryFromEnv() (func(string) randomizer.Store, error)

FactoryFromEnv returns a store.Factory whose stores are backed by a Google Cloud Firestore database.

Types

type Store

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

func New

func New(client *firestore.Client, partition string) Store

func (Store) Delete

func (f Store) Delete(ctx context.Context, group string) (bool, error)

func (Store) Get

func (f Store) Get(ctx context.Context, group string) ([]string, error)

func (Store) List

func (f Store) List(ctx context.Context) ([]string, error)

func (Store) Put

func (f Store) Put(ctx context.Context, group string, options []string) error

Jump to

Keyboard shortcuts

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