xmpp

package
v0.0.0-...-29fb1c0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 8, 2019 License: MIT Imports: 13 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// DEFAULTColor is the default html 'level' color.
	DEFAULTColor = "#00ff00"
	// ERRORColor is the html 'level' color for error messages.
	ERRORColor = "#ff8700"
	// FATALColor is the html 'level' color for fatal messages.
	FATALColor = "#af0000"
	// PANICColor is the html 'level' color for panic messages.
	PANICColor = "#ff0000"
	// WARNColor is the html 'level' color for warning messages.
	WARNColor = "#ffff00"
	// DEBUGColor is the html 'level' color for debug messages.
	DEBUGColor = "#8a8a8a"

	// DataLabelColor is the html data label color.
	DataLabelColor = "#87afff"
	// DataValueColor is the html data value color.
	DataValueColor = "#d7af87"
	// HostnameColor is the html hostname color.
	HostnameColor = "#00afff"
	// TimestampColor is the html timestamp color.
	TimestampColor = "#5faf87"
)

Functions

func Init

func Init(configInterface interface{}, db *database.DB, bot *bot.Bot) output.Output

Types

type Output

type Output struct {
	output.Output
	// contains filtered or unexported fields
}

func (*Output) Close

func (out *Output) Close()

func (*Output) Default

func (out *Output) Default() []*database.Notify

func (*Output) Join

func (out *Output) Join(to string)

func (*Output) Send

func (out *Output) Send(e *log.Entry, to *database.Notify) bool

type OutputConfig

type OutputConfig struct {
	Address  string          `mapstructure:"address"`
	JID      string          `mapstructure:"jid"`
	Password string          `mapstructure:"password"`
	Defaults map[string]bool `mapstructure:"default"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL