google

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateCustomerDoc

func CreateCustomerDoc(ctx context.Context, client *firestore.Client) storage.InsertCustomerFunc

CreateCustomerDoc inserts a customer document into google firestore

func DeleteCustomerDoc

func DeleteCustomerDoc(ctx context.Context, firestoreClient *firestore.Client) storage.RemoveCustomerFunc

DeleteCustomerDoc returns a firestore implementation of customer removal

func RetrieveCustomerDoc

func RetrieveCustomerDoc(ctx context.Context, client *firestore.Client) storage.RetrieveCustomerFunc

RetrieveCustomerDoc returns a firestore implementation of customer retrieval

func RetrieveCustomerDocs

func RetrieveCustomerDocs(ctx context.Context, client *firestore.Client) storage.RetrieveCustomersFunc

RetrieveCustomerDocs returns firestore implementation of customers retrieval

func UpdateCustomerDoc

func UpdateCustomerDoc(ctx context.Context, client *firestore.Client) storage.UpdateCustomerFunc

UpdateCustomerDoc returns a firestore implementation for customer updates

Types

type CustomerDocument

type CustomerDocument struct {
	CustomerID       string `firestore:"customerID"`
	FirstName        string `firestore:"firstName"`
	LastName         string `firestore:"lastName"`
	NationalID       string `firestore:"nationalID"`
	PhoneNumber      string `firestore:"phoneNumber"`
	AccountID        string `firestore:"accountID"`
	LastModifiedTime string `firestore:"lastModifiedTime"`
	CreatedTime      string `firestore:"createdTime"`
	Version          int    `firestore:"version"`
}

CustomerDocument represents the firestore database entity for a customer

Jump to

Keyboard shortcuts

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