modulepackage
0.0.0-alpha.1
Repository: https://github.com/devcyclehq/go-server-sdk.git
Documentation: pkg.go.dev
# README
Go API client for devcycle
Documents the DevCycle Bucketing API which provides and API interface to User Bucketing and for generated SDKs.
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.0.0
- Package version: 1.0.0
- Build package: io.swagger.codegen.v3.generators.go.GoClientCodegen
Installation
Put the package under your project folder and add the following in import:
import "./devcycle"
Documentation for API Endpoints
All URIs are relative to https://bucketing-api.devcycle.com/
Class | Method | HTTP request | Description |
---|---|---|---|
DevcycleApi | GetFeatures | Post /v1/features | Get all features by key for user data |
DevcycleApi | GetVariableByKey | Post /v1/variables/{key} | Get variable by key for user data |
DevcycleApi | GetVariables | Post /v1/variables | Get all variables by key for user data |
DevcycleApi | PostEvents | Post /v1/track | Post events to DevCycle for user |
Documentation For Models
Documentation For Authorization
bearerAuth
- Type: API key
Example
auth := context.WithValue(context.Background(), sw.ContextAPIKey, sw.APIKey{
Key: "APIKEY",
Prefix: "Bearer", // Omit if not necessary.
})
r, err := client.Service.Operation(auth, args)
Author
# Packages
No description provided by the author
# Functions
CacheExpires helper function to determine remaining time before repeating a request.
No description provided by the author
No description provided by the author
No description provided by the author
NewDVCClient creates a new API client.
# 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
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
DVCClient manages communication with the DevCycle Bucketing API API v1.0.0 In most cases there should be only one, shared, DVCClient.
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
# Type aliases
No description provided by the author