plowforce

command module
v0.0.0-...-34c969b Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2020 License: MPL-2.0 Imports: 9 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

plowforce

REST API to connect backend services to Salesforce.

Build Status

Build Status

Code Coverage

Here

Compiling

go build .

Running

go run . Server starting

Usage Instructions

Deployment Instructions

Build main go executeable: GOOS=linux go build -o main main.go

Zip up executeable: zip deployment.zip main

Create AWS Lambda:

aws lambda create-function --function-name sls-plowforce-{ENV}-plow
--description "Salesforce API function"
--runtime go1.x
--role {AWS-ARN-ROLE}
--handler main
--environment 'Variables={ENV="dev", SENTRY_DSN=""}'
--timeout 30 \ --memory-size 1024
--zip-file fileb://./deployment.zip
--region us-west-2

To redploy/update build and zip per above, then:

aws lambda update-function-code --function-name sls-plowforce-{ENV}-plow
--zip-file fileb://./deployment.zip
--region us-west-2

To add environment variables to lamda:

aws lambda update-function-configuration --function-name sls-plowforce-dev-plow
--environment 'Variables={sfUser="", sfPassword="", sfURL="", sfToken="", SENTRY_DSN="<SENTRY_DSN>"}'

Pre-commit Hook Installation

  1. pip install pre-commit
  2. pre-commit install

Testing

To test all files and functions with verbose output run: go test ./... --cover -v

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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