Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReportError ¶
func ReportError(e error)
Types ¶
type ErrorReportingProvider ¶
type ErrorReportingProvider interface {
ReportError(error)
}
type InstanceProviderFunc ¶
type InstanceProviderFunc func(string) interface{}
type LoggingProvider ¶
type LoggingProvider interface {
Log(string, ...interface{})
}
func Logger ¶
func Logger(logID string) LoggingProvider
type Platform ¶
type Platform struct {
// contains filtered or unexported fields
}
func InitPlatform ¶
func InitPlatform(ctx context.Context, opts ...PlatformOpts) (*Platform, error)
func RegisterPlatform ¶
type PlatformOpts ¶
type PlatformOpts struct {
ID string
Type ProviderType
Impl InstanceProviderFunc
}
type ProviderType ¶
type ProviderType int
const ( ProviderTypeLogger ProviderType = iota ProviderTypeErrorReporter ProviderTypeHttpContext )
func (ProviderType) String ¶
func (l ProviderType) String() string
Returns the name of a provider type
Click to show internal directories.
Click to hide internal directories.