Documentation
¶
Overview ¶
package lognsq provides redirection of messages to a nsqd TCP service. It is used, for example, for aggregating logs from several server instances.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// PrintLogs enables printing of logs to STDERR.
PrintLogs bool
// Topic sets a namespace for messages.
Topic string
// NsqdURL is the URL to http service of an nsqd daemon
NsqdURL string
}
Config provides data necessary to start NSQ session. NSQ is a distributed messaging service.
type LogNSQ ¶
LogNSQ creates a "producer" to the nsqd service. The producer is able to publish messages to nsqd. It cannot consume the messages. If the same config is used for many different apps, all of them are able to contribute their logs to the same namespace using nsqd.
Click to show internal directories.
Click to hide internal directories.