appconfigdata

package
v0.0.1-alpha.30 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Overview

Package appconfigdata provides the AWS AppConfig data plane emulation.

Implemented operations: StartConfigurationSession, GetLatestConfiguration.

The data plane retrieves configuration content stored via AppConfig's CreateHostedConfigurationVersion control-plane API. Configuration is delivered on the first poll after a new version is published; subsequent polls return an empty body until the version changes (matching AWS behaviour to avoid hot-loops in well-behaved SDKs).

Routes: POST /_appconfigdata/configurationsessions

GET  /_appconfigdata/configuration/{token}

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

Service implements router.Service for AppConfigData.

func New

func New(cfg *config.Config, st state.Store, logger *zap.Logger, _ clock.Clock, ac appConfigReader) *Service

New returns a configured AppConfigData Service. ac must be the AppConfig Service instance already registered in the router.

func (*Service) Dispatch

func (s *Service) Dispatch(w http.ResponseWriter, r *http.Request)

func (*Service) Name

func (s *Service) Name() string

func (*Service) Operations

func (s *Service) Operations() []op.Operation

func (*Service) RegisterRoutes

func (s *Service) RegisterRoutes(r chi.Router)

RegisterRoutes registers the AppConfigData data-plane endpoints.

func (*Service) SupportedProtocols

func (s *Service) SupportedProtocols() []codec.Codec

func (*Service) TargetPrefix

func (s *Service) TargetPrefix() string

Jump to

Keyboard shortcuts

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