Documentation ¶
Index ¶
Constants ¶
View Source
const ( DATABASE_NAME = "gatewayDB" USERS_CONTAINER_NAME = "users" )
Constants for the CosmosDB database and container names
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CosmosDB ¶
type CosmosDB struct {
// contains filtered or unexported fields
}
CosmosDB struct represents the CosmosDB storage implementation
func NewCosmosDB ¶
func (*CosmosDB) AddAccount ¶
func (c *CosmosDB) AddAccount(userID []byte, accountAddress []byte, signature []byte, signatureType viewingkey.SignatureType) error
func (*CosmosDB) DeleteUser ¶
type EncryptedDocument ¶
EncryptedDocument struct is used to store encrypted user data in CosmosDB We use this structure to add an extra layer of security by encrypting the actual user data The 'ID' field is used as the document ID and partition key in CosmosDB The 'Data' field contains the base64-encoded encrypted user data
Click to show internal directories.
Click to hide internal directories.