encoding

package module
v0.0.0-...-9bb8c22 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2023 License: MIT Imports: 4 Imported by: 0

README

xk6-encoding

This is a k6 extension using the xk6 system.

❗ This is a proof of concept, isn't supported by the k6 team, and may break in the future. USE AT YOUR OWN RISK!

This a try at fixing some of the problems with the internal k6 encoding package

Build

To build a k6 binary with this extension, first ensure you have the prerequisites:

Then, install xk6 and build your custom k6 binary with the Kafka extension:

  1. Install xk6:
$ go install go.k6.io/xk6/cmd/xk6@latest
  1. Build the binary:
$ xk6 build --with github.com/mstoykov/xk6-encoding@latest

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Encoding

type Encoding struct{}

func New

func New() *Encoding

func (*Encoding) B64decode

func (e *Encoding) B64decode(ctx context.Context, input []byte, encoding string) []byte

func (*Encoding) B64encode

func (e *Encoding) B64encode(ctx context.Context, input []byte, encoding string) []byte

func (*Encoding) Stringify

func (e *Encoding) Stringify(ctx context.Context, input []byte) string

Jump to

Keyboard shortcuts

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