server

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2026 License: MIT Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EvaluatedToggle

type EvaluatedToggle struct {
	Name           string           `json:"name"`
	Enabled        bool             `json:"enabled"`
	Variant        EvaluatedVariant `json:"variant"`
	ImpressionData bool             `json:"impressionData"`
}

type EvaluatedVariant

type EvaluatedVariant struct {
	Name              string          `json:"name"`
	Enabled           bool            `json:"enabled"`
	Payload           *VariantPayload `json:"payload"`
	FeatureEnabled    bool            `json:"feature_enabled"`
	OldFeatureEnabled bool            `json:"featureEnabled"`
}

type FrontendResult

type FrontendResult struct {
	Toggles []EvaluatedToggle `json:"toggles"`
}

type Middleware

type Middleware func(http.Handler) http.Handler

type ResolvedToggle

type ResolvedToggle struct {
	Enabled        bool    `json:"enabled"`
	Project        string  `json:"project"`
	Variant        Variant `json:"variant"`
	ImpressionData bool    `json:"impressionData"`
}

type Server added in v1.0.0

type Server struct {
	Overleash *overleash.OverleashContext
	// contains filtered or unexported fields
}

func New

func New(config *overleash.OverleashContext, ctx context.Context) *Server

func (*Server) Start added in v1.0.0

func (c *Server) Start()

type Variant

type Variant struct {
	Name           string          `json:"name"`
	Enabled        bool            `json:"enabled"`
	FeatureEnabled bool            `json:"feature_enabled"`
	Payload        *VariantPayload `json:"payload"`
}

type VariantPayload

type VariantPayload struct {
	Type  string `json:"type"`
	Value string `json:"value"`
}

Jump to

Keyboard shortcuts

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