Implement FCM
This commit is contained in:
@@ -31,6 +31,7 @@ type Config struct {
|
||||
Log Log `mapstructure:"log"`
|
||||
S3Config S3Config `mapstructure:"s3"`
|
||||
Fonnte Fonnte `mapstructure:"fonnte"`
|
||||
Firebase Firebase `mapstructure:"firebase"`
|
||||
}
|
||||
|
||||
var (
|
||||
@@ -95,3 +96,7 @@ func (c *Config) LogFormat() string {
|
||||
func (c *Config) GetFonnte() *Fonnte {
|
||||
return &c.Fonnte
|
||||
}
|
||||
|
||||
func (c *Config) GetFirebase() *Firebase {
|
||||
return &c.Firebase
|
||||
}
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
package config
|
||||
|
||||
type Firebase struct {
|
||||
CredentialsFile string `mapstructure:"credentials_file"`
|
||||
}
|
||||
|
||||
func (f *Firebase) GetCredentialsFile() string {
|
||||
return f.CredentialsFile
|
||||
}
|
||||
Reference in New Issue
Block a user