Documentation ¶
Index ¶
- Variables
- type Crypto
- func (c *Crypto) Ecdh(algorithm string, privateKey, publicKey goja.ArrayBuffer) (interface{}, error)
- func (c *Crypto) GenerateKeyPair(algorithm string, seedIn interface{}) (*KeyPair, error)
- func (c *Crypto) Hkdf(hash string, secretIn, saltIn, infoIn interface{}, keylen int) (interface{}, error)
- func (c *Crypto) Pbkdf2(passwordIn, saltIn interface{}, iter, keylen int, hash string) (interface{}, error)
- type KeyPair
- type ModuleInstance
- type RootModule
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Crypto ¶
type Crypto struct {
// contains filtered or unexported fields
}
func (*Crypto) Ecdh ¶
func (c *Crypto) Ecdh(algorithm string, privateKey, publicKey goja.ArrayBuffer) (interface{}, error)
func (*Crypto) GenerateKeyPair ¶
type KeyPair ¶
type KeyPair struct { PrivateKey interface{} `js:"privateKey"` PublicKey interface{} `js:"publicKey"` }
type ModuleInstance ¶
type ModuleInstance struct {
// contains filtered or unexported fields
}
ModuleInstance represents an instance of the JS module.
func (*ModuleInstance) Exports ¶
func (mi *ModuleInstance) Exports() modules.Exports
Exports implements the modules.Instance interface and returns the exported types for the JS module.
type RootModule ¶
type RootModule struct{}
RootModule is the global module instance that will create module instances for each VU.
func (*RootModule) NewModuleInstance ¶
func (*RootModule) NewModuleInstance(vu modules.VU) modules.Instance
NewModuleInstance implements the modules.Module interface returning a new instance for each VU.
Click to show internal directories.
Click to hide internal directories.