file_data

package
v1.40.2 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2025 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileDataRepository

type FileDataRepository interface {
	// GetDataByKey Read data from file by key
	GetDataByKey(filePath string, key string) (string, error)
	// SetDataByKey Set data to file by key
	SetDataByKey(filePath string, key string, value string, valType pb.DataSetValueType) error
}

FileDataRepository is an interface to read data from file by key

type FileDataRepositoryFactory

type FileDataRepositoryFactory interface {
	// GetRepository Get [FileDataRepository] by file format
	GetRepository(context context.Context, fileFormat pb.FileFormat) (FileDataRepository, error)
}

FileDataRepositoryFactory is an interface to get a new FileDataRepository by file format

func NewFileDataRepositoryFactory

func NewFileDataRepositoryFactory() FileDataRepositoryFactory

NewFileDataRepositoryFactory creates a new instance of [application.FileDataRepositoryFactory]

Jump to

Keyboard shortcuts

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