google

package
v2.7.1 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Google Cloud Platform
	GoogleErrorReportingConfig provider.ProviderConfig = provider.WithProvider("platform.google.errorreporting", provider.TypeErrorReporter, NewStackdriverErrorReportingProvider)
	GoogleCloudTaskConfig      provider.ProviderConfig = provider.WithProvider("platform.google.task", provider.TypeTask, NewCloudTasksProvider)
	GoogleCloudLoggingConfig   provider.ProviderConfig = provider.WithProvider("platform.google.logger", provider.TypeLogger, NewStackdriverLoggingProvider)
	GoogleCloudMetricsConfig   provider.ProviderConfig = provider.WithProvider("platform.google.metrics", provider.TypeMetrics, NewStackdriverMetricsProvider)
	// AppEngine
	AppEngineContextConfig provider.ProviderConfig = provider.WithProvider("platform.google.context", provider.TypeHttpContext, NewAppEngineContextProvider)
)

Functions

func InitGoogleCloudPlatformProviders added in v2.2.0

func InitGoogleCloudPlatformProviders()

func NewAppEngineContextProvider

func NewAppEngineContextProvider() interface{}

func NewCloudTasksProvider added in v2.2.0

func NewCloudTasksProvider() interface{}

func NewStackdriverErrorReportingProvider added in v2.2.0

func NewStackdriverErrorReportingProvider() interface{}

func NewStackdriverLoggingProvider added in v2.2.0

func NewStackdriverLoggingProvider() interface{}

func NewStackdriverMetricsProvider added in v2.2.0

func NewStackdriverMetricsProvider() interface{}

Types

type AppEngineContextImpl added in v2.2.0

type AppEngineContextImpl struct {
}

func (*AppEngineContextImpl) Close added in v2.2.0

func (c *AppEngineContextImpl) Close() error

func (*AppEngineContextImpl) NewHttpContext added in v2.2.0

func (c *AppEngineContextImpl) NewHttpContext(req *h.Request) context.Context

type CloudTaskProviderImpl added in v2.2.0

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

func (*CloudTaskProviderImpl) Close added in v2.2.0

func (c *CloudTaskProviderImpl) Close() error

func (*CloudTaskProviderImpl) CreateHttpTask added in v2.2.0

func (t *CloudTaskProviderImpl) CreateHttpTask(ctx context.Context, task provider.HttpTask) error

type GoogleErrorReportingProviderImpl added in v2.2.0

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

func (*GoogleErrorReportingProviderImpl) Close added in v2.2.0

func (*GoogleErrorReportingProviderImpl) ReportError added in v2.2.0

func (er *GoogleErrorReportingProviderImpl) ReportError(e error)

type StackdriverLoggingProviderImpl added in v2.2.0

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

func (*StackdriverLoggingProviderImpl) Close added in v2.2.0

func (*StackdriverLoggingProviderImpl) Log added in v2.2.0

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

func (*StackdriverLoggingProviderImpl) LogWithLevel added in v2.2.0

func (l *StackdriverLoggingProviderImpl) LogWithLevel(lvl provider.Severity, msg string, keyValuePairs ...string)

func (*StackdriverLoggingProviderImpl) Meter added in v2.2.0

func (l *StackdriverLoggingProviderImpl) 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