Documentation ¶
Index ¶
- Constants
- func DefineFormat(splitFile string, logger logging.LoggerInterface) int
- func NewFileSegmentFetcher(segmentDirectory string, logger logging.LoggerInterface) service.SegmentFetcher
- func NewFileSplitFetcher(splitFile string, logger logging.LoggerInterface, fileFormat int) service.SplitFetcher
- type FileReader
- type FileSegmentFetcher
- type FileSplitFetcher
- type Reader
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 ¶
func DefineFormat ¶
func DefineFormat(splitFile string, logger logging.LoggerInterface) int
func NewFileSegmentFetcher ¶
func NewFileSegmentFetcher(segmentDirectory string, logger logging.LoggerInterface) service.SegmentFetcher
NewFileSegmentFetcher returns a new instance of LocalFileSegmentFetcher
func NewFileSplitFetcher ¶
func NewFileSplitFetcher(splitFile string, logger logging.LoggerInterface, fileFormat int) service.SplitFetcher
NewFileSplitFetcher returns a new instance of LocalFileSplitFetcher
Types ¶
type FileReader ¶
type FileReader struct { }
type FileSegmentFetcher ¶
type FileSegmentFetcher struct {
// contains filtered or unexported fields
}
FileSegmentFetcher struct fetches segments from a file
func (*FileSegmentFetcher) Fetch ¶
func (s *FileSegmentFetcher) Fetch(segmentName string, changeNumber int64, _ *service.FetchOptions) (*dtos.SegmentChangesDTO, error)
Fetch parses the file and returns the appropriate structures
type FileSplitFetcher ¶
type FileSplitFetcher struct {
// contains filtered or unexported fields
}
FileSplitFetcher struct fetches splits from a file
func (*FileSplitFetcher) Fetch ¶
func (s *FileSplitFetcher) Fetch(changeNumber int64, _ *service.FetchOptions) (*dtos.SplitChangesDTO, error)
Fetch parses the file and returns the appropriate structures
Source Files ¶
Click to show internal directories.
Click to hide internal directories.