model

package
v0.0.0-...-ef79b4b Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2025 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

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

type UserAttrs map[string]interface{}

func MergeUserAttrs

func MergeUserAttrs(first UserAttrs, second UserAttrs) UserAttrs

func (UserAttrs) Discriminator

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

func (UserAttrs) GetAttribute

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

func (*UserAttrs) UnmarshalJSON

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

func (*UserAttrs) UnmarshalYAML

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