table

package module
v0.0.0-...-7750e4c Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2021 License: MIT Imports: 21 Imported by: 0

README

dxfunc-table

Extract PDF tables.

First time deployment

go mod verify
go mod vendor
./mod2vend.sh


### HTTP

1. `gcloud functions deploy HelloHTTP --region=us-central1 --runtime=go113 --trigger-http`

1. `export BASE_URL=https://REGION-PROJECT.cloudfunctions.net/`

1. `go test -v ./hello_http_system_test.go`



 % gcloud functions deploy ExtractTables2 --runtime=go116 --trigger-http --entry-point EntryPoint --region=australia-southeast1
Deploying function (may take a while - up to 2 minutes)...⠛
For Cloud Build Logs, visit: https://console.cloud.google.com/cloud-build/builds;region=australia-southeast1/a4c60bb8-d603-4ad5-aea6-d6ddac146c96?project=32302607862
Deploying function (may take a while - up to 2 minutes)...done.
availableMemoryMb: 256
buildId: 5d737889-0088-47cf-bc70-020b83c4fac7
buildName: projects/32302607862/locations/australia-southeast1/builds/5d737889-0088-47cf-bc70-020b83c4fac7
entryPoint: EntryPoint
httpsTrigger:
  securityLevel: SECURE_OPTIONAL
  url: https://australia-southeast1-dx-002.cloudfunctions.net/ExtractTables
ingressSettings: ALLOW_ALL
labels:
  deployment-tool: cli-gcloud
name: projects/dx-002/locations/australia-southeast1/functions/ExtractTables
runtime: go116
serviceAccountEmail: table-extract@dx-002.iam.gserviceaccount.com
sourceUploadUrl: https://storage.googleapis.com/gcf-upload-australia-south-a365dbd5-2603-461b-b24a-15f7d1681a50/d7759942-619f-4a59-b4ac-f17bb99fc54c.zip
status: ACTIVE
timeout: 60s
updateTime: '2021-09-05T08:18:19.368Z'
versionId: '3'
(base) peter@L-PETERW dxfunc-table % ls
  [Restored 5 Sep 2021 at 6:57:01 pm]

 % gcloud functions describe ExtractTables --region=australia-southeast1
availableMemoryMb: 256
buildId: 5d737889-0088-47cf-bc70-020b83c4fac7
buildName: projects/32302607862/locations/australia-southeast1/builds/5d737889-0088-47cf-bc70-020b83c4fac7
entryPoint: EntryPoint
httpsTrigger:
  securityLevel: SECURE_OPTIONAL
  url: https://australia-southeast1-dx-002.cloudfunctions.net/ExtractTables
ingressSettings: ALLOW_ALL
labels:
  deployment-tool: cli-gcloud
name: projects/dx-002/locations/australia-southeast1/functions/ExtractTables
runtime: go116
serviceAccountEmail: table-extract@dx-002.iam.gserviceaccount.com
sourceUploadUrl: https://storage.googleapis.com/gcf-upload-australia-south-a365dbd5-2603-461b-b24a-15f7d1681a50/d7759942-619f-4a59-b4ac-f17bb99fc54c.zip
status: ACTIVE
timeout: 60s
updateTime: '2021-09-05T08:18:19.368Z'
versionId: '3'
(base) peter@L-PETERW dxfunc-table % gcloud functions describe ExtractTables2 --region=australia-southeast1
availableMemoryMb: 256
buildId: 2887ec4e-2e16-4c58-8d6d-040295732bdb
buildName: projects/32302607862/locations/australia-southeast1/builds/2887ec4e-2e16-4c58-8d6d-040295732bdb
entryPoint: EntryPoint
httpsTrigger:
  securityLevel: SECURE_OPTIONAL
  url: https://australia-southeast1-dx-002.cloudfunctions.net/ExtractTables2
ingressSettings: ALLOW_ALL
labels:
  deployment-tool: cli-gcloud
name: projects/dx-002/locations/australia-southeast1/functions/ExtractTables2
runtime: go116
serviceAccountEmail: dx-002@appspot.gserviceaccount.com
sourceUploadUrl: https://storage.googleapis.com/gcf-upload-australia-south-a365dbd5-2603-461b-b24a-15f7d1681a50/75a642b5-672f-4a88-9f0f-3470a5a7f378.zip
status: ACTIVE
timeout: 60s
updateTime: '2021-09-05T09:15:15.547Z'
versionId: '1'

