Documentation ¶
Index ¶
- Variables
- func InitGoogleCloudPlatformProviders()
- func NewAppEngineContextProvider() interface{}
- func NewCloudTasksProvider() interface{}
- func NewStackdriverErrorReportingProvider() interface{}
- func NewStackdriverLoggingProvider() interface{}
- func NewStackdriverMetricsProvider() interface{}
- type AppEngineContextImpl
- type CloudTaskProviderImpl
- type GoogleErrorReportingProviderImpl
- type StackdriverLoggingProviderImpl
- func (c *StackdriverLoggingProviderImpl) Close() error
- func (l *StackdriverLoggingProviderImpl) Log(msg string, keyValuePairs ...string)
- func (l *StackdriverLoggingProviderImpl) LogWithLevel(lvl provider.Severity, msg string, keyValuePairs ...string)
- func (l *StackdriverLoggingProviderImpl) Meter(ctx context.Context, metric string, args ...string)
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
type GoogleErrorReportingProviderImpl ¶ added in v2.2.0
type GoogleErrorReportingProviderImpl struct {
// contains filtered or unexported fields
}
func (*GoogleErrorReportingProviderImpl) Close ¶ added in v2.2.0
func (c *GoogleErrorReportingProviderImpl) Close() error
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 (c *StackdriverLoggingProviderImpl) Close() error
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)
Click to show internal directories.
Click to hide internal directories.