Documentation ¶
Index ¶
Constants ¶
Variables ¶
This section is empty.
Functions ¶
func HandleString ¶
Types ¶
type ErrorHandle ¶
type HandlerManage ¶
type HandlerManage interface { Add(method string, eh ErrorHandle) Handle(in error, flag int, level string) HandleString(in string, flag int, level string) DisplayHandler() string }
var (
GlobalManager HandlerManage
)
type HandlerManager ¶
type HandlerManager struct {
HandlerMap map[string]ErrorHandle
}
func NewHandlerManager ¶
func NewHandlerManager() *HandlerManager
func (*HandlerManager) Add ¶
func (hm *HandlerManager) Add(method string, eh ErrorHandle)
func (*HandlerManager) DisplayHandler ¶
func (hm *HandlerManager) DisplayHandler() string
func (*HandlerManager) HandleString ¶
func (hm *HandlerManager) HandleString(in string, flag int, level string)
Click to show internal directories.
Click to hide internal directories.