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} // 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{}
Types ¶
type CloudTasks ¶ added in v0.9.3
type CloudTasks struct {
// contains filtered or unexported fields
}
func (*CloudTasks) CreateHttpTask ¶ added in v0.9.3
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)
Click to show internal directories.
Click to hide internal directories.