usage

package
v1.8.0-beta5 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2021 License: Apache-2.0 Imports: 7 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 BuildProductMetadata added in v1.0.0

func BuildProductMetadata(product, version string) *reportingapi.Product

Types

type CliUsageReader added in v1.0.0

type CliUsageReader struct {
}

func (*CliUsageReader) GetPayload added in v1.0.0

func (c *CliUsageReader) GetPayload(ctx context.Context) (map[string]string, error)

when reporting usage, also include the args that glooctl was invoked with

type DefaultUsageReader

type DefaultUsageReader struct {
}

func (*DefaultUsageReader) GetPayload

func (d *DefaultUsageReader) GetPayload(ctx context.Context) (map[string]string, error)

Now that this implementation of GetPayload no longer requires a context, the context isn't used by any GetPayload implementation. However, we opted to leave it as an input, since there's a chance we might need it in the future.

Jump to

Keyboard shortcuts

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