usage

package
v0.20.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 25, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

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 LoadInstanceMetadata

func LoadInstanceMetadata(product, version string) *reportingapi.InstanceMetadata

Types

type DefaultUsageReader

type DefaultUsageReader struct {
	MetricsStorage metricsservice.StorageClient
}

func (*DefaultUsageReader) GetPayload

func (d *DefaultUsageReader) GetPayload() (map[string]string, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL