View Source API Reference jhn_stdlib v5.1.0
Modules
A Bencoding library based on: The BitTorrent specification
String Processing Functions for binary encoded strings.
Implements Bloom filters Based on: Scalable Bloom Filters by Paulo Sérgio Almeida, Carlos Baquero, Nuno Preguiça, David Hutchison
String Processing Functions for binary encoded strings.
A CBOR library based on
Consistent hashing
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. En event/messages is only deferred when a callback function returns deferred.
A few checksum algorithms, CRC32-C and xxHash-32.
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
A JSON stream library based on
A lazy lib.
Misc math functionality.
A MessagePack to and from erlang terms library based on http://wiki.msgpack.org/display/MSGPACK/Format+specification.
Mustache template rendering.
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.
Implements Prefix trees that allows you to find a value associated with the longest prefix of the key used. All keys are utf8 binaries.
A property list style handling of {Key, Value} tuples.
Implements range trees, where the tree is organized with non-overlapping ranges.
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.
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)
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)
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.
A timestamp library based on: Date and Time on the Internet: Timestamps (rfc3339) Hypertext Transfer Protocol (HTTP/1.1): Semantics and Content (rfc7231)
A URI library based on: Uniform Resource Identifier (URI): Generic Syntax (rfc3986)
A UUID library based on: Universally Unique IDentifiers (UUIDs) (rfc9562) Uniform Resource Names (URNs) (rfc8141)