export

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OfflineConfig

type OfflineConfig struct {
	EnvironmentID string
	APIKeys       []string
	Targets       []domain.Target
	Features      []domain.FeatureFlag
	Segments      []domain.Segment
}

OfflineConfig is a struct containing all the offline config to be exported for an environment

type Service

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

Service is the export service implementation

func NewService

func NewService(logger log.StructuredLogger, featureRepo repository.FeatureFlagRepo, targetRepo repository.TargetRepo,
	segmentRepo repository.SegmentRepo, authRepo repository.AuthRepo, authConfig map[domain.AuthAPIKey]string, configDir string) Service

NewService creates and returns an ExportService

func (Service) Persist

func (s Service) Persist(ctx context.Context) error

Persist saves all config to disk

Jump to

Keyboard shortcuts

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