message

package
v0.0.0-...-01f16d4 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2014 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Message

type Message struct {
	Date       string       `json:"date"`
	Time       string       `json:"time"`
	Type       MessageType  `json:"type"`
	Message    string       `json:"message"`
	StackItems []*StackItem `json:"stackItems"`
	Tags       []string     `json:"tags"`
}

func NewMessage

func NewMessage(date, time string, messageType MessageType, message string) *Message

type MessageType

type MessageType int
const (
	UNKNOWN         MessageType = 1
	ERROR_MESSAGE   MessageType = 2
	INFO_MESSAGE    MessageType = 3
	WARNING_MESSAGE MessageType = 4
)

func Lookup

func Lookup(messageType string) MessageType

func (MessageType) String

func (this MessageType) String() string

type StackItem

type StackItem struct {
	FileName     string `json:"fileName"`
	LineNumber   int    `json:"lineNumber"`
	FunctionName string `json:"functionName"`
}

func NewStackItem

func NewStackItem(fileName string, lineNumber int, functionName string) *StackItem

func (*StackItem) ToString

func (this *StackItem) ToString() string

Jump to

Keyboard shortcuts

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