api

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Splitio

type Splitio interface {
	GetSplits() (map[string]dtos.SplitDTO, int64, error)
	GetSegmentsForSplits(map[string]dtos.SplitDTO) (map[string]dtos.SegmentChangesDTO, int, error)
}

Splitio interface continas two functions to get Splits and Segments

type SplitioAPIBinding

type SplitioAPIBinding struct {
	// contains filtered or unexported fields
}

SplitioAPIBinding contains splitioAPIKey

func NewSplitioAPIBinding

func NewSplitioAPIBinding(apiKey string, apiURL string) *SplitioAPIBinding

NewSplitioAPIBinding returns a new SplitioAPIBinding

func (*SplitioAPIBinding) GetSegmentsForSplits

func (binding *SplitioAPIBinding) GetSegmentsForSplits(splits map[string]dtos.SplitDTO) (map[string]dtos.SegmentChangesDTO, int, error)

GetSegmentsForSplits return segment info and the count of splits using segment

func (*SplitioAPIBinding) GetSplits

func (binding *SplitioAPIBinding) GetSplits() (map[string]dtos.SplitDTO, int64, error)

GetSplits gets the split data

Jump to

Keyboard shortcuts

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