From a25fdc474a0caef23f24180a54ed2ae6627ac7af Mon Sep 17 00:00:00 2001 From: Vladislav Veselskiy Date: Wed, 5 Feb 2025 12:07:52 +0300 Subject: [PATCH] Do not export func MakeSendEndpoint. --- fcm.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fcm.go b/fcm.go index 4eb0751..46942fb 100644 --- a/fcm.go +++ b/fcm.go @@ -47,7 +47,7 @@ var ( AuthScopes = []string{"https://www.googleapis.com/auth/firebase.messaging"} ) -func MakeSendEndpoint(projectId string) string { +func makeSendEndpoint(projectId string) string { return fmt.Sprintf("https://fcm.googleapis.com/v1/projects/%s/messages:send", projectId) } @@ -88,7 +88,7 @@ type Client struct { func NewClient(projectId string, ts oauth2.TokenSource, hc *http.Client, logger logr.Logger) *Client { return &Client{ - sendEndpoint: MakeSendEndpoint(projectId), + sendEndpoint: makeSendEndpoint(projectId), ts: ts, hc: hc, logger: logger,