# Functions
No description provided by the author
DeserializeAction deserializes an action from the given reader, expecting the data to be encoded in the tlv format.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NewDB creates a new bolt database that can be found at the given directory.
NewMockSessionDB creates a new mock privacy map details instance.
NewPrivacyMapPairs constructs a new PrivacyMapPairs struct.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
SerializeAction binary serializes the given action to the writer using the tlv format.
No description provided by the author
No description provided by the author
UseLogger uses a specified Logger to output package logging info.
# Constants
ActionStateDone represents that an Action has been executed successfully.
ActionStateError represents that an Action did not complete successfully.
ActionStateInit represents that an Action has been created but that is still in the pending state.
ActionStateUnknown means that the action's state was never initialised.
DBFilename is the default filename of the rules' database.
DefaultRulesDBTimeout is the default maximum time we wait for the db bbolt database to be opened.
No description provided by the author
# Variables
ErrDBReversion is returned when detecting an attempt to revert to a prior database version.
ErrNoSuchKeyFound is returned when there is no key-value pair found for the given key.
# Structs
Action represents an RPC call made through the firewall.
ActionLocator helps us find an action in the database.
DB is a bolt-backed persistent store.
ListActionsQuery can be used to tweak the query to ListActions and ListSessionActions.
PrivacyMapPairs is an in memory implementation of the PrivacyMapReader.
RuleAction represents a method call that was performed at a certain time at a certain time.
# Interfaces
ActionReadDBGetter represents a function that can be used to construct an ActionsReadDB.
ActionsDB represents a DB backend that contains Action entries that can be queried.
ActionsReadDB is an abstraction gives a caller access to either a group specific or group and feature specific rules.ActionDB.
ActionsWriteDB is an abstraction over the Actions DB that will allow a caller to add new actions as well as change the values of an existing action.
KVStore is in interface representing a key value store.
KVStores provides an Update and View method that will allow the caller to perform atomic read and write transactions on and of the key value stores offered the KVStoreTx.
KVStoreTx represents a database transaction that can be used for both read and writes of the various different key value stores offered for the rule.
PrivacyMapDB provides an Update and View method that will allow the caller to perform atomic read and write transactions defined by PrivacyMapTx on the underlying DB.
PrivacyMapReader is an interface that gives read access to a privacy map DB.
PrivacyMapTx represents a db that can be used to create, store and fetch real-pseudo pairs.
RulesDB can be used to initialise a new rules.KVStores.
SessionDB is an interface that abstracts the database operations needed for the privacy mapper to function.
# Type aliases
ActionState represents the state of an action.
ListActionsFilterFn defines a function that can be used to determine if an action should be included in a set of results or not.
NewPrivacyMapDB is a function type that takes a group ID and uses it to construct a new PrivacyMapDB.