Search documentation of jhn_stdlib

# API Reference jhn_stdlib v#5.10.3

View Source

## Modules

jhn_bencoding

A Bencoding library based on: The BitTorrent specification

jhn_blist

String Processing Functions for binary encoded strings.

jhn_bloom

Implements Bloom filters Based on: Scalable Bloom Filters by Paulo Sérgio Almeida, Carlos Baquero, Nuno Preguiça, David Hutchison

jhn_bstring

String Processing Functions for binary encoded strings.

jhn_cacerts

A cacerts utility lib: This lib will download cacerts from https://mkcert.org/generate/, if not possible it will use a list provided in the application priv-dir.

jhn_cbor

A CBOR library based on

jhn_chash

Consistent hashing

jhn_fsm

This is a generic FSM in the spirit of OTP's gen_fsm but subtly different. A generic server process (jhn_fsm) implemented using this module has a standard set of interface functions. It also fits into an OTP supervision tree and supports generic OTP tooling for, e.g., dynamic upgrades. The FSM can defer acting on incoming events messages to a later state, the defered events/messages are processed when a state-transition happen. The order of deferred events/messages are preserved. An event/message is only deferred when a callback function returns deferred.

jhn_hash

A few checksum algorithms, CRC32-C and xxHash-32.

jhn_hpack

A HPACK library based on

jhn_ip_addr

A IP library based on: IP Version 6 Addressing Architecture (rfc4291) A Recommendation for IPv6 Address Text Representation (rfc5952) Classless Inter-domain Routing (CIDR): (rfc4632) The Internet Address Assignment and Aggregation Plan

jhn_json

A JSON stream library based on

jhn_lazy

A lazy lib.

jhn_magic

A media type determining library based on a subset of the types found in

jhn_math

Misc math functionality.

jhn_msgpack

A MessagePack to and from erlang terms library based on http://wiki.msgpack.org/display/MSGPACK/Format+specification.

jhn_mustache

Mustache template rendering.

jhn_p_tree

Implements Prefix trees that allows you to find a value associated with the longest prefix of the key used. All keys are lists of terms.

jhn_pb_tree

Implements Prefix trees that allows you to find a value associated with the longest prefix of the key used. All keys are utf8 binaries.

jhn_plist

A property list style handling of {Key, Value} tuples.

jhn_r_tree

Implements range trees, where the tree is organized with non-overlapping ranges.

jhn_server

This is a generic server in the spirit of OTP's gen_server but subtly different. The behaviour module provides the server of a client-server relation. A generic server process (jhn_server) implemented using this module has a standard set of interface functions. It also fits into an OTP supervision tree and supports generic OTP tooling for, e.g., dynamic upgrades.

jhn_shadow

A simple lightweight mocking library that allows the mocking of modules and applications and the simplified loading of modules used to mock.

jhn_shttpc

A simple HTTP client based on: Hypertext Transfer Protocol (HTTP/1.1): Message Syntax and Routing (rfc7230) Hypertext Transfer Protocol (HTTP/1.1): Semantics and Content (rfc7231) The Hypertext Transfer Protocol Status Code 308 (Permanent Redirect) (rfc7538) PATCH Method for HTTP (rfc5789) HTTP Over TLS (rfc2818)

jhn_syslog

A Syslog library based on: The Syslog Protocol (rfc5424) Transport Layer Security (TLS) Transport Mapping for Syslog (rfc5425) Transmission of Syslog Messages over UDP (rfc5426) Textual Conventions for Syslog Management (rfc5427) Transmission of Syslog Messages over TCP (rfc6587) Datagram Transport Layer Security (DTLS) Transport Mapping for Syslog (rfc6012)

jhn_t_tree

Implements T-trees extended with an notion of least upp and greatest lower bounds. For more information on T-Trees see: A Study of Index Structures for Main Memory Database Management Systems. by Tobin J. Lehman and Michael J. Carey, VLDB 1986.

jhn_timestamp

A timestamp library based on: Date and Time on the Internet: Timestamps (rfc3339) Hypertext Transfer Protocol (HTTP/1.1): Semantics and Content (rfc7231)

jhn_typeid

A UUID library based on: TypeID Specification (Version 0.3.0) https://github.com/jetify-com/typeid/tree/main/spec

jhn_uri

A URI library based on: Uniform Resource Identifier (URI): Generic Syntax (rfc3986)

jhn_uuid

A UUID library based on: Universally Unique IDentifiers (UUIDs) (rfc9562) Uniform Resource Names (URNs) (rfc8141)