google

package
v2.0.2 Latest Latest
Warning

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

Go to latest
Published: May 2, 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.WithProvider("platform.google.errorreporting", platform.ProviderTypeErrorReporter, NewErrorReporter)
	GoogleCloudTaskConfig      platform.PlatformOpts = platform.WithProvider("platform.google.task", platform.ProviderTypeTask, NewCloudTaskProvider)
	GoogleCloudLoggingConfig   platform.PlatformOpts = platform.WithProvider("platform.google.logger", platform.ProviderTypeLogger, NewGoogleCloudLoggingProvider)
	GoogleCloudMetricsConfig   platform.PlatformOpts = platform.WithProvider("platform.google.metrics", platform.ProviderTypeMetrics, NewGoogleCloudMetricsProvider)
	// AppEngine
	AppEngineContextConfig platform.PlatformOpts = platform.WithProvider("platform.google.context", platform.ProviderTypeHttpContext, NewAppEngineContextProvider)
)

Functions

func InitDefaultGoogleProviders

func InitDefaultGoogleProviders()

func NewAppEngineContextProvider

func NewAppEngineContextProvider(ID string) interface{}

func NewCloudTaskProvider

func NewCloudTaskProvider(ID string) interface{}

func NewErrorReporter

func NewErrorReporter(ID string) interface{}

func NewGoogleCloudLoggingProvider

func NewGoogleCloudLoggingProvider(ID string) interface{}

func NewGoogleCloudMetricsProvider

func NewGoogleCloudMetricsProvider(ID string) interface{}

Types

type CloudTasks

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

func (*CloudTasks) CreateHttpTask

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

type GoogleAppEngine struct {
}

func (*GoogleAppEngine) NewHttpContext

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

type GoogleCloudLogger

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

func (*GoogleCloudLogger) Log

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

func (*GoogleCloudLogger) LogWithLevel

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

func (*GoogleCloudLogger) Meter

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