OLD

availableMemoryMb: 256
buildId: d628d65b-cbee-483a-b133-1b68a2d65000
buildName: projects/32302607862/locations/australia-southeast1/builds/d628d65b-cbee-483a-b133-1b68a2d65000
entryPoint: EntryPoint
httpsTrigger:
  securityLevel: SECURE_OPTIONAL
  url: https://australia-southeast1-dx-002.cloudfunctions.net/ExtractTables
ingressSettings: ALLOW_ALL
labels:
  deployment-tool: cli-gcloud
name: projects/dx-002/locations/australia-southeast1/functions/ExtractTables
runtime: go116
serviceAccountEmail: dx-002@appspot.gserviceaccount.com
sourceUploadUrl: https://storage.googleapis.com/gcf-upload-australia-south-a365dbd5-2603-461b-b24a-15f7d1681a50/4a35d3d8-8edc-437f-bb72-024b69247a22.zip
status: ACTIVE
timeout: 60s
updateTime: '2021-09-04T00:01:13.631Z'
versionId: '1'
% gcloud functions describe ExtractTables --region=australia-southeast1
availableMemoryMb: 256
buildId: d628d65b-cbee-483a-b133-1b68a2d65000
buildName: projects/32302607862/locations/australia-southeast1/builds/d628d65b-cbee-483a-b133-1b68a2d65000
entryPoint: EntryPoint
httpsTrigger:
  securityLevel: SECURE_OPTIONAL
  url: https://australia-southeast1-dx-002.cloudfunctions.net/ExtractTables
ingressSettings: ALLOW_ALL
labels:
  deployment-tool: cli-gcloud
name: projects/dx-002/locations/australia-southeast1/functions/ExtractTables
runtime: go116
serviceAccountEmail: dx-002@appspot.gserviceaccount.com
sourceUploadUrl: https://storage.googleapis.com/gcf-upload-australia-south-a365dbd5-2603-461b-b24a-15f7d1681a50/4a35d3d8-8edc-437f-bb72-024b69247a22.zip
status: ACTIVE
timeout: 60s
updateTime: '2021-09-04T00:01:13.631Z'
versionId: '1'

gcloud functions deploy ExtractTables2 --runtime=go116 --trigger-http --entry-point EntryPoint --region=australia-southeast1 Allow unauthenticated invocations of new function [ExtractTables2]? (y/N)? y

Deploying function (may take a while - up to 2 minutes)...⠹ For Cloud Build Logs, visit: https://console.cloud.google.com/cloud-build/builds;region=australia-southeast1/2887ec4e-2e16-4c58-8d6d-040295732bdb?project=32302607862 Deploying function (may take a while - up to 2 minutes)...done. availableMemoryMb: 256 buildId: 2887ec4e-2e16-4c58-8d6d-040295732bdb buildName: projects/32302607862/locations/australia-southeast1/builds/2887ec4e-2e16-4c58-8d6d-040295732bdb entryPoint: EntryPoint httpsTrigger: securityLevel: SECURE_OPTIONAL url: https://australia-southeast1-dx-002.cloudfunctions.net/ExtractTables2 ingressSettings: ALLOW_ALL labels: deployment-tool: cli-gcloud name: projects/dx-002/locations/australia-southeast1/functions/ExtractTables2 runtime: go116 serviceAccountEmail: dx-002@appspot.gserviceaccount.com sourceUploadUrl: https://storage.googleapis.com/gcf-upload-australia-south-a365dbd5-2603-461b-b24a-15f7d1681a50/75a642b5-672f-4a88-9f0f-3470a5a7f378.zip status: ACTIVE timeout: 60s updateTime: '2021-09-05T09:15:15.547Z' versionId: '1'

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EntryPoint

func EntryPoint(w http.ResponseWriter, r *http.Request)

EntryPoint is an HTTP Cloud Function with a request parameter.

Types

This section is empty.

Directories

Path Synopsis
cmd
table
Binary that serves the HTTP conformance test function.
Binary that serves the HTTP conformance test function.

Jump to

Keyboard shortcuts

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