model

package
v1.0.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2023 License: MIT Imports: 1 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AllFlagRequest

type AllFlagRequest struct {
	// User The representation of a user for your feature flag system.
	User *UserRequest `json:"user" xml:"user" form:"user" query:"user"`
}

type EvalFlagRequest

type EvalFlagRequest struct {
	AllFlagRequest `json:",inline" yaml:",inline" toml:",inline"`
	// The value will we use if we are not able to get the variation of the flag.
	DefaultValue interface{} `json:"defaultValue" xml:"defaultValue" form:"defaultValue" query:"defaultValue"`
}

type FlagEval

type FlagEval struct {
	Value interface{} `json:"value"`
}

type HealthResponse

type HealthResponse struct {
	// Set to true if the HTTP server is started
	Initialized bool `json:"initialized" example:"true"`
}

HealthResponse is the object returned by the health API

type InfoResponse

type InfoResponse struct {
	// This is the last time when your flag file was read and store in the internal cache.
	LatestCacheRefresh time.Time `json:"cacheRefresh" example:"2022-06-13T11:22:55.941628+02:00"`
}

InfoResponse is the object returned by the info API

type UserRequest

type UserRequest struct {
	// Key is the identifier of the UserRequest.
	Key string `json:"key" xml:"key" form:"key" query:"key" example:"08b5ffb7-7109-42f4-a6f2-b85560fbd20f"`

	// Anonymous set if this is a logged-in user or not.
	Anonymous bool `json:"anonymous" xml:"anonymous" form:"anonymous" query:"anonymous" example:"false"`

	// Custom is a map containing all extra information for this user.
	Custom map[string]interface{} `` // nolint: lll
	/* 178-byte string literal not displayed */
}

UserRequest The representation of a user for your feature flag system.

Jump to

Keyboard shortcuts

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