Do not export func MakeSendEndpoint.

This commit is contained in:
Владислав Весельский 2025-02-05 12:07:52 +03:00
parent c76b172a3a
commit a25fdc474a
1 changed files with 2 additions and 2 deletions

4
fcm.go
View File

@ -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,