model

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BoolVarResult added in v0.17.0

type BoolVarResult struct {
	VariationResult
	Value bool
}

BoolVarResult is the internal result format of a bool variation. This is used by the ffclient.BoolVariation functions and by the ffclient.AllFlagsState function

type DiffCache

type DiffCache struct {
	Deleted map[string]flag.Flag   `json:"deleted"`
	Added   map[string]flag.Flag   `json:"added"`
	Updated map[string]DiffUpdated `json:"updated"`
}

DiffCache contains the changes made in the cache, to be able to notify the user that something has changed (logs, webhook ...)

func (*DiffCache) HasDiff

func (d *DiffCache) HasDiff() bool

HasDiff check if we have differences

type DiffUpdated

type DiffUpdated struct {
	Before flag.Flag `json:"old_value"`
	After  flag.Flag `json:"new_value"`
}

type Float64VarResult added in v0.17.0

type Float64VarResult struct {
	VariationResult
	Value float64
}

Float64VarResult is the internal result format of a float64 variation. This is used by the ffclient.Float64Variation functions and by the ffclient.AllFlagsState function

type IntVarResult added in v0.17.0

type IntVarResult struct {
	VariationResult
	Value int
}

IntVarResult is the internal result format of a int variation. This is used by the ffclient.IntVariation functions and by the ffclient.AllFlagsState function

type JSONArrayVarResult added in v0.17.0

type JSONArrayVarResult struct {
	VariationResult
	Value []interface{}
}

JSONArrayVarResult is the internal result format of a json array variation. This is used by the ffclient.JSONArrayVariation functions and by the ffclient.AllFlagsState function

type JSONVarResult added in v0.17.0

type JSONVarResult struct {
	VariationResult
	Value map[string]interface{}
}

JSONVarResult is the internal result format of a json variation. This is used by the ffclient.JSONVariation functions and by the ffclient.AllFlagsState function

type StringVarResult added in v0.17.0

type StringVarResult struct {
	VariationResult
	Value string
}

StringVarResult is the internal result format of a string variation. This is used by the ffclient.StringVariation functions and by the ffclient.AllFlagsState function

type VariationResult added in v0.17.0

type VariationResult struct {
	TrackEvents   bool
	VariationType string
	Failed        bool
	Version       float64
}

Jump to

Keyboard shortcuts

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