Versions in this module Expand all Collapse all v1 v1.0.3 May 3, 2020 v1.0.2 May 2, 2020 Changes in this version + const StrInternalError + const StrJSONParseError + const StrNetError + const StrRemoteError + const StrSuccess + func FindPanErr(errno int) (errmsg string) + type DlinkErrInfo struct + Err error + ErrNo int + ErrType ErrType + Msg string + Operation string + func NewDlinkErrInfo(op string) *DlinkErrInfo + func (dle *DlinkErrInfo) Error() string + func (dle *DlinkErrInfo) GetErrType() ErrType + func (dle *DlinkErrInfo) GetError() error + func (dle *DlinkErrInfo) GetOperation() string + func (dle *DlinkErrInfo) GetRemoteErrCode() int + func (dle *DlinkErrInfo) GetRemoteErrMsg() string + func (dle *DlinkErrInfo) SetJSONError(err error) + func (dle *DlinkErrInfo) SetNetError(err error) + func (dle *DlinkErrInfo) SetRemoteError() + type ErrType int + const ErrTypeInternalError + const ErrTypeJSONParseError + const ErrTypeNetError + const ErrTypeOthers + const ErrTypeRemoteError + const ErrorTypeNoError + type Error interface + GetErrType func() ErrType + GetError func() error + GetOperation func() string + GetRemoteErrCode func() int + GetRemoteErrMsg func() string + SetJSONError func(err error) + SetNetError func(err error) + SetRemoteError func() + func DecodePCSJSONError(opreation string, data io.Reader) Error + func DecodePanJSONError(opreation string, data io.Reader) Error + func HandleJSONParse(op string, data io.Reader, info interface{}) (pcsError Error) + type PCSErrInfo struct + Err error + ErrCode int + ErrMsg string + ErrType ErrType + Operation string + func NewPCSErrorInfo(operation string) *PCSErrInfo + func (pcse *PCSErrInfo) Error() string + func (pcse *PCSErrInfo) GetErrType() ErrType + func (pcse *PCSErrInfo) GetError() error + func (pcse *PCSErrInfo) GetOperation() string + func (pcse *PCSErrInfo) GetRemoteErrCode() int + func (pcse *PCSErrInfo) GetRemoteErrMsg() string + func (pcse *PCSErrInfo) SetJSONError(err error) + func (pcse *PCSErrInfo) SetNetError(err error) + func (pcse *PCSErrInfo) SetRemoteError() + type PanErrorInfo struct + Err error + ErrNo int + ErrType ErrType + Operation string + func NewPanErrorInfo(operation string) *PanErrorInfo + func (pane *PanErrorInfo) Error() string + func (pane *PanErrorInfo) GetErrType() ErrType + func (pane *PanErrorInfo) GetError() error + func (pane *PanErrorInfo) GetOperation() string + func (pane *PanErrorInfo) GetRemoteErrCode() int + func (pane *PanErrorInfo) GetRemoteErrMsg() string + func (pane *PanErrorInfo) SetJSONError(err error) + func (pane *PanErrorInfo) SetNetError(err error) + func (pane *PanErrorInfo) SetRemoteError()