Documentation
¶
Index ¶
Constants ¶
View Source
const BaseAPIURL = "https://api.flagsmith.com/api/v1"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) GetEnvironmentFeatureState ¶
func (c *Client) GetEnvironmentFeatureState(environmentAPIKey string, featureName string) (*FeatureState, error)
Get the feature state associated with the environment for a given feature
func (*Client) UpdateFeatureState ¶
func (c *Client) UpdateFeatureState(featureState *FeatureState) (*FeatureState, error)
Update the feature state
type FeatureState ¶
type FeatureState struct {
ID int64 `json:"id"`
FeatureStateValue *FeatureStateValue `json:"feature_state_value"`
Enabled bool `json:"enabled"`
Feature int64 `json:"feature"`
Environment int64 `json:"environment"`
}
func (*FeatureState) UnmarshalJSON ¶
func (fs *FeatureState) UnmarshalJSON(data []byte) error
Click to show internal directories.
Click to hide internal directories.
