This file contains 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
mainWindow.loadFile(path.join(__dirname, '/index.html')) |
This file contains 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
{ | |
"name": "electron-kickstarter", | |
"version": "1.0.0", | |
"main": "./src/main-process/main.js", | |
"scripts": { | |
"start": "electron .", | |
"dev": "electron . --debug" | |
} | |
} |
This file contains 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
/** | |
* @fileOverview Class to validate user input for order | |
* @class Orders validator | |
* @exports ValidateOrders | |
*/ | |
class ValidateOrder { | |
/** | |
* validate orders input validity | |
* @param {Object} request |
This file contains 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 logger | |
import ( | |
"path" | |
"runtime" | |
"github.com/Abramovic/logrus_influxdb" | |
client "github.com/influxdata/influxdb/client/v2" | |
"github.com/sirupsen/logrus" | |
) |
This file contains 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
import ( | |
"path" | |
"runtime" | |
"github.com/Abramovic/logrus_influxdb" | |
client "github.com/influxdata/influxdb/client/v2" | |
"github.com/sirupsen/logrus" | |
) | |
var log *logrus.Logger |
This file contains 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
type Query struct { | |
Command string | |
Database string | |
RetentionPolicy string | |
Precision string | |
Chunked bool | |
ChunkSize int | |
Parameters map[string]interface{} | |
} |
This file contains 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
func retrieveUserOrders(influxClient client.Client, userID string) { | |
query := client.Query{ | |
Command: fmt.Sprintf("select * from orders where user_id = '%s'", userID), | |
Database: "tutorial", | |
} | |
resp, err := influxClient.Query(query) | |
if err != nil { | |
log.Fatalf("%v", err) | |
} |
This file contains 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 ( | |
"log" | |
"time" | |
client "github.com/influxdata/influxdb/client/v2" | |
) | |
const ( |
NewerOlder