sdk

package module
v1.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 15, 2023 License: MIT Imports: 0 Imported by: 0

README

Eppo SDK for Golang

Eppoclient is a client sdk for eppo.cloud randomization API. It is used to retrieve the experiments data and put it to in-memory cache, and then get assignments information.

Getting Started

Refer to our SDK documentation for how to install and use the SDK.

Supported Go Versions

This version of the SDK is compatible with Go v1.18 and above.

Example

	import (
		"github.com/Eppo-exp/golang-sdk/eppoclient"
	)

	var eppoClient = &eppoclient.EppoClient{}

	func main() {
		eppoClient = eppoclient.InitClient(eppoclient.Config{
			ApiKey:           "<your_api_key>",
			AssignmentLogger: eppoclient.AssignmentLogger{},
		})
	}

	func someBLFunc() {
		assignment, _ := eppoClient.GetAssignment("subject-1", "experiment_5", sbjAttrs)

		if assignment == "control" {
			// do something
		}
	}

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package eppoclient provides client for eppo.cloud.
Package eppoclient provides client for eppo.cloud.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL