This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14:37:56.634978 257043 test2.go:98] write: 0.079503 [0.079503] | |
14:38:06.636423 257043 test2.go:98] write: 0.896781 [0.976285] | |
14:38:16.636674 257043 test2.go:98] write: 0.675795 [1.652080] | |
14:38:26.636976 257043 test2.go:98] write: 0.956422 [2.608502] | |
14:38:26.879385 257043 test2.go:121] reads: 0.000000 [rpc error: code = NotFound desc = The metric referenced by the provided filter is unknown. Check the metric name and labels.] | |
14:38:36.637234 257043 test2.go:98] write: 0.642316 [3.250818] | |
14:38:46.637502 257043 test2.go:98] write: 0.882290 [4.133108] | |
14:38:56.637745 257043 test2.go:98] write: 0.361853 [4.494961] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package opencensus | |
import ( | |
"context" | |
"fmt" | |
"log" | |
"math" | |
"strings" | |
"time" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM golang:1.11 as build | |
ADD . /go/src/github.com/dazwilkin/metadata | |
WORKDIR /go/src/github.com/dazwilkin/metadata | |
ARG GOFLAGS="" | |
RUN go get ${GOFLAGS} ./... | |
FROM gcr.io/distroless/base |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
apiVersion: apps/v1beta1 | |
kind: Deployment | |
metadata: | |
name: firestore-oc | |
spec: | |
replicas: 1 | |
template: | |
metadata: | |
labels: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM golang:1.11 as build | |
WORKDIR /go/src/app | |
COPY firestore.go . | |
RUN go get -d -v ./... | |
RUN go install -v ./... | |
FROM gcr.io/distroless/base |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copyright 2015 Google Inc. All rights reserved. | |
// Use of this source code is governed by the Apache 2.0 | |
// License: https://github.com/GoogleCloudPlatform/golang-samples/blob/master/LICENSE | |
package main | |
import ( | |
"context" | |
"fmt" | |
"log" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package somepackage // import "github.com/DazWilkin/go-functions/exploder" | |
import ( | |
"context" | |
"io" | |
"log" | |
"os" | |
"cloud.google.com/go/logging" | |
"cloud.google.com/go/storage" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package somepackage // import "github.com/DazWilkin/go-functions/exploder" | |
import ( | |
"context" | |
"io" | |
"log" | |
"os" | |
"cloud.google.com/go/logging" | |
"cloud.google.com/go/storage" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2018-08-31 21:39:53.672 UTC [shim] SetupChaincodeLogging -> INFO 001 Chaincode (build level: 1.2.0) starting up ... | |
2018-08-31 21:39:56.673 UTC [shim] userChaincodeStreamGetter -> ERRO 002 context deadline exceeded | |
error trying to connect to local peer | |
github.com/hyperledger/fabric/core/chaincode/shim.userChaincodeStreamGetter | |
/opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/shim/chaincode.go:111 | |
github.com/hyperledger/fabric/core/chaincode/shim.Start | |
/opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/shim/chaincode.go:150 | |
main.main | |
/chaincode/input/src/github.com/chaincode/example02/go/example02.go:195 | |
runtime.main |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2018-08-31T21:39:53.537954220Z container create 3e1b22f5cf6a3d34736d4ab32a092a02cc0bc7a0d91b9e4d5811b99ea6b3bb4f (image=dev-org1-peer0-duvall-1.0-2c49d75492ddc7b679a45ba64e03afd9394bf60f054a47519e9e275257a67d44, name=dev-org1-peer0-duvall-1.0, org.hyperledger.fabric.base.version=0.4.10, org.hyperledger.fabric.chaincode.id.name=duvall, org.hyperledger.fabric.chaincode.id.version=1.0, org.hyperledger.fabric.chaincode.type=GOLANG, org.hyperledger.fabric.version=1.2.0) | |
2018-08-31T21:39:53.542367330Z container attach 3e1b22f5cf6a3d34736d4ab32a092a02cc0bc7a0d91b9e4d5811b99ea6b3bb4f (image=dev-org1-peer0-duvall-1.0-2c49d75492ddc7b679a45ba64e03afd9394bf60f054a47519e9e275257a67d44, name=dev-org1-peer0-duvall-1.0, org.hyperledger.fabric.base.version=0.4.10, org.hyperledger.fabric.chaincode.id.name=duvall, org.hyperledger.fabric.chaincode.id.version=1.0, org.hyperledger.fabric.chaincode.type=GOLANG, org.hyperledger.fabric.version=1.2.0) | |
2018-08-31T21:39:53.552614816Z network connect 80e374472f867e87969e2e0f3b611c0481486 |