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,