google

package
v0.9.5 Latest Latest
Warning

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

Go to latest
Published: May 1, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Google Cloud Platform
	GoogleErrorReportingConfig platform.PlatformOpts = platform.PlatformOpts{ID: "platform.google.errorreporting", Type: platform.ProviderTypeErrorReporter, Impl: NewErrorReporter}
	GoogleCloudTaskConfig      platform.PlatformOpts = platform.PlatformOpts{ID: "platform.google.task", Type: platform.ProviderTypeTask, Impl: NewCloudTaskProvider}
	GoogleCloudLoggingConfig   platform.PlatformOpts = platform.PlatformOpts{ID: "platform.google.logger", Type: platform.ProviderTypeLogger, Impl: NewGoogleCloudLoggingProvider}
	GoogleCloudMetricsConfig   platform.PlatformOpts = platform.PlatformOpts{ID: "platform.google.metrics", Type: platform.ProviderTypeMetrics, Impl: NewGoogleCloudMetricsProvider}

	// Google AppEngine
	AppEngineContextConfig platform.PlatformOpts = platform.PlatformOpts{ID: "platform.google.context", Type: platform.ProviderTypeHttpContext, Impl: NewAppEngineContextProvider}
)

Functions

func NewAppEngineContextProvider

func NewAppEngineContextProvider(ID string) interface{}

func NewCloudTaskProvider added in v0.9.3

func NewCloudTaskProvider(ID string) interface{}

func NewErrorReporter

func NewErrorReporter(ID string) interface{}

func NewGoogleCloudLoggingProvider added in v0.9.4

func NewGoogleCloudLoggingProvider(ID string) interface{}

func NewGoogleCloudMetricsProvider added in v0.9.5

func NewGoogleCloudMetricsProvider(ID string) interface{}

Types

type CloudTasks added in v0.9.3

type CloudTasks struct {
	// contains filtered or unexported fields
}

func (*CloudTasks) CreateHttpTask added in v0.9.3

func (t *CloudTasks) CreateHttpTask(ctx context.Context, task tasks.HttpTask) error

type ErrorReporter

type ErrorReporter struct {
	// contains filtered or unexported fields
}

func (*ErrorReporter) ReportError

func (er *ErrorReporter) ReportError(e error)

type GoogleAppEngine added in v0.9.4

type GoogleAppEngine struct {
}

func (*GoogleAppEngine) NewHttpContext added in v0.9.4

func (c *GoogleAppEngine) NewHttpContext(req *http.Request) context.Context

type GoogleCloudLogger added in v0.9.4

type GoogleCloudLogger struct {
	// contains filtered or unexported fields
}

func (*GoogleCloudLogger) Log added in v0.9.4

func (l *GoogleCloudLogger) Log(msg string, keyValuePairs ...string)

func (*GoogleCloudLogger) LogWithLevel added in v0.9.4

func (l *GoogleCloudLogger) LogWithLevel(lvl lp.Severity, msg string, keyValuePairs ...string)

func (*GoogleCloudLogger) Meter added in v0.9.5

func (l *GoogleCloudLogger) Meter(ctx context.Context, metric string, args ...string)

Jump to

Keyboard shortcuts

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