Documentation ¶
Index ¶
Constants ¶
View Source
const ( // #nosec G101 -- This is just the env var name APIKeyEnvVar = "PREFAB_API_KEY" APIURLVar = "PREFAB_API_URL" )
Variables ¶
View Source
var ContextTelemetryModes = struct { PeriodicExample ContextTelemetryMode Shapes ContextTelemetryMode None ContextTelemetryMode }{ PeriodicExample: "periodic_example", Shapes: "shapes", None: "", }
Functions ¶
func GetDefaultAPIURLs ¶
func GetDefaultAPIURLs() []string
Types ¶
type ConfigSource ¶
func GetDefaultConfigSources ¶
func GetDefaultConfigSources() []ConfigSource
func ParseConfigSource ¶
func ParseConfigSource(rawSource string) (ConfigSource, error)
type ContextTelemetryMode ¶ added in v0.0.7
type ContextTelemetryMode string
type OnInitializationFailure ¶
type OnInitializationFailure int
const ( ReturnError OnInitializationFailure = iota // ReturnError = 0 ReturnNilMatch // ReturnNilMatch = 1 )
type Options ¶
type Options struct { GlobalContext *contexts.ContextSet Configs map[string]interface{} APIKey string APIURLs []string Sources []ConfigSource EnvironmentNames []string ProjectEnvID int64 InitializationTimeoutSeconds float64 OnInitializationFailure OnInitializationFailure ContextTelemetryMode ContextTelemetryMode CollectEvaluationSummaries bool TelemetrySyncInterval time.Duration TelemetryHost string InstanceHash string }
func GetDefaultOptions ¶
func GetDefaultOptions() Options
func (*Options) APIKeySettingOrEnvVar ¶
func (*Options) PrefabAPIURLEnvVarOrSetting ¶
Click to show internal directories.
Click to hide internal directories.