reporter

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

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

Go to latest
Published: Apr 22, 2019 License: MIT Imports: 0 Imported by: 6

README

go-reporter

Build Status Go Report Card GoDoc

implementations

Documentation

Overview

Package reporter contains stuctures and interfaces to deal with reporters

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Creator

type Creator interface {
	New() (Reporter, error)
}

Creator describes a struct used to create reporters

type Reporter

type Reporter interface {
	SetUser(u *User)
	AddTag(key, value string)
	AddTags(tags map[string]string)
	ReportError(err error)
	ReportErrorAndWait(err error)
}

Reporter describes a struct used to report errors

type User

type User struct {
	ID       string
	Username string
	Email    string
	IP       string
}

User represents the userdata to be attached to a report

Directories

Path Synopsis
implementations
mailerreporter
Package mailerreporter is an implementation of a Reporter that sends emails
Package mailerreporter is an implementation of a Reporter that sends emails
mockreporter
Package mockreporter is a generated GoMock package.
Package mockreporter is a generated GoMock package.
noopreporter
Package noopreporter is a no-op implementation of a Reporter
Package noopreporter is a no-op implementation of a Reporter
sentryreporter
Package sentryreporter is a Reporter implementation using Sentry
Package sentryreporter is a Reporter implementation using Sentry

Jump to

Keyboard shortcuts

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