model

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EvalData added in v0.3.0

type EvalData struct {
	Value       interface{}
	VariationId string
	Error       error
	User        configcat.User
}

type EvalRequest

type EvalRequest struct {
	Key  string    `json:"key"`
	User UserAttrs `json:"user"`
}

type ResponsePayload

type ResponsePayload struct {
	Value       interface{} `json:"value"`
	VariationId string      `json:"variationId"`
}

func PayloadFromEvalData

func PayloadFromEvalData(evalData *EvalData) ResponsePayload

type UserAttrs added in v0.3.0

type UserAttrs map[string]interface{}

func MergeUserAttrs added in v0.3.0

func MergeUserAttrs(first UserAttrs, second UserAttrs) UserAttrs

func (UserAttrs) Discriminator added in v0.3.0

func (attrs UserAttrs) Discriminator(s maphash.Seed) uint64

func (UserAttrs) GetAttribute added in v0.3.0

func (attrs UserAttrs) GetAttribute(attr string) interface{}

func (*UserAttrs) UnmarshalJSON added in v0.3.0

func (attrs *UserAttrs) UnmarshalJSON(data []byte) error

func (*UserAttrs) UnmarshalYAML added in v0.3.0

func (attrs *UserAttrs) UnmarshalYAML(unmarshal func(interface{}) error) error

Jump to

Keyboard shortcuts

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