firestore

package
v0.0.0-...-2b1a315 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package firestore gather all function that deal with the firestore database

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Storage

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

Storage is a struct that holds the firestore client and the projectID and database name

func NewStorage

func NewStorage(client *firestore.Client, projectID string) *Storage

NewStorage creates a new Storage struct

func (*Storage) SaveCompany

func (s *Storage) SaveCompany(ctx context.Context, company credit.Company) error

SaveCompany save a company in the firestore database

Jump to

Keyboard shortcuts

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