flags

package module
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2025 License: Apache-2.0 Imports: 9 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"`
	SecretMenu      SecretMenu    `json:"secretMenu"`
	Flags           []FeatureFlag `json:"flags"`
}

type Auth added in v0.2.0

type Auth struct {
	ProjectID     string
	AgentID       string
	EnvironmentID string
}

type Cache

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

type CircuitState

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

type Client

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

func NewClient

func NewClient(opts ...Option) *Client

func (*Client) Is

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

type FeatureFlag

type FeatureFlag struct {
	Enabled bool        `json:"enabled"`
	Details FlagDetails `json:"details"`
}

type Flag

type Flag struct {
	Name string
	// contains filtered or unexported fields
}

func (*Flag) Enabled

func (f *Flag) Enabled() bool

type FlagDetails

type FlagDetails struct {
	Name string `json:"name"`
	ID   string `json:"id"`
}

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

type SecretMenu

type SecretMenu struct {
	Sequence []string `json:"sequence"`
}

Jump to

Keyboard shortcuts

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