Categorygithub.com/nsip/otf-util
modulepackage
0.0.2
Repository: https://github.com/nsip/otf-util.git
Documentation: pkg.go.dev

# README

otf-util

Shared libs from each internal util of otf-reader, otf-align, otf-level

# Functions

find an available tcp port .
Makes network calls to other services (text-class, nias), and returns the response payload as bytes, or an error method - http method to invoke (post/put/get etc.) header - map of headers to include in request body - reader for any content to supply as request body .
generate a unique id - nuid in this case .
generate a short useful unique name - hashid in this case defaultName can be upper project name like "aligner", "reader", "leveller" .
creates new connection to nats streaming server .
small utility function embedded in major ops to print a performance indicator.
do regex check on topic names provided for nats .