Documentation
¶
Overview ¶
Package featureflags shares connector-service flags without requiring telemetry or a session.
Index ¶
- type Cache
- func (c *Cache) Acquire(host string, workspaceID ...string) *featureFlagContext
- func (c *Cache) GetBool(ctx context.Context, request Request, name string) (bool, error)
- func (c *Cache) GetDouble(ctx context.Context, request Request, name string) (float64, error)
- func (c *Cache) GetInt32(ctx context.Context, request Request, name string) (int32, error)
- func (c *Cache) GetInt64(ctx context.Context, request Request, name string) (int64, error)
- func (c *Cache) GetString(ctx context.Context, request Request, name string) (string, error)
- func (c *Cache) GetStringList(ctx context.Context, request Request, name string) ([]string, error)
- func (c *Cache) Release(host string, workspaceID ...string)
- type Request
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
Cache shares values per workspace (normalized host when workspace ID is unavailable). Acquire a reference before reading, and Release it when the consumer closes.
func GetCache ¶
func GetCache() *Cache
GetCache returns the process-wide cache shared by driver consumers.
func (*Cache) GetBool ¶
GetBool defaults to false for absent/null flags; malformed values return false and an error.
func (*Cache) GetStringList ¶
Click to show internal directories.
Click to hide internal directories.