chatlog

package module
v0.0.0-...-f2378f0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2017 License: GPL-3.0 Imports: 4 Imported by: 0

README

Celestial Stats - Chatlog Library

Celestial Stats strives to the premier platform for chat statistics. Any platform. Any statistic.

This is the chat logging library for saving, writing, and reading chat logs in a structured way.

Build Status

GoDoc

License

Celestial Stats is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

Celestial Stats is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with Celestial Stats. If not, see http://www.gnu.org/licenses/.

Documentation

Overview

Package chatlog provides a structure way of storing chatlogs for consumption by CelestialStats.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChatLog

type ChatLog struct {
	Protocol string
	Server   string
	// contains filtered or unexported fields
}

func NewChatLog

func NewChatLog(rmqHostname, rmqPort, rmqUsername, rmqPassword, rmqLogQueue, Protocol string, MaxQueue int) *ChatLog

NewChatLog returns a new ChatLog ready to recieve log entries and write them to disk.

func (*ChatLog) AddEntry

func (chatLog *ChatLog) AddEntry(newEntry map[string]string)

AddEntry adds a map representing the chat message to the log channel. It also appends the current Unix Timestamp in milliseconds to the map.

Jump to

Keyboard shortcuts

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