ffappconfig

package
v0.0.0-...-26c3e40 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package ffappconfig implements a SourceReader interface for AWS AppConfig. This package is intended to be used with the github.com/gsiffert/featureflag package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppConfigReader

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

AppConfigReader implements a SourceReader interface for AWS AppConfig. AppConfig restricts how regularly you can poll for configuration changes, this reader will cache the results from AppConfig and only poll when it's allowed to.

func New

New creates a new AppConfigReader.

func (*AppConfigReader) Read

func (s *AppConfigReader) Read(ctx context.Context) ([]byte, error)

Read the latest configuration from AWS AppConfig.

type Client

type Client interface {
	StartConfigurationSession(ctx context.Context, params *appconfigdata.StartConfigurationSessionInput, optFns ...func(*appconfigdata.Options)) (*appconfigdata.StartConfigurationSessionOutput, error)
	GetLatestConfiguration(ctx context.Context, params *appconfigdata.GetLatestConfigurationInput, optFns ...func(*appconfigdata.Options)) (*appconfigdata.GetLatestConfigurationOutput, error)
}

Client is a subset of appconfigdata.Client.

Jump to

Keyboard shortcuts

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