Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeSender ¶
MakeSender constructs an XMPP logging backend that reads the hostname, username, and password from environment variables:
- GRIP_XMPP_HOSTNAME
- GRIP_XMPP_USERNAME
- GRIP_XMPP_PASSWORD
The instance is otherwise unconfigured.
func MakeXMPPFormatter ¶
func MakeXMPPFormatter(name string) send.MessageFormatter
MakeXMPPFormatter returns a MessageFormatter that will produce messages in the following format, used primarily by the xmpp logger:
[<name>] (p=<priority>) <message>
It can never error.
Types ¶
type ConnectionInfo ¶
type ConnectionInfo struct { Hostname string Username string Password string DisableTLS bool AllowUnencryptedAuth bool // contains filtered or unexported fields }
ConnectionInfo stores all information needed to connect to an XMPP (jabber) server to send log messages.
func GetConnectionInfo ¶
func GetConnectionInfo() ConnectionInfo
GetConnectionInfo builds an XMPPConnectionInfo structure reading default values from the following environment variables:
GRIP_XMPP_HOSTNAME GRIP_XMPP_USERNAME GRIP_XMPP_PASSWORD
Click to show internal directories.
Click to hide internal directories.