This file is indexed.

/usr/share/gocode/src/github.com/influxdata/usage-client/v1/usage.go is in golang-github-influxdb-usage-client-dev 0.0~git20151204.0.475977e-5.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package client

import (
	"encoding/json"
	"fmt"
)

type Usage struct {
	Data    []UsageData
	Product string `json:"-"`
}

func (u Usage) Path() string {
	return fmt.Sprintf("/usage/%s", u.Product)
}

func (u Usage) MarshalJSON() ([]byte, error) {
	return json.Marshal(u.Data)
}

type UsageData struct {
	Tags   Tags   `json:"tags"`
	Values Values `json:"values"`
}