write

package
v0.0.0-...-982e07a Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2023 License: Apache-2.0 Imports: 7 Imported by: 8

Documentation

Overview

Package write provides useful functions that used in benchmarks for testing writes to db

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckOneKey

func CheckOneKey()

CheckOneKey checks that all key pairs for client id <onekey> exists

func GenerateAcrastructRowsOneKey

func GenerateAcrastructRowsOneKey(publicKey *keys.PublicKey, db *sql.DB)

GenerateAcrastructRowsOneKey generate RowCount acrastructs with random data using <onekey_storage.pub> and insert to db

func GenerateDataRows

func GenerateDataRows(db *sql.DB)

GenerateDataRows generate RowCount raw random data and insert to db

func GetPublicOneKey

func GetPublicOneKey() *keys.PublicKey

GetPublicOneKey load and return public key for acra-writer <onekey_storage.pub>

Types

This section is empty.

Jump to

Keyboard shortcuts

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