handlers

package
v0.0.0-...-795e254 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IPHandler

type IPHandler struct {
	loggy.Loggy
	*url.URL
	IPs []net.IP
}

IPHandler for check IPs change

func (*IPHandler) Handle

func (h *IPHandler) Handle(accident string)

Handle is IPHandler's Handle implement

type LogHandler

type LogHandler struct {
	Delay    int
	Try      int
	SendTime int
	loggy.Loggy
	notify.Notifier
	connector.Connector
	LastLogs chan string
}

LogHandler can store last log and send notify

func (*LogHandler) Handle

func (h *LogHandler) Handle(accident string)

Handle is Loghandler's Handle implement

type SentryHandler

type SentryHandler struct {
}

SentryHandler handle the accident to sentry DSN

func NewSentryHandler

func NewSentryHandler(options sentry.ClientOptions) *SentryHandler

NewSentryHandler to init sentry hub

func (*SentryHandler) Handle

func (sh *SentryHandler) Handle(accident string)

Handle is SentryHandler implement

Jump to

Keyboard shortcuts

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