flags

package module
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiResponse

type ApiResponse struct {
	IntervalAllowed int                `json:"intervalAllowed"`
	Flags           []flag.FeatureFlag `json:"flags"`
}

type Auth added in v0.2.0

type Auth struct {
	ProjectID     string
	AgentID       string
	EnvironmentID string
}

type CircuitState

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

type Client

type Client struct {
	Cache *cache.System
	// contains filtered or unexported fields
}

func NewClient

func NewClient(opts ...Option) *Client

func (*Client) Is

func (c *Client) Is(name string) *Flag

func (*Client) List added in v0.4.0

func (c *Client) List() ([]flag.FeatureFlag, error)

List get all flags rather than just the one for the flag itself

type Flag

type Flag struct {
	Name   string
	Client *Client
}

func (*Flag) Enabled

func (f *Flag) Enabled() bool

Enabled flag specific

type Option

type Option func(*Client)

func SetFileName added in v0.4.2

func SetFileName(fileName *string) Option

func WithAuth added in v0.2.0

func WithAuth(auth Auth) Option

func WithBaseURL

func WithBaseURL(baseURL string) Option

func WithMaxRetries

func WithMaxRetries(maxRetries int) Option

func WithMemory added in v0.5.0

func WithMemory() Option

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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