Do not export func MakeSendEndpoint.
This commit is contained in:
parent
c76b172a3a
commit
a25fdc474a
4
fcm.go
4
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,
|
||||
|
|
Loading…
Reference in New Issue