Documentation ¶
Index ¶
Constants ¶
View Source
const ( DatastoreProvider = "DATASTORE" StorageProvider = "STORAGE" ErroReportingProvider = "ERROR" LoggingProvider = "LOGGING" MetricsProvider = "METRICS" )
Variables ¶
This section is empty.
Functions ¶
func ReportError ¶
func ReportError(err error)
Types ¶
type Client ¶
type Client struct { // Datastore // Storage // ErrorReporting provider ErrorReportingImpl errorreporting.ErrorReportingFunc }
func NewClient ¶
func NewClient(ctx context.Context, with ...ProviderImplementation) (*Client, error)
NewClient initializes a new platform client and initializes it with the given provider implemenations
func NewDefaultClient ¶
func NewDefaultClient(ctx context.Context, with ...ProviderImplementation) (*Client, error)
NewDefaultClient initializes a new platform client and initializes it with default providers
func RegisterGlobally ¶
RegisterGlobally replaces the current global platform client with a new one
type ProviderImplementation ¶
Click to show internal directories.
Click to hide internal directories.