Versions in this module Expand all Collapse all v1 v1.0.0 Aug 25, 2023 Changes in this version + const ApiKeyAuthScopes + const BearerAuthScopes + func NewAuthenticateRequest(server string, body AuthenticateJSONRequestBody) (*http.Request, error) + func NewAuthenticateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) + func NewGetAllSegmentsRequest(server string, environmentUUID string, params *GetAllSegmentsParams) (*http.Request, error) + func NewGetEvaluationByIdentifierRequest(server string, environmentUUID string, target string, feature string, ...) (*http.Request, error) + func NewGetEvaluationsRequest(server string, environmentUUID string, target string, ...) (*http.Request, error) + func NewGetFeatureConfigByIdentifierRequest(server string, environmentUUID string, identifier string, ...) (*http.Request, error) + func NewGetFeatureConfigRequest(server string, environmentUUID string, params *GetFeatureConfigParams) (*http.Request, error) + func NewGetSegmentByIdentifierRequest(server string, environmentUUID string, identifier string, ...) (*http.Request, error) + func NewPostMetricsRequest(server string, environmentUUID EnvironmentPathParam, params *PostMetricsParams, ...) (*http.Request, error) + func NewPostMetricsRequestWithBody(server string, environmentUUID EnvironmentPathParam, params *PostMetricsParams, ...) (*http.Request, error) + func NewStreamRequest(server string, params *StreamParams) (*http.Request, error) + type AuthenticateJSONBody = AuthenticationRequest + type AuthenticateJSONRequestBody = AuthenticateJSONBody + type AuthenticateResponse struct + Body []byte + HTTPResponse *http.Response + JSON200 *AuthenticationResponse + JSON401 *Error + JSON403 *Error + JSON404 *Error + JSON500 *Error + func ParseAuthenticateResponse(rsp *http.Response) (*AuthenticateResponse, error) + func (r AuthenticateResponse) Status() string + func (r AuthenticateResponse) StatusCode() int + type AuthenticationRequest struct + ApiKey string + Target ... + type AuthenticationResponse struct + AuthToken string + type Clause struct + Attribute string + Id *string + Negate bool + Op string + Values []string + type Client struct + Client HttpRequestDoer + RequestEditors []RequestEditorFn + Server string + func NewClient(server string, opts ...ClientOption) (*Client, error) + func (c *Client) Authenticate(ctx context.Context, body AuthenticateJSONRequestBody, ...) (*http.Response, error) + func (c *Client) AuthenticateWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error) + func (c *Client) GetAllSegments(ctx context.Context, environmentUUID string, params *GetAllSegmentsParams, ...) (*http.Response, error) + func (c *Client) GetEvaluationByIdentifier(ctx context.Context, environmentUUID string, target string, feature string, ...) (*http.Response, error) + func (c *Client) GetEvaluations(ctx context.Context, environmentUUID string, target string, ...) (*http.Response, error) + func (c *Client) GetFeatureConfig(ctx context.Context, environmentUUID string, params *GetFeatureConfigParams, ...) (*http.Response, error) + func (c *Client) GetFeatureConfigByIdentifier(ctx context.Context, environmentUUID string, identifier string, ...) (*http.Response, error) + func (c *Client) GetSegmentByIdentifier(ctx context.Context, environmentUUID string, identifier string, ...) (*http.Response, error) + func (c *Client) PostMetrics(ctx context.Context, environmentUUID EnvironmentPathParam, ...) (*http.Response, error) + func (c *Client) PostMetricsWithBody(ctx context.Context, environmentUUID EnvironmentPathParam, ...) (*http.Response, error) + func (c *Client) Stream(ctx context.Context, params *StreamParams, reqEditors ...RequestEditorFn) (*http.Response, error) + type ClientInterface interface + Authenticate func(ctx context.Context, body AuthenticateJSONRequestBody, ...) (*http.Response, error) + AuthenticateWithBody func(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error) + GetAllSegments func(ctx context.Context, environmentUUID string, params *GetAllSegmentsParams, ...) (*http.Response, error) + GetEvaluationByIdentifier func(ctx context.Context, environmentUUID string, target string, feature string, ...) (*http.Response, error) + GetEvaluations func(ctx context.Context, environmentUUID string, target string, ...) (*http.Response, error) + GetFeatureConfig func(ctx context.Context, environmentUUID string, params *GetFeatureConfigParams, ...) (*http.Response, error) + GetFeatureConfigByIdentifier func(ctx context.Context, environmentUUID string, identifier string, ...) (*http.Response, error) + GetSegmentByIdentifier func(ctx context.Context, environmentUUID string, identifier string, ...) (*http.Response, error) + PostMetrics func(ctx context.Context, environmentUUID EnvironmentPathParam, ...) (*http.Response, error) + PostMetricsWithBody func(ctx context.Context, environmentUUID EnvironmentPathParam, ...) (*http.Response, error) + Stream func(ctx context.Context, params *StreamParams, reqEditors ...RequestEditorFn) (*http.Response, error) + type ClientOption func(*Client) error + func WithBaseURL(baseURL string) ClientOption + func WithHTTPClient(doer HttpRequestDoer) ClientOption + func WithRequestEditorFn(fn RequestEditorFn) ClientOption + type ClientWithResponses struct + func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error) + func (c *ClientWithResponses) AuthenticateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*AuthenticateResponse, error) + func (c *ClientWithResponses) AuthenticateWithResponse(ctx context.Context, body AuthenticateJSONRequestBody, ...) (*AuthenticateResponse, error) + func (c *ClientWithResponses) GetAllSegmentsWithResponse(ctx context.Context, environmentUUID string, params *GetAllSegmentsParams, ...) (*GetAllSegmentsResponse, error) + func (c *ClientWithResponses) GetEvaluationByIdentifierWithResponse(ctx context.Context, environmentUUID string, target string, feature string, ...) (*GetEvaluationByIdentifierResponse, error) + func (c *ClientWithResponses) GetEvaluationsWithResponse(ctx context.Context, environmentUUID string, target string, ...) (*GetEvaluationsResponse, error) + func (c *ClientWithResponses) GetFeatureConfigByIdentifierWithResponse(ctx context.Context, environmentUUID string, identifier string, ...) (*GetFeatureConfigByIdentifierResponse, error) + func (c *ClientWithResponses) GetFeatureConfigWithResponse(ctx context.Context, environmentUUID string, params *GetFeatureConfigParams, ...) (*GetFeatureConfigResponse, error) + func (c *ClientWithResponses) GetSegmentByIdentifierWithResponse(ctx context.Context, environmentUUID string, identifier string, ...) (*GetSegmentByIdentifierResponse, error) + func (c *ClientWithResponses) PostMetricsWithBodyWithResponse(ctx context.Context, environmentUUID EnvironmentPathParam, ...) (*PostMetricsResponse, error) + func (c *ClientWithResponses) PostMetricsWithResponse(ctx context.Context, environmentUUID EnvironmentPathParam, ...) (*PostMetricsResponse, error) + func (c *ClientWithResponses) StreamWithResponse(ctx context.Context, params *StreamParams, reqEditors ...RequestEditorFn) (*StreamResponse, error) + type ClientWithResponsesInterface interface + AuthenticateWithBodyWithResponse func(ctx context.Context, contentType string, body io.Reader, ...) (*AuthenticateResponse, error) + AuthenticateWithResponse func(ctx context.Context, body AuthenticateJSONRequestBody, ...) (*AuthenticateResponse, error) + GetAllSegmentsWithResponse func(ctx context.Context, environmentUUID string, params *GetAllSegmentsParams, ...) (*GetAllSegmentsResponse, error) + GetEvaluationByIdentifierWithResponse func(ctx context.Context, environmentUUID string, target string, feature string, ...) (*GetEvaluationByIdentifierResponse, error) + GetEvaluationsWithResponse func(ctx context.Context, environmentUUID string, target string, ...) (*GetEvaluationsResponse, error) + GetFeatureConfigByIdentifierWithResponse func(ctx context.Context, environmentUUID string, identifier string, ...) (*GetFeatureConfigByIdentifierResponse, error) + GetFeatureConfigWithResponse func(ctx context.Context, environmentUUID string, params *GetFeatureConfigParams, ...) (*GetFeatureConfigResponse, error) + GetSegmentByIdentifierWithResponse func(ctx context.Context, environmentUUID string, identifier string, ...) (*GetSegmentByIdentifierResponse, error) + PostMetricsWithBodyWithResponse func(ctx context.Context, environmentUUID EnvironmentPathParam, ...) (*PostMetricsResponse, error) + PostMetricsWithResponse func(ctx context.Context, environmentUUID EnvironmentPathParam, ...) (*PostMetricsResponse, error) + StreamWithResponse func(ctx context.Context, params *StreamParams, reqEditors ...RequestEditorFn) (*StreamResponse, error) + type ClusterQueryOptionalParam = string + type Distribution struct + BucketBy string + Variations []WeightedVariation + type EnvironmentPathParam = string + type Error struct + Code string + Details *map[string]interface{} + Message string + type Evaluation struct + Flag string + Identifier *string + Kind string + Value string + type Evaluations = []Evaluation + type FeatureConfig struct + DefaultServe Serve + Environment string + Feature string + Kind FeatureConfigKind + OffVariation string + Prerequisites *[]Prerequisite + Project string + Rules *[]ServingRule + State FeatureState + VariationToTargetMap *[]VariationMap + Variations []Variation + Version *int64 + type FeatureConfigKind string + const Boolean + const Int + const Json + const String + type FeatureState string + const Off + const On + type GetAllSegmentsParams struct + Cluster *ClusterQueryOptionalParam + type GetAllSegmentsResponse struct + Body []byte + HTTPResponse *http.Response + JSON200 *[]Segment + JSON401 *Error + JSON403 *Error + JSON404 *Error + JSON500 *Error + func ParseGetAllSegmentsResponse(rsp *http.Response) (*GetAllSegmentsResponse, error) + func (r GetAllSegmentsResponse) Status() string + func (r GetAllSegmentsResponse) StatusCode() int + type GetEvaluationByIdentifierParams struct + Cluster *ClusterQueryOptionalParam + type GetEvaluationByIdentifierResponse struct + Body []byte + HTTPResponse *http.Response + JSON200 *Evaluation + func ParseGetEvaluationByIdentifierResponse(rsp *http.Response) (*GetEvaluationByIdentifierResponse, error) + func (r GetEvaluationByIdentifierResponse) Status() string + func (r GetEvaluationByIdentifierResponse) StatusCode() int + type GetEvaluationsParams struct + Cluster *ClusterQueryOptionalParam + type GetEvaluationsResponse struct + Body []byte + HTTPResponse *http.Response + JSON200 ... + func ParseGetEvaluationsResponse(rsp *http.Response) (*GetEvaluationsResponse, error) + func (r GetEvaluationsResponse) Status() string + func (r GetEvaluationsResponse) StatusCode() int + type GetFeatureConfigByIdentifierParams struct + Cluster *ClusterQueryOptionalParam + type GetFeatureConfigByIdentifierResponse struct + Body []byte + HTTPResponse *http.Response + JSON200 *FeatureConfig + func ParseGetFeatureConfigByIdentifierResponse(rsp *http.Response) (*GetFeatureConfigByIdentifierResponse, error) + func (r GetFeatureConfigByIdentifierResponse) Status() string + func (r GetFeatureConfigByIdentifierResponse) StatusCode() int + type GetFeatureConfigParams struct + Cluster *ClusterQueryOptionalParam + type GetFeatureConfigResponse struct + Body []byte + HTTPResponse *http.Response + JSON200 *[]FeatureConfig + func ParseGetFeatureConfigResponse(rsp *http.Response) (*GetFeatureConfigResponse, error) + func (r GetFeatureConfigResponse) Status() string + func (r GetFeatureConfigResponse) StatusCode() int + type GetSegmentByIdentifierParams struct + Cluster *ClusterQueryOptionalParam + type GetSegmentByIdentifierResponse struct + Body []byte + HTTPResponse *http.Response + JSON200 *Segment + JSON401 *Error + JSON403 *Error + JSON404 *Error + JSON500 *Error + func ParseGetSegmentByIdentifierResponse(rsp *http.Response) (*GetSegmentByIdentifierResponse, error) + func (r GetSegmentByIdentifierResponse) Status() string + func (r GetSegmentByIdentifierResponse) StatusCode() int + type HttpRequestDoer interface + Do func(req *http.Request) (*http.Response, error) + type InternalServerError = Error + type KeyValue struct + Key string + Value string + type Metrics struct + MetricsData *[]MetricsData + TargetData *[]TargetData + type MetricsData struct + Attributes []KeyValue + Count int + MetricsType MetricsDataMetricsType + Timestamp int64 + type MetricsDataMetricsType string + const FFMETRICS + type NotFound = Error + type Pagination struct + ItemCount int + PageCount int + PageIndex int + PageSize int + Version *int + type PostMetricsJSONBody = Metrics + type PostMetricsJSONRequestBody = PostMetricsJSONBody + type PostMetricsParams struct + Cluster *ClusterQueryOptionalParam + type PostMetricsResponse struct + Body []byte + HTTPResponse *http.Response + JSON401 *Error + JSON403 *Error + JSON500 *Error + func ParsePostMetricsResponse(rsp *http.Response) (*PostMetricsResponse, error) + func (r PostMetricsResponse) Status() string + func (r PostMetricsResponse) StatusCode() int + type Prerequisite struct + Feature string + Variations []string + type RequestEditorFn func(ctx context.Context, req *http.Request) error + type Segment struct + CreatedAt *int64 + Environment *string + Excluded *[]Target + Identifier string + Included *[]Target + ModifiedAt *int64 + Name string + Rules *[]Clause + Tags *[]Tag + Version *int64 + type Serve struct + Distribution *Distribution + Variation *string + type ServingRule struct + Clauses []Clause + Priority int + RuleId *string + Serve Serve + type StreamParams struct + APIKey string + Cluster *ClusterQueryOptionalParam + type StreamResponse struct + Body []byte + HTTPResponse *http.Response + func ParseStreamResponse(rsp *http.Response) (*StreamResponse, error) + func (r StreamResponse) Status() string + func (r StreamResponse) StatusCode() int + type Tag struct + Name string + Value *string + type Target struct + Account string + Anonymous *bool + Attributes *map[string]interface{} + CreatedAt *int64 + Environment string + Identifier string + Name string + Org string + Project string + Segments *[]Segment + type TargetData struct + Attributes []KeyValue + Identifier string + Name string + type TargetMap struct + Identifier string + Name string + type Unauthenticated = Error + type Unauthorized = Error + type Variation struct + Description *string + Identifier string + Name *string + Value string + type VariationMap struct + TargetSegments *[]string + Targets *[]TargetMap + Variation string + type WeightedVariation struct + Variation string + Weight int