split

package
v0.84.2 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init()

Types

type Srvc

type Srvc struct {
	// contains filtered or unexported fields
}
var Service *Srvc

func NewService

func NewService(region string) (*Srvc, error)

Creates a new instance of a Split Factory Using "localhost" as the apiKey allows us to use Split.io in localhost mode as defined in their documentation If the service is not available we return nil on these methods: - Get - GetAll

func (*Srvc) Get

func (s *Srvc) Get(split string) string

Get a treatment from Split.io given the name of the split

func (*Srvc) GetAll

func (s *Srvc) GetAll(splits []string) map[string]string

Get all treatments from Split.io given a list of splits

Jump to

Keyboard shortcuts

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