fdb

package
v2.0.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package fdb will help you access data from FDB

Package fdb default compliation; this will compile only for development envirnoment

Index

Constants

This section is empty.

Variables

View Source
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

func AppendDataToFDB(filePath string, data []byte, createBackup bool) error

AppendDataToFDB apppends data to FDB

func AppendDataToFDBWithoutQueue

func AppendDataToFDBWithoutQueue(filePath string, data []byte, createBackup bool) error

AppendDataToFDBWithoutQueue apppends data to FDB without file queueing

func DisableSecurity

func DisableSecurity()

DisableSecurity disables security

func EnableSecurity

func EnableSecurity(key []byte, initializationVector string)

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

func GetDataFromFDBWithoutSecurity(filePath string) ([]byte, error)

GetDataFromFDBWithoutSecurity gets data from FDB

func GetKeyWithFileNameAndDefaultKey

func GetKeyWithFileNameAndDefaultKey(filePath string) ([]byte, error)

GetKeyWithFileNameAndDefaultKey generates key using file name + Default key

func GetSecurityStatus

func GetSecurityStatus() bool

GetSecurityStatus get status of security flag

func HardDeleteFileFromFDB

func HardDeleteFileFromFDB(filePath string) error

HardDeleteFileFromFDB permanantly delete file from fdb

func SaveDataToFDB

func SaveDataToFDB(filePath string, data []byte, makeDir, createBackup bool) error

SaveDataToFDB saves the data in FDB

func SaveDataToFDBWithoutQueue

func SaveDataToFDBWithoutQueue(filePath string, data []byte, makeDir, createBackup bool) error

SaveDataToFDBWithoutQueue saves the data in FDB without file queueing

func SaveDataToFDBWithoutSecurity

func SaveDataToFDBWithoutSecurity(filePath string, data []byte, makeDir, createBackup bool) error

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

func SoftDeleteFileFromFDB(filePath string) error

SoftDeleteFileFromFDB rename file as per timestamp

Types

This section is empty.

Jump to

Keyboard shortcuts

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