Implement FCM

This commit is contained in:
2026-05-09 14:11:21 +07:00
parent 07b186c986
commit 6a2ce75a8e
18 changed files with 397 additions and 44 deletions
+5
View File
@@ -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
}
+9
View File
@@ -0,0 +1,9 @@
package config
type Firebase struct {
CredentialsFile string `mapstructure:"credentials_file"`
}
func (f *Firebase) GetCredentialsFile() string {
return f.CredentialsFile
}