Skip to content

Instantly share code, notes, and snippets.

Working from home

Ofonime Francis ofonimefrancis

Working from home
Block or report user

Report or block ofonimefrancis

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View queryStruct
type Query struct {
Command string
Database string
RetentionPolicy string
Precision string
Chunked bool
ChunkSize int
Parameters map[string]interface{}
View retrieveOrders
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)
View go
package main
import (
client ""
const (
You can’t perform that action at this time.