diff options
Diffstat (limited to 'bommom.go')
-rw-r--r-- | bommom.go | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -28,6 +28,7 @@ var ( listenPort = flag.Uint("port", 7070, "port to listen on (HTTP serve)") listenHost = flag.String("host", "", "hostname to listen on (HTTP serve)") sessionSecret = flag.String("sessionSecret", "12345", "cookie session secret") + octoApiKey = flag.String("octopartApiKey", "", "octopart.com API key (for pricing info)") ) func main() { @@ -88,6 +89,10 @@ func openAuthStore() { auth = DummyAuth(true) } +func openPricingSource() { + pricingSource = NewOctopartClient(*octoApiKey) +} + func dumpOut(fname string, bm *BomMeta, b *Bom) { var outFile io.Writer if fname == "" { |