ofrep

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BulkEvaluationError

type BulkEvaluationError struct {
	ErrorCode    string `json:"errorCode"`
	ErrorDetails string `json:"errorDetails"`
}

func BulkEvaluationContextErrorFrom

func BulkEvaluationContextErrorFrom() BulkEvaluationError

type BulkEvaluationResponse

type BulkEvaluationResponse struct {
	Flags []interface{} `json:"flags,omitempty"`
}

func BulkEvaluationResponseFrom

func BulkEvaluationResponseFrom(values []evaluator.AnyValue) BulkEvaluationResponse

type EvaluationError

type EvaluationError struct {
	Key          string `json:"key"`
	ErrorCode    string `json:"errorCode"`
	ErrorDetails string `json:"errorDetails"`
}

func ContextErrorResponseFrom

func ContextErrorResponseFrom(key string) EvaluationError

func EvaluationErrorResponseFrom

func EvaluationErrorResponseFrom(result evaluator.AnyValue) (int, EvaluationError)

type EvaluationSuccess

type EvaluationSuccess struct {
	Value    interface{} `json:"value"`
	Key      string      `json:"key"`
	Reason   string      `json:"reason"`
	Variant  string      `json:"variant"`
	Metadata interface{} `json:"metadata"`
}

func SuccessResponseFrom

func SuccessResponseFrom(result evaluator.AnyValue) EvaluationSuccess

type InternalError

type InternalError struct {
	ErrorDetails string `json:"errorDetails"`
}

type Request

type Request struct {
	Context interface{} `json:"context"`
}

Jump to

Keyboard shortcuts

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