Documentation ¶
Index ¶
- Constants
- Variables
- func AddFileInPackFile(filePath string, infileIndexFields []InFileIndexField, rs *gjson.Result, ...) error
- func AddFileInPackFileUsingFp(f *os.File, infileIndexFields []InFileIndexField, rs *gjson.Result, ...) error
- func AddMediaInPackFile(filePath string, mediaData []byte, infileIndexFields []InFileIndexField, ...) (string, error)
- func AddMediaInPackFileUsingFp(f *os.File, infileIndex *gjson.Result, mediaData []byte, ...) (string, *gjson.Result, error)
- func AddPackFileUsingFp(f *os.File, infileIndexFields []InFileIndexField, ...) (infileIndexData *gjson.Result, err error)
- func CreateIndexJSON(indexFields []InFileIndexField, rs *gjson.Result) (string, error)
- func DeletDataFromPackFile(filePath string, infileIndexQueries []string) (int, error)
- func DeletDataFromPackFileUsingFp(f *os.File, infileIndex *gjson.Result, infileIndexQueries []string) (int, *gjson.Result, error)
- func GetDataFromPackFile(filePath string, inFileIndexQueries []string, rs *gjson.Result, ...) (string, error)
- func GetDataFromPackFileUsingFp(f *os.File, infileIndexData *gjson.Result, inFileIndexQueries []string, ...) (string, *gjson.Result, error)
- func GetKeyWithFileNameAndDefaultKey(filePath string) ([]byte, error)
- func GetMediaFromPackFile(filePath string, recordID string) ([]byte, gjson.Result, error)
- func GetMediaFromPackFileUsingFp(f *os.File, infileIndex *gjson.Result, recordID string) ([]byte, *gjson.Result, error)
- func Init(isSecurityRequired, isCompressionRequired bool, securityKey string)
- func ReorgPackFile(filePath string) error
- func UpdateFileInPackFileUsingFp(f *os.File, infileIndexQueries []string, infileIndex, rs *gjson.Result, ...) (*gjson.Result, *gjson.Result, error)
- func UpdateFilesInPackFile(filePath string, infileIndexQueries []string, rs *gjson.Result, ...) (*gjson.Result, error)
- func UpdateMediaInPackFile(filePath string, recordID string, mediaData []byte, ...) (string, error)
- func UpdateMediaInPackFileUsingFp(f *os.File, infileIndex *gjson.Result, recordID string, mediaData []byte, ...) (string, *gjson.Result, error)
- func UpsertMediaInPackFileUsingFp(f *os.File, infileIndex *gjson.Result, recordID string, mediaData []byte, ...) (string, *gjson.Result, error)
- type InFileIndex
- type InFileIndexField
Constants ¶
const ( // IndexKeyValSeperator - IndexKeyValSeperator = "=" // FileType - represents key for type of file. Used whenever we need to set file type field in json FileType = "fileType" )
Variables ¶
var ErrNoDataFound = errors.New("No data found")
ErrNoDataFound - ErrNoDataFound
Functions ¶
func AddFileInPackFile ¶
func AddFileInPackFile(filePath string, infileIndexFields []InFileIndexField, rs *gjson.Result, secParams securitymdl.FDBSecParams) error
AddFileInPackFile -
func AddFileInPackFileUsingFp ¶
func AddFileInPackFileUsingFp(f *os.File, infileIndexFields []InFileIndexField, rs *gjson.Result, secParams securitymdl.FDBSecParams) error
AddFileInPackFileUsingFp -
func AddMediaInPackFile ¶
func AddMediaInPackFile(filePath string, mediaData []byte, infileIndexFields []InFileIndexField, rs *gjson.Result) (string, error)
AddMediaInPackFile -
func AddMediaInPackFileUsingFp ¶
func AddMediaInPackFileUsingFp(f *os.File, infileIndex *gjson.Result, mediaData []byte, infileIndexFields []InFileIndexField, rs *gjson.Result) (string, *gjson.Result, error)
AddMediaInPackFileUsingFp - AddMediaInPackFileUsingFp
func AddPackFileUsingFp ¶
func AddPackFileUsingFp(f *os.File, infileIndexFields []InFileIndexField, infileIndex, rs *gjson.Result, secParams securitymdl.FDBSecParams) (infileIndexData *gjson.Result, err error)
AddPackFileUsingFp -
func CreateIndexJSON ¶
func CreateIndexJSON(indexFields []InFileIndexField, rs *gjson.Result) (string, error)
func DeletDataFromPackFile ¶
DeletDataFromPackFile -DeletDataFromPackFile
func DeletDataFromPackFileUsingFp ¶
func DeletDataFromPackFileUsingFp(f *os.File, infileIndex *gjson.Result, infileIndexQueries []string) (int, *gjson.Result, error)
DeletDataFromPackFileUsingFp -DeletDataFromPackFileUsingFp
func GetDataFromPackFile ¶
func GetDataFromPackFile(filePath string, inFileIndexQueries []string, rs *gjson.Result, secParams securitymdl.FDBSecParams) (string, error)
GetDataFromPackFile - GetDataFromPackFile
func GetDataFromPackFileUsingFp ¶
func GetDataFromPackFileUsingFp(f *os.File, infileIndexData *gjson.Result, inFileIndexQueries []string, rs *gjson.Result, secParams securitymdl.FDBSecParams) (string, *gjson.Result, error)
GetDataFromPackFileUsingFp - GetDataFromPackFileUsingFp
func GetKeyWithFileNameAndDefaultKey ¶
GetKeyWithFileNameAndDefaultKey generates key using file name + Default key
func GetMediaFromPackFile ¶
GetMediaFromPackFile - GetMediaFromPackFile
func GetMediaFromPackFileUsingFp ¶
func GetMediaFromPackFileUsingFp(f *os.File, infileIndex *gjson.Result, recordID string) ([]byte, *gjson.Result, error)
GetMediaFromPackFileUsingFp - GetMediaFromPackFileUsingFp
func ReorgPackFile ¶
func UpdateFileInPackFileUsingFp ¶
func UpdateFileInPackFileUsingFp(f *os.File, infileIndexQueries []string, infileIndex, rs *gjson.Result, secParams securitymdl.FDBSecParams) (*gjson.Result, *gjson.Result, error)
UpdateFilesInPackFileUsingFp - UpdateFilesInPackFileUsingFp
func UpdateFilesInPackFile ¶
func UpdateFilesInPackFile(filePath string, infileIndexQueries []string, rs *gjson.Result, secParams securitymdl.FDBSecParams) (*gjson.Result, error)
UpdateFilesInPackFile - UpdateFilesInPackFile
func UpdateMediaInPackFile ¶
func UpdateMediaInPackFile(filePath string, recordID string, mediaData []byte, infileIndexFields []InFileIndexField, rs *gjson.Result) (string, error)
UpdateMediaInPackFile - UpdateMediaInPackFile
Types ¶
type InFileIndex ¶
type InFileIndex struct { FileType string `json:"fileType"` IndexFields []InFileIndexField `json:"indexFields"` }
InFileIndex -
type InFileIndexField ¶
InFileIndexField - InFileIndexField