Documentation ¶
Overview ¶
Package fdb will help you access data from FDB
Package fdb default compliation; this will compile only for development envirnoment
Index ¶
- Variables
- func AppendDataToFDB(filePath string, data []byte, createBackup bool) error
- func AppendDataToFDBWithoutQueue(filePath string, data []byte, createBackup bool) error
- func DisableSecurity()
- func EnableSecurity(key []byte, initializationVector string)
- func GetDataDAO(filePath, query string, isCachable bool, cacheTime time.Duration, ...) (gjson.Result, error)
- func GetDataFromFDBWithoutSecurity(filePath string) ([]byte, error)
- func GetKeyWithFileNameAndDefaultKey(filePath string) ([]byte, error)
- func GetSecurityStatus() bool
- func HardDeleteFileFromFDB(filePath string) error
- func SaveDataToFDB(filePath string, data []byte, makeDir, createBackup bool) error
- func SaveDataToFDBWithoutQueue(filePath string, data []byte, makeDir, createBackup bool) error
- func SaveDataToFDBWithoutSecurity(filePath string, data []byte, makeDir, createBackup bool) error
- func SaveInterfaceDataToFDB(filePath string, interfaceData interface{}, makeDir, createBackup bool) error
- func SoftDeleteFileFromFDB(filePath string) error
Constants ¶
This section is empty.
Variables ¶
var ( // NumberOfReads Collects Number of Reads NumberOfReads = 0 // NumberOfWrites Collects Number of Writes NumberOfWrites = 0 // Fastcache Holds Cache for queries Fastcache cachemdl.FastCacheHelper // NumberOfReadsWithoutSecurity Collects Number of Reads without Security NumberOfReadsWithoutSecurity = 0 // NumberOfWritesWithoutSecurity Collects Number of Writes without Security NumberOfWritesWithoutSecurity = 0 )
Functions ¶
func AppendDataToFDB ¶
AppendDataToFDB apppends data to FDB
func AppendDataToFDBWithoutQueue ¶
AppendDataToFDBWithoutQueue apppends data to FDB without file queueing
func EnableSecurity ¶
EnableSecurity Set remote path for receiving files if not found at local
func GetDataDAO ¶
func GetDataDAO(filePath, query string, isCachable bool, cacheTime time.Duration, rs gjson.Result) (gjson.Result, error)
GetDataDAO will return query data
func GetDataFromFDBWithoutSecurity ¶
GetDataFromFDBWithoutSecurity gets data from FDB
func GetKeyWithFileNameAndDefaultKey ¶
GetKeyWithFileNameAndDefaultKey generates key using file name + Default key
func GetSecurityStatus ¶
func GetSecurityStatus() bool
GetSecurityStatus get status of security flag
func HardDeleteFileFromFDB ¶
HardDeleteFileFromFDB permanantly delete file from fdb
func SaveDataToFDB ¶
SaveDataToFDB saves the data in FDB
func SaveDataToFDBWithoutQueue ¶
SaveDataToFDBWithoutQueue saves the data in FDB without file queueing
func SaveDataToFDBWithoutSecurity ¶
SaveDataToFDBWithoutSecurity saves data to FDB
func SaveInterfaceDataToFDB ¶
func SaveInterfaceDataToFDB(filePath string, interfaceData interface{}, makeDir, createBackup bool) error
SaveInterfaceDataToFDB saves the data in FDB
func SoftDeleteFileFromFDB ¶
SoftDeleteFileFromFDB rename file as per timestamp
Types ¶
This section is empty.