diagnostics

package
v2.0.0+incompatible Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockNotification

type MockNotification struct {
	Err interface{}
	Req *http.Request
}

MockNotification is a mocked notification.

type MockNotifier

type MockNotifier chan MockNotification

MockNotifier is a testing notifier.

func (MockNotifier) Notify

func (mn MockNotifier) Notify(err interface{}) error

Notify notifies with an error.

func (MockNotifier) NotifyWithRequest

func (mn MockNotifier) NotifyWithRequest(err interface{}, req *http.Request) error

NotifyWithRequest notifies with a request.

type Notifier

type Notifier interface {
	Notify(err interface{}) error
	NotifyWithRequest(err interface{}, req *http.Request) error
}

Notifier is a diagnostics notifier.

Jump to

Keyboard shortcuts

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