package
0.0.0-20240621172328-9750751a5335
Repository: https://github.com/paypal/junodb.git
Documentation: pkg.go.dev
# Functions
AddHeader returns data ready for sending to the CAL daemon by returning msg prepended by a CAL message header.
CleanNamespace makes s an appropriate CAL namespace (Type or Name) field by dropping disallowed characters, truncating it as necessary, and substituting namespaceUnset for "".
CleanStatus makes s an appropriate CAL status.
NewMsg creates a new Msg with required fields populated.
NewTxn creates a new transaction and populates Txn.Start and Txn.End by calling NewMsg with the specified typ and name.
ParseMsg parses an encoded CAL message.
ParseMsgHeader parses b; b is assumed to have come off the wire.
# Constants
CAL message Class field options.
CAL logging type.
CAL logging type.
CAL message Class field options.
CAL message Class field options.
No description provided by the author
maxMsgLen is the longest wire-formatted message length of CAL messages.
MaxNamespaceLen is the longest allowed string for CAL namespace (Msg's Name or Type) fields.
Length of encoded MsgHeaders.
CAL message Class field options.
CAL message Class field options.
# Structs
Msg is a single log message.
ClientInfo is info sent once by the client on initial connection to the server.
MsgHeader is a header sent before all individual CAL messages, including the ClientInfo sent on initial connection.
ServiceCallInfo represents a single node within a chain of service calls.
Txn contains a pair of events that MUST ALWAYS be sent in pairs.
# Type aliases
Data is the data that gets sent with CAL messages.