Documentation ¶
Index ¶
- type Flag
- type Flags
- type IEvaluator
- type JSONEvaluator
- func (je *JSONEvaluator) GetState() (string, error)
- func (je *JSONEvaluator) ResolveBooleanValue(flagKey string, context *structpb.Struct) (value bool, variant string, reason string, err error)
- func (je *JSONEvaluator) ResolveNumberValue(flagKey string, context *structpb.Struct) (value float32, variant string, reason string, err error)
- func (je *JSONEvaluator) ResolveObjectValue(flagKey string, context *structpb.Struct) (value map[string]any, variant string, reason string, err error)
- func (je *JSONEvaluator) ResolveStringValue(flagKey string, context *structpb.Struct) (value string, variant string, reason string, err error)
- func (je *JSONEvaluator) SetState(state string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IEvaluator ¶
type IEvaluator interface { GetState() (string, error) SetState(state string) error ResolveBooleanValue( flagKey string, context *structpb.Struct) (value bool, variant string, reason string, err error) ResolveStringValue( flagKey string, context *structpb.Struct) (value string, variant string, reason string, err error) ResolveNumberValue(flagKey string, context *structpb.Struct) (value float32, variant string, reason string, err error) ResolveObjectValue( flagKey string, context *structpb.Struct) (value map[string]any, variant string, reasons string, err error) }
type JSONEvaluator ¶ added in v0.0.3
func (*JSONEvaluator) GetState ¶ added in v0.0.3
func (je *JSONEvaluator) GetState() (string, error)
func (*JSONEvaluator) ResolveBooleanValue ¶ added in v0.0.3
func (*JSONEvaluator) ResolveNumberValue ¶ added in v0.0.3
func (*JSONEvaluator) ResolveObjectValue ¶ added in v0.0.3
func (*JSONEvaluator) ResolveStringValue ¶ added in v0.0.3
func (*JSONEvaluator) SetState ¶ added in v0.0.3
func (je *JSONEvaluator) SetState(state string) error
Click to show internal directories.
Click to hide internal directories.