consul

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(address, prefix string) module.Interface

New creates a new Consul client.

Types

type FeatureFlag

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

func (*FeatureFlag) GetBool

func (i *FeatureFlag) GetBool(ctx context.Context, key string) (bool, error)

func (*FeatureFlag) GetInt

func (i *FeatureFlag) GetInt(ctx context.Context, key string) (int, error)

func (*FeatureFlag) GetString

func (i *FeatureFlag) GetString(ctx context.Context, key string) (string, error)

func (*FeatureFlag) GetStruct

func (i *FeatureFlag) GetStruct(ctx context.Context, key string, v interface{}) error

func (*FeatureFlag) GetValue

func (i *FeatureFlag) GetValue(ctx context.Context, key string) (interface{}, error)

GetValue gets the value of the key from Consul.

func (*FeatureFlag) Watch

func (i *FeatureFlag) Watch(ctx context.Context) (chan bool, error)

Watch watches for feature flag changes.

Jump to

Keyboard shortcuts

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