Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gjergjsheldija/xk6-mllp
Simple MLLP sender for K6
https://github.com/gjergjsheldija/xk6-mllp
hl7 mllp-sender xk6 xk6-hl7 xk6-mllp
Last synced: 3 months ago
JSON representation
Simple MLLP sender for K6
- Host: GitHub
- URL: https://github.com/gjergjsheldija/xk6-mllp
- Owner: gjergjsheldija
- License: mit
- Created: 2021-02-19T10:09:33.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-06-12T11:58:50.000Z (8 months ago)
- Last Synced: 2024-07-30T21:05:27.339Z (6 months ago)
- Topics: hl7, mllp-sender, xk6, xk6-hl7, xk6-mllp
- Language: Go
- Homepage:
- Size: 62.5 KB
- Stars: 1
- Watchers: 1
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## xk6-mllp
Simple MLLP sender for K6
## Build
To build a `k6` binary with this extension, first ensure you have the prerequisites:
- [Go toolchain](https://go101.org/article/go-toolchain.html)
- Git
```bash
$ go install go.k6.io/xk6/cmd/xk6@latest
$ xk6 build --with github.com/gjergjsheldija/xk6-mllp=.
$ ./k6 run --vus 60 --duration 1m test.js
```## Docker
```shell
docker run -i gjergjsheldija/xk6-mllp:latest --vus 60 --duration 1m run - < test.js
```## Example
```javascript
import mllp from 'k6/x/mllp';const client = new mllp.Client({
host: '127.0.0.1',
port: '5000'
});export default function () {
client.send('./sample.hl7');
}
```