Documentation
¶
Index ¶
Constants ¶
View Source
const ( // this is the url for a grpc service // note that grpc name resolution is a little different than for a normal HTTP/1.1 service // https://github.com/grpc/grpc/blob/master/doc/naming.md ReportingServiceUrl = "reporting.corp.solo.io:443" // report once per period ReportingPeriod = time.Hour * 24 )
Variables ¶
This section is empty.
Functions ¶
func BuildProductMetadata ¶
func BuildProductMetadata(product, version string) *reportingapi.Product
Types ¶
type CliUsageReader ¶
type CliUsageReader struct { }
func (*CliUsageReader) GetPayload ¶
func (c *CliUsageReader) GetPayload() (map[string]string, error)
when reporting usage, also include the args that glooctl was invoked with
type DefaultUsageReader ¶
type DefaultUsageReader struct {
MetricsStorage metricsservice.StorageClient
}
func (*DefaultUsageReader) GetPayload ¶
func (d *DefaultUsageReader) GetPayload() (map[string]string, error)
Click to show internal directories.
Click to hide internal directories.