Documentation
¶
Overview ¶
Package render prints decoded NATS messages for a person (pretty) or for a program (one JSON object per line).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsTerminal ¶
IsTerminal reports whether w is a character device, which is where colors help.
func IsTerminalInput ¶
IsTerminalInput reports whether r is a character device, so a command does not wait for input that a person did not pipe in.
Types ¶
type Envelope ¶
type Envelope struct {
Time time.Time
Subject string
Reply string
Header codec.Header
Data []byte
Result codec.Result
}
Envelope is one received message with its decoded payload.