recoverTool

package
v1.1.21 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatStack

func FormatStack(stack string) string

Types

type EmailSvc

type EmailSvc interface {
	Send(toL []string, subject, content string) error
}

type Limit

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

func GetLimit

func GetLimit() *Limit

func (*Limit) Count

func (l *Limit) Count(key string) int64

func (*Limit) Incr

func (l *Limit) Incr(key string)

type Option

type Option struct {
	Service string `json:"service"`
	Env     string `json:"env"`

	EmailReceiver []string `json:"emailReceiver"`
	EmailSvc      EmailSvc `json:"emailSvc"`
}

type RT

type RT = RecoverTool

type RecoverTool

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

func GetRecoverTool

func GetRecoverTool(opt *Option) *RecoverTool

func (*RecoverTool) HandleRecover

func (r *RecoverTool) HandleRecover(ro any, stack string)

func (*RecoverTool) Recover

func (r *RecoverTool) Recover()

Jump to

Keyboard shortcuts

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