local

package
v4.0.2-rc3 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2022 License: Apache-2.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

View Source
const (
	// SplitFileFormatClassic represents the file format of the standard split definition file <feature treatment>
	SplitFileFormatClassic = iota
	// SplitFileFormatJSON represents the file format of a JSON representation of split dtos
	SplitFileFormatJSON
	// SplitFileFormatYAML represents the file format of a YAML representation of split dtos
	SplitFileFormatYAML
)

Variables

This section is empty.

Functions

This section is empty.

Types

type FileSplitFetcher

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

FileSplitFetcher struct fetches splits from a file

func NewFileSplitFetcher

func NewFileSplitFetcher(splitFile string, logger logging.LoggerInterface) *FileSplitFetcher

NewFileSplitFetcher returns a new instance of LocalFileSplitFetcher

func (*FileSplitFetcher) Fetch

func (s *FileSplitFetcher) Fetch(changeNumber int64, _ bool) (*dtos.SplitChangesDTO, error)

Fetch parses the file and returns the appropriate structures

Jump to

Keyboard shortcuts

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