unleashengine

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context struct {
	UserID        *string            `json:"userId,omitempty"`
	SessionID     *string            `json:"sessionId,omitempty"`
	Environment   *string            `json:"environment,omitempty"`
	AppName       *string            `json:"appName,omitempty"`
	CurrentTime   *string            `json:"currentTime,omitempty"`
	RemoteAddress *string            `json:"remoteAddress,omitempty"`
	Properties    *map[string]string `json:"properties,omitempty"`
}

type Engine

type Engine interface {
	TakeState(json string)
	Resolve(context *Context, featureName string) []byte
	ResolveAll(context *Context) []byte
}

type UnleashEngine

type UnleashEngine struct {
	// contains filtered or unexported fields
}

func NewUnleashEngine

func NewUnleashEngine() *UnleashEngine

func (*UnleashEngine) Resolve

func (e *UnleashEngine) Resolve(context *Context, featureName string) []byte

func (*UnleashEngine) ResolveAll

func (e *UnleashEngine) ResolveAll(context *Context) []byte

func (*UnleashEngine) TakeState

func (e *UnleashEngine) TakeState(json string)

Jump to

Keyboard shortcuts

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