modulepackage
0.0.0-20210326170947-e97f63ad2c23
Repository: https://github.com/checkr/goflagr.git
Documentation: pkg.go.dev
# README
Go API client for goflagr
Flagr is a feature flagging, A/B testing and dynamic configuration microservice. The base path for all the APIs is "/api/v1".
Overview
This API client was generated by the swagger-codegen project. By using the swagger-spec from a remote server, you can easily generate an API client.
- API version: 1.1.4
- Package version: 1.1.1
- Build package: io.swagger.codegen.languages.GoClientCodegen
Installation
Put the package under your project folder and add the following in import:
import "./goflagr"
Documentation for API Endpoints
All URIs are relative to http://localhost/api/v1
Class | Method | HTTP request | Description |
---|---|---|---|
ConstraintApi | CreateConstraint | Post /flags/{flagID}/segments/{segmentID}/constraints | |
ConstraintApi | DeleteConstraint | Delete /flags/{flagID}/segments/{segmentID}/constraints/{constraintID} | |
ConstraintApi | FindConstraints | Get /flags/{flagID}/segments/{segmentID}/constraints | |
ConstraintApi | PutConstraint | Put /flags/{flagID}/segments/{segmentID}/constraints/{constraintID} | |
DistributionApi | FindDistributions | Get /flags/{flagID}/segments/{segmentID}/distributions | |
DistributionApi | PutDistributions | Put /flags/{flagID}/segments/{segmentID}/distributions | |
EvaluationApi | PostEvaluation | Post /evaluation | |
EvaluationApi | PostEvaluationBatch | Post /evaluation/batch | |
ExportApi | GetExportEvalCacheJSON | Get /export/eval_cache/json | |
ExportApi | GetExportSqlite | Get /export/sqlite | |
FlagApi | CreateFlag | Post /flags | |
FlagApi | DeleteFlag | Delete /flags/{flagID} | |
FlagApi | FindFlags | Get /flags | |
FlagApi | GetFlag | Get /flags/{flagID} | |
FlagApi | GetFlagEntityTypes | Get /flags/entity_types | |
FlagApi | GetFlagSnapshots | Get /flags/{flagID}/snapshots | |
FlagApi | PutFlag | Put /flags/{flagID} | |
FlagApi | SetFlagEnabled | Put /flags/{flagID}/enabled | |
HealthApi | GetHealth | Get /health | |
SegmentApi | CreateSegment | Post /flags/{flagID}/segments | |
SegmentApi | DeleteSegment | Delete /flags/{flagID}/segments/{segmentID} | |
SegmentApi | FindSegments | Get /flags/{flagID}/segments | |
SegmentApi | PutSegment | Put /flags/{flagID}/segments/{segmentID} | |
SegmentApi | PutSegmentsReorder | Put /flags/{flagID}/segments/reorder | |
VariantApi | CreateVariant | Post /flags/{flagID}/variants | |
VariantApi | DeleteVariant | Delete /flags/{flagID}/variants/{variantID} | |
VariantApi | FindVariants | Get /flags/{flagID}/variants | |
VariantApi | PutVariant | Put /flags/{flagID}/variants/{variantID} |
Documentation For Models
- Constraint
- CreateConstraintRequest
- CreateFlagRequest
- CreateSegmentRequest
- CreateVariantRequest
- Distribution
- EvalContext
- EvalDebugLog
- EvalResult
- EvaluationBatchRequest
- EvaluationBatchResponse
- EvaluationEntity
- Flag
- FlagSnapshot
- Health
- ModelError
- PutDistributionsRequest
- PutFlagRequest
- PutSegmentReorderRequest
- PutSegmentRequest
- PutVariantRequest
- Segment
- SegmentDebugLog
- SetFlagEnabledRequest
- Variant
Documentation For Authorization
Endpoints do not require authorization.
Author
# Packages
No description provided by the author
# Functions
CacheExpires helper function to determine remaining time before repeating a request.
NewAPIClient creates a new API client.
No description provided by the author
No description provided by the author
No description provided by the author
# Variables
ContextAccessToken takes a string oauth2 access token as authentication for the request.
ContextAPIKey takes an APIKey as authentication for the request.
ContextBasicAuth takes BasicAuth as authentication for the request.
ContextOAuth2 takes a oauth2.TokenSource as authentication for the request.
# Structs
APIClient manages communication with the Flagr API v1.1.4 In most cases there should be only one, shared, APIClient.
APIKey provides API key based authentication to a request passed via context using ContextAPIKey.
No description provided by the author
BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
GenericSwaggerError Provides access to the body, error and model on returned errors.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Type aliases
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author