https://github.com/altipla-consulting/functions
Cloud Functions helpers.
https://github.com/altipla-consulting/functions
Last synced: 6 months ago
JSON representation
Cloud Functions helpers.
- Host: GitHub
- URL: https://github.com/altipla-consulting/functions
- Owner: altipla-consulting
- License: mit
- Created: 2019-06-20T10:29:19.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-06-20T14:19:38.000Z (over 6 years ago)
- Last Synced: 2025-03-08T01:01:53.115Z (10 months ago)
- Language: Go
- Homepage: https://github.com/altipla-consulting/functions
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# functions
Utilities and helpers for apps running in Google Cloud Functions.
## Install
```shell
go get github.com/altipla-consulting/functions
```
## Usage
Receive a Firestore Event:
```go
package foo
import (
"context"
"fmt"
"github.com/altipla-consulting/functions"
)
func Entrypoint(ctx context.Context, event *functions.FirestoreEvent) error {
fmt.Printf("%#v\n", event.OldValue)
fmt.Printf("%#v\n", event.Value)
return nil
}
```
## Contributing
You can make pull requests or create issues in GitHub. Any code you send should be formatted using `make gofmt`.
## Running tests
Run the tests:
```shell
make test
```
## License
[MIT License](LICENSE)