Versions in this module Expand all Collapse all v1 v1.0.0 Aug 25, 2023 Changes in this version + func GetTargets(ctx context.Context, ...) ([]domain.Target, error) + type EnvironmentDetails struct + APIKey string + EnvironmentID string + EnvironmentIdentifier string + HashedAPIKeys []string + ProjectIdentifier string + Targets []domain.Target + Token string + type LocalConfig struct + func NewLocalConfig(fs fs.FS) (LocalConfig, error) + func (f LocalConfig) AuthConfig() map[domain.AuthAPIKey]string + func (f LocalConfig) FeatureFlag() map[domain.FeatureFlagKey]interface{} + func (f LocalConfig) Segments() map[domain.SegmentKey]interface{} + func (f LocalConfig) Targets() map[domain.TargetKey]interface{} + type RemoteConfig struct + func NewRemoteConfig(ctx context.Context, accountIdentifier string, orgIdentifier string, ...) (RemoteConfig, error) + func (r RemoteConfig) AuthConfig() map[domain.AuthAPIKey]string + func (r RemoteConfig) EnvInfo() map[string]EnvironmentDetails + func (r RemoteConfig) TargetConfig() map[domain.TargetKey]interface{} + func (r RemoteConfig) Tokens() map[string]string + type RemoteOption func(r *RemoteConfig) + func WithFetchTargets(fetchTargets bool) RemoteOption + func WithLogger(l log.Logger) RemoteOption