pkg

package
v1.0.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package pkg //

Package pkg //

Index

Constants

View Source
const ClientName = "go-sdk"

ClientName is the name of the client

View Source
const Version = "1.0.0-rc1"

Version is the current version of the client

Variables

This section is empty.

Functions

This section is empty.

Types

type ProjectConfig

type ProjectConfig interface {
	GetAccountID() string
	GetAnonymizeIP() bool
	GetAttributeID(id string) string // returns "" if there is no id
	GetAttributeByKey(key string) (entities.Attribute, error)
	GetAudienceByID(string) (entities.Audience, error)
	GetAudienceMap() map[string]entities.Audience
	GetBotFiltering() bool
	GetEventByKey(string) (entities.Event, error)
	GetExperimentByKey(string) (entities.Experiment, error)
	GetFeatureByKey(string) (entities.Feature, error)
	GetVariableByKey(featureKey string, variableKey string) (entities.Variable, error)
	GetFeatureList() []entities.Feature
	GetGroupByID(string) (entities.Group, error)
	GetProjectID() string
	GetRevision() string
}

ProjectConfig represents the project's experiments and feature flags and contains methods for accessing the them.

type ProjectConfigManager

type ProjectConfigManager interface {
	GetConfig() (ProjectConfig, error)
	RemoveOnProjectConfigUpdate(id int) error
	OnProjectConfigUpdate(callback func(notification.ProjectConfigUpdateNotification)) (int, error)
}

ProjectConfigManager maintains an instance of the ProjectConfig

Directories

Path Synopsis
Package client has client definitions Package client has client facing factories
Package client has client definitions Package client has client facing factories
Package config // Package config //
Package config // Package config //
datafileprojectconfig
Package datafileprojectconfig // Package datafileprojectconfig //
Package datafileprojectconfig // Package datafileprojectconfig //
datafileprojectconfig/entities
Package entities has entity definitions
Package entities has entity definitions
datafileprojectconfig/mappers
Package mappers ...
Package mappers ...
Package decision // Package decision // Package decision // Package decision // Package decision // Package decision // Package decision // Package decision // Package decision // Package decision // Package decision //
Package decision // Package decision // Package decision // Package decision // Package decision // Package decision // Package decision // Package decision // Package decision // Package decision // Package decision //
bucketer
Package bucketer // Package bucketer //
Package bucketer // Package bucketer //
evaluator
Package evaluator // Package evaluator // Package evaluator //
Package evaluator // Package evaluator // Package evaluator //
evaluator/matchers
Package matchers // Package matchers // Package matchers // Package matchers // Package matchers // Package matchers //
Package matchers // Package matchers // Package matchers // Package matchers // Package matchers // Package matchers //
evaluator/matchers/utils
Package utils //
Package utils //
reasons
Package reasons //
Package reasons //
Package entities // Package entities // Package entities // Package entities // Package entities // Package entities // Package entities // Package entities //
Package entities // Package entities // Package entities // Package entities // Package entities // Package entities // Package entities // Package entities //
Package event // Package event // Package event // Package event // Package event // Package event //
Package event // Package event // Package event // Package event // Package event // Package event //
Package logging // Package logging // Package logging //
Package logging // Package logging // Package logging //
Package notification // Package notification // Package notification // Package notification //
Package notification // Package notification // Package notification // Package notification //
Package registry is the global access point for retrieving instances of services by SDK Key //
Package registry is the global access point for retrieving instances of services by SDK Key //
Package utils // Package utils // Package utils //
Package utils // Package utils // Package utils //

Jump to

Keyboard shortcuts

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