app

package
v1.2.17 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2024 License: GPL-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const Name = "digestr"

Variables

This section is empty.

Functions

func BadgerCleanUp

func BadgerCleanUp() error

func CanisterCleanUp

func CanisterCleanUp(id string, addr string, SecKey string) error

func EventsTest

func EventsTest(b *badger.BadgerBackend, numEvents int, seed *int,
	ctx context.T, c *websocket.Conn) (authors []string,
	ids []string, err error)

func FiltersTest

func FiltersTest(authors []string, ids []string, b *badger.BadgerBackend,
	numQueries int, ctx context.T) error

Types

type Config

type Config struct {
	Seed         *int   `arg:"-s,--seed" json:"seed" help:"integer to use for random generation of events and queries"`
	EventAmount  int    `arg:"-e,--events" default:"50" json:"EventAmonunt" help:"number of randomly generated events"`
	QueryAmount  int    `arg:"-q,--queries" default:"50" json:"QueryAmount" help:"number of randomly generated queries" `
	SkipSetup    bool   `arg:"--skipsetup" default:"false" json:"-" help:"execute before and after clause?"`
	CanisterAddr string `` /* 138-byte string literal not displayed */
	CanisterID   string `arg:"-I,--canisterid" default:"rpfa6-ryaaa-aaaap-qccvq-cai" json:"canister_id" help:"IC canister ID to use"`
	Wipe         bool   `arg:"--wipe" default:"false" json:"-" help:"only wipe canister and badger"`
	LogLevel     string `` /* 136-byte string literal not displayed */
	SecKey       string `` /* 131-byte string literal not displayed */
}

type Seedr

type Seedr struct {
	SeededGen *seededRand.Rand
	Present   bool
}

Jump to

Keyboard shortcuts

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