crypto

package
v0.0.0-...-29e7bc9 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2023 License: AGPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Crypto

type Crypto struct {
	// contains filtered or unexported fields
}

Crypto represents an instance of the crypto module.

func (*Crypto) Exports

func (c *Crypto) Exports() modules.Exports

Exports returns the exports of the execution module.

type Hasher

type Hasher struct {
	// contains filtered or unexported fields
}

Hasher wraps an hash.Hash with goja.Runtime.

func (*Hasher) Digest

func (hasher *Hasher) Digest(outputEncoding string) (interface{}, error)

Digest returns the hash value in the given encoding.

func (*Hasher) Update

func (hasher *Hasher) Update(input interface{}) error

Update the hash with the input data.

type RootModule

type RootModule struct{}

RootModule is the global module instance that will create module instances for each VU.

func New

func New() *RootModule

New returns a pointer to a new RootModule instance.

func (*RootModule) NewModuleInstance

func (*RootModule) NewModuleInstance(vu modules.VU) modules.Instance

NewModuleInstance implements the modules.Module interface to return a new instance for each VU.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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