firestore_shorten_bulk

package
v0.0.0-...-6965a8e Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ShortenBulkCollection = "shorten_bulk"
)

Variables

This section is empty.

Functions

func NewShortenBulkFirestore

func NewShortenBulkFirestore() shorten_bulk.ShortenBulkRepository

Types

type ShortenBulkFirestore

type ShortenBulkFirestore struct{}

func (*ShortenBulkFirestore) Get

func (*ShortenBulkFirestore) GetAndIncrement

func (f *ShortenBulkFirestore) GetAndIncrement(hash string, updatedAt time.Time) (
	*types.ShortenBulkRepositoryDTO,
	error,
)

func (*ShortenBulkFirestore) GetOldest

func (f *ShortenBulkFirestore) GetOldest(size int) (
	map[string]*types.ShortenBulkRepositoryDTO,
	error,
)

func (*ShortenBulkFirestore) PostSafe

func (*ShortenBulkFirestore) PostUnsafe

func (f *ShortenBulkFirestore) PostUnsafe(
	hash string,
	dto types.ShortenBulkRepositoryDTO,
) error

Jump to

Keyboard shortcuts

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