MCPcopy Index your code
hub / github.com/NdoleStudio/httpsms / CloudTasksClient

Method CloudTasksClient

api/pkg/di/container.go:483–492  ·  view source on GitHub ↗

CloudTasksClient creates a new instance of cloudtasks.Client

()

Source from the content-addressed store, hash-verified

481
482// CloudTasksClient creates a new instance of cloudtasks.Client
483func (container *Container) CloudTasksClient() (client *cloudtasks.Client) {
484 container.logger.Debug(fmt.Sprintf("creating %T", client))
485
486 client, err := cloudtasks.NewClient(context.Background(), option.WithCredentialsJSON(container.FirebaseCredentials()))
487 if err != nil {
488 container.logger.Fatal(stacktrace.Propagate(err, "cannot initialize cloud tasks client"))
489 }
490
491 return client
492}
493
494// EventsQueueConfiguration creates a new instance of services.PushQueueConfig
495func (container *Container) EventsQueueConfiguration() (config services.PushQueueConfig) {

Callers 1

CloudTaskEventsQueueMethod · 0.95

Calls 3

FirebaseCredentialsMethod · 0.95
DebugMethod · 0.65
FatalMethod · 0.65

Tested by

no test coverage detected