errordb

package
v0.0.0-...-c13d752 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Python = "PYTHON"
	Golang = "GO"
)
View Source
var (
	PythonErrorRegex = regexp.MustCompile(`(?s)Traceback \(most recent call last\)\:\n.*`)
)

Functions

This section is empty.

Types

type AppError

type AppError struct {
	StackTrace string `msgpack:"st" json:"stack_trace"`
	Lang       string `msgpack:"l" json:"language"`

	FirstSeen int64 `msgpack:"fs" json:"first_seen"`
	LastSeen  int64 `msgpack:"ls" json:"last_seen"`

	Status string `msgpack:"s" json:"status"`

	Occurrences []*Occurrence `msgpack:"o" json:"occurrences"`

	ID string `msgpack:"-" json:"id"`
}

type ErrorDB

type ErrorDB struct {
	// contains filtered or unexported fields
}

func New

func New(path string) (*ErrorDB, error)

func (*ErrorDB) Close

func (db *ErrorDB) Close() error

func (*ErrorDB) Get

func (db *ErrorDB) Get(eid string) (*AppError, error)

func (*ErrorDB) List

func (db *ErrorDB) List(cursor string, limit int) ([]*AppError, string, error)

func (*ErrorDB) ProcessLogMessage

func (db *ErrorDB) ProcessLogMessage(logRef string, ts int64, message string) error

type Occurrence

type Occurrence struct {
	T      int64  `msgpack:"t" json:"time"`
	LogRef string `msgpack:"r" json:"log_ref"`
}

Jump to

Keyboard shortcuts

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