appconfig

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithBaseURLOption

func WithBaseURLOption(baseURL string) baseURLOption

func WithHTTPClientOption

func WithHTTPClientOption(httpClient *http.Client) httpClientOption

Types

type AgentClient

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

func NewAgentClient

func NewAgentClient(opts ...AgentClientOption) *AgentClient

func (*AgentClient) GetFlag

func (c *AgentClient) GetFlag(_ context.Context, application, environment, configuration, flagName string, evalCtx map[string]any) (*GetFlagResult, error)

type AgentClientOption

type AgentClientOption interface {
	// contains filtered or unexported methods
}

type Client

type Client interface {
	GetFlag(ctx context.Context, application, environment, configuration, flagName string, evalCtx map[string]any) (*GetFlagResult, error)
}

type GetFlagResult

type GetFlagResult struct {
	Enabled    bool
	Variant    string
	Attributes map[string]any
}

Jump to

Keyboard shortcuts

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