server

package
v0.0.0-...-ccbe32a Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

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

func New

func New(config *overleash.OverleashContext, port int, proxyMetrics bool) *Config

func (*Config) Start

func (c *Config) Start()

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 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