Delete unused type ClientConfig.
This commit is contained in:
parent
eb024fd00c
commit
c76b172a3a
5
fcm.go
5
fcm.go
|
@ -79,9 +79,6 @@ func ReadCredentialsFromFile(filename string) (Credentials, error) {
|
||||||
return c, nil
|
return c, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
type ClientConfig struct {
|
|
||||||
}
|
|
||||||
|
|
||||||
type Client struct {
|
type Client struct {
|
||||||
sendEndpoint string
|
sendEndpoint string
|
||||||
ts oauth2.TokenSource
|
ts oauth2.TokenSource
|
||||||
|
@ -89,7 +86,7 @@ type Client struct {
|
||||||
logger logr.Logger
|
logger logr.Logger
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewClient(projectId string, cfg ClientConfig, ts oauth2.TokenSource, hc *http.Client, logger logr.Logger) *Client {
|
func NewClient(projectId string, ts oauth2.TokenSource, hc *http.Client, logger logr.Logger) *Client {
|
||||||
return &Client{
|
return &Client{
|
||||||
sendEndpoint: MakeSendEndpoint(projectId),
|
sendEndpoint: MakeSendEndpoint(projectId),
|
||||||
ts: ts,
|
ts: ts,
|
||||||
|
|
Loading…
Reference in New Issue