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
| // Sample program for OpenCensus tracing in the Cloud Spanner client. | |
| // The database specified by the flags should have two columns, | |
| // Key and Value, both strings. | |
| package main | |
| import ( | |
| "flag" | |
| "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
| // Tool to publish messages at intervals, or receive messages. | |
| package main | |
| import ( | |
| "flag" | |
| "fmt" | |
| "log" | |
| "os" | |
| "sync/atomic" | |
| "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
| package main | |
| import ( | |
| "flag" | |
| "io" | |
| "io/ioutil" | |
| "log" | |
| "net/http" | |
| "net/url" | |
| "sync" |
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
| // sub1 receives one message at a time from a subscription. | |
| package main | |
| import ( | |
| "context" | |
| "flag" | |
| "log" | |
| "math/rand" | |
| "time" |
NewerOlder