Documentation
¶
Index ¶
Constants ¶
View Source
const ( UpdatePeriod = time.Hour * 24 RcNatTraversalMinVerKey = "nat_traversal_min_version" RcTelioAnalyticsMinVerKey = "telio_analytics_min_version" RcFileSharingMinVerKey = "fileshare_min_version" // Telio remote config has field with app version e.g. telio_config_3_16_2 // (remote config field naming does not allow dots and dashes, only letters // and digits, underscores) app will try to find field corresponding to // app's version, but if exact match is not found then first older version // is chosen, if that one is also not available, then use local defaults. RcTelioConfigFieldPrefix = "telio_config_" RcNordWhisperConfigFieldPrefix = "nordWhisper_enabled_" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FirebaseService ¶
type FirebaseService struct {
// contains filtered or unexported fields
}
FirebaseService is RemoteService implementation for Firebase
func NewFirebaseService ¶
func NewFirebaseService(st string) *FirebaseService
func (*FirebaseService) FetchRemoteConfig ¶
func (fs *FirebaseService) FetchRemoteConfig() ([]byte, error)
type RConfig ¶
type RConfig struct {
// contains filtered or unexported fields
}
func NewRConfig ¶
NewRConfig creates instance of remote config
func (*RConfig) GetNordWhisperEnabled ¶
GetNordWhisperEnabled returns the NordWhisper configuration flag from remote config
type RemoteConfigGetter ¶
type RemoteConfigGetter interface { GetTelioConfig(version string) (string, error) GetNordWhisperEnabled(version string) (bool, error) }
RemoteConfigGetter get values from remote config
type RemoteConfigService ¶
RemoteConfigService interface
type ServiceAccount ¶
type ServiceAccount struct { Type string `json:"type"` ProjectID string `json:"project_id"` PrivateKeyID string `json:"private_key_id"` PrivateKey string `json:"private_key"` ClientEmail string `json:"client_email"` ClientID string `json:"client_id"` AuthURI string `json:"auth_uri"` TokenURI string `json:"token_uri"` AuthProviderX509CertURL string `json:"auth_provider_x509_cert_url"` ClientX509CertURL string `json:"client_x509_cert_url"` }
Click to show internal directories.
Click to hide internal directories.