flags

package module
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 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 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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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