mirror of
https://github.com/number571/go-peer.git
synced 2026-09-14 11:05:42 +05:00
update
This commit is contained in:
parent
c617b5fcb9
commit
cbbbc822a2
File diff suppressed because it is too large
Load Diff
@ -8,7 +8,9 @@ type SAdaptedError struct {
|
||||
str string
|
||||
}
|
||||
|
||||
func (err *SAdaptedError) Error() string { return errPrefix + err.str }
|
||||
func (err *SAdaptedError) Error() string {
|
||||
return errPrefix + err.str
|
||||
}
|
||||
|
||||
var (
|
||||
ErrBuildRequest = &SAdaptedError{"build request"}
|
||||
|
||||
@ -8,7 +8,9 @@ type SConfigError struct {
|
||||
str string
|
||||
}
|
||||
|
||||
func (err *SConfigError) Error() string { return errPrefix + err.str }
|
||||
func (err *SConfigError) Error() string {
|
||||
return errPrefix + err.str
|
||||
}
|
||||
|
||||
var (
|
||||
ErrInvalidConfig = &SConfigError{"invalid config"}
|
||||
|
||||
@ -8,7 +8,9 @@ type SAdaptedError struct {
|
||||
str string
|
||||
}
|
||||
|
||||
func (err *SAdaptedError) Error() string { return errPrefix + err.str }
|
||||
func (err *SAdaptedError) Error() string {
|
||||
return errPrefix + err.str
|
||||
}
|
||||
|
||||
var (
|
||||
ErrBadStatusCode = &SAdaptedError{"bad status code"}
|
||||
|
||||
@ -8,7 +8,9 @@ type SConfigError struct {
|
||||
str string
|
||||
}
|
||||
|
||||
func (err *SConfigError) Error() string { return errPrefix + err.str }
|
||||
func (err *SConfigError) Error() string {
|
||||
return errPrefix + err.str
|
||||
}
|
||||
|
||||
var (
|
||||
ErrInvalidConfig = &SConfigError{"invalid config"}
|
||||
|
||||
@ -8,7 +8,9 @@ type SAdaptedError struct {
|
||||
str string
|
||||
}
|
||||
|
||||
func (err *SAdaptedError) Error() string { return errPrefix + err.str }
|
||||
func (err *SAdaptedError) Error() string {
|
||||
return errPrefix + err.str
|
||||
}
|
||||
|
||||
var (
|
||||
ErrLoadCountService = &SAdaptedError{"load count from service"}
|
||||
|
||||
@ -8,7 +8,9 @@ type SConfigError struct {
|
||||
str string
|
||||
}
|
||||
|
||||
func (err *SConfigError) Error() string { return errPrefix + err.str }
|
||||
func (err *SConfigError) Error() string {
|
||||
return errPrefix + err.str
|
||||
}
|
||||
|
||||
var (
|
||||
ErrLoadLogging = &SConfigError{"load logging"}
|
||||
|
||||
@ -8,7 +8,9 @@ type SAdaptedError struct {
|
||||
str string
|
||||
}
|
||||
|
||||
func (err *SAdaptedError) Error() string { return errPrefix + err.str }
|
||||
func (err *SAdaptedError) Error() string {
|
||||
return errPrefix + err.str
|
||||
}
|
||||
|
||||
var (
|
||||
ErrInvalidResponse = &SAdaptedError{"invalid response"}
|
||||
|
||||
@ -8,7 +8,9 @@ type SConfigError struct {
|
||||
str string
|
||||
}
|
||||
|
||||
func (err *SConfigError) Error() string { return errPrefix + err.str }
|
||||
func (err *SConfigError) Error() string {
|
||||
return errPrefix + err.str
|
||||
}
|
||||
|
||||
var (
|
||||
ErrInvalidConfig = &SConfigError{"invalid config"}
|
||||
|
||||
@ -8,7 +8,9 @@ type SConfigError struct {
|
||||
str string
|
||||
}
|
||||
|
||||
func (err *SConfigError) Error() string { return errPrefix + err.str }
|
||||
func (err *SConfigError) Error() string {
|
||||
return errPrefix + err.str
|
||||
}
|
||||
|
||||
var (
|
||||
ErrInvalidConfig = &SConfigError{"invalid config"}
|
||||
|
||||
@ -8,7 +8,9 @@ type SHandlerError struct {
|
||||
str string
|
||||
}
|
||||
|
||||
func (err *SHandlerError) Error() string { return errPrefix + err.str }
|
||||
func (err *SHandlerError) Error() string {
|
||||
return errPrefix + err.str
|
||||
}
|
||||
|
||||
var (
|
||||
ErrReadOnlineConnections = &SHandlerError{"read online connections"}
|
||||
|
||||
@ -8,7 +8,9 @@ type SStreamError struct {
|
||||
str string
|
||||
}
|
||||
|
||||
func (err *SStreamError) Error() string { return errPrefix + err.str }
|
||||
func (err *SStreamError) Error() string {
|
||||
return errPrefix + err.str
|
||||
}
|
||||
|
||||
var (
|
||||
ErrWriteFileChunk = &SStreamError{"write file chunk"}
|
||||
|
||||
@ -8,7 +8,9 @@ type SUtilsError struct {
|
||||
str string
|
||||
}
|
||||
|
||||
func (err *SUtilsError) Error() string { return errPrefix + err.str }
|
||||
func (err *SUtilsError) Error() string {
|
||||
return errPrefix + err.str
|
||||
}
|
||||
|
||||
var (
|
||||
ErrRespSizeGeLimit = &SUtilsError{"response size >= limit message size"}
|
||||
|
||||
@ -8,7 +8,9 @@ type SAppError struct {
|
||||
str string
|
||||
}
|
||||
|
||||
func (err *SAppError) Error() string { return errPrefix + err.str }
|
||||
func (err *SAppError) Error() string {
|
||||
return errPrefix + err.str
|
||||
}
|
||||
|
||||
var (
|
||||
ErrRunning = &SAppError{"app running"}
|
||||
|
||||
@ -10,7 +10,9 @@ type SClientError struct {
|
||||
str string
|
||||
}
|
||||
|
||||
func (err *SClientError) Error() string { return errPrefix + err.str }
|
||||
func (err *SClientError) Error() string {
|
||||
return errPrefix + err.str
|
||||
}
|
||||
|
||||
var (
|
||||
ErrBadRequest = errors.New(errPrefix + "bad request")
|
||||
|
||||
@ -8,7 +8,9 @@ type SConfigError struct {
|
||||
str string
|
||||
}
|
||||
|
||||
func (err *SConfigError) Error() string { return errPrefix + err.str }
|
||||
func (err *SConfigError) Error() string {
|
||||
return errPrefix + err.str
|
||||
}
|
||||
|
||||
var (
|
||||
ErrInvalidConfig = &SConfigError{"invalid config"}
|
||||
|
||||
@ -8,7 +8,9 @@ type SDatabaseError struct {
|
||||
str string
|
||||
}
|
||||
|
||||
func (err *SDatabaseError) Error() string { return errPrefix + err.str }
|
||||
func (err *SDatabaseError) Error() string {
|
||||
return errPrefix + err.str
|
||||
}
|
||||
|
||||
var (
|
||||
ErrLoadMessage = &SDatabaseError{"load message"}
|
||||
|
||||
@ -8,7 +8,9 @@ type SHandlerError struct {
|
||||
str string
|
||||
}
|
||||
|
||||
func (err *SHandlerError) Error() string { return errPrefix + err.str }
|
||||
func (err *SHandlerError) Error() string {
|
||||
return errPrefix + err.str
|
||||
}
|
||||
|
||||
var (
|
||||
ErrReadConnections = &SHandlerError{"read connections"}
|
||||
|
||||
@ -8,7 +8,9 @@ type SUtilsError struct {
|
||||
str string
|
||||
}
|
||||
|
||||
func (err *SUtilsError) Error() string { return errPrefix + err.str }
|
||||
func (err *SUtilsError) Error() string {
|
||||
return errPrefix + err.str
|
||||
}
|
||||
|
||||
var (
|
||||
ErrGetSizeInBase64 = &SUtilsError{"get size in base64"}
|
||||
|
||||
@ -8,7 +8,9 @@ type SAppError struct {
|
||||
str string
|
||||
}
|
||||
|
||||
func (err *SAppError) Error() string { return errPrefix + err.str }
|
||||
func (err *SAppError) Error() string {
|
||||
return errPrefix + err.str
|
||||
}
|
||||
|
||||
var (
|
||||
ErrRunning = &SAppError{"app running"}
|
||||
|
||||
@ -8,7 +8,9 @@ type SClientError struct {
|
||||
str string
|
||||
}
|
||||
|
||||
func (err *SClientError) Error() string { return errPrefix + err.str }
|
||||
func (err *SClientError) Error() string {
|
||||
return errPrefix + err.str
|
||||
}
|
||||
|
||||
var (
|
||||
ErrBadRequest = &SClientError{"bad request"}
|
||||
|
||||
@ -8,7 +8,9 @@ type SConfigError struct {
|
||||
str string
|
||||
}
|
||||
|
||||
func (err *SConfigError) Error() string { return errPrefix + err.str }
|
||||
func (err *SConfigError) Error() string {
|
||||
return errPrefix + err.str
|
||||
}
|
||||
|
||||
var (
|
||||
ErrInvalidConfig = &SConfigError{"invalid config"}
|
||||
|
||||
@ -8,7 +8,9 @@ type SAppError struct {
|
||||
str string
|
||||
}
|
||||
|
||||
func (err *SAppError) Error() string { return errPrefix + err.str }
|
||||
func (err *SAppError) Error() string {
|
||||
return errPrefix + err.str
|
||||
}
|
||||
|
||||
var (
|
||||
ErrRunning = &SAppError{"app running"}
|
||||
|
||||
@ -8,7 +8,9 @@ type SConfigError struct {
|
||||
str string
|
||||
}
|
||||
|
||||
func (err *SConfigError) Error() string { return errPrefix + err.str }
|
||||
func (err *SConfigError) Error() string {
|
||||
return errPrefix + err.str
|
||||
}
|
||||
|
||||
var (
|
||||
ErrInvalidConfig = &SConfigError{"invalid config"}
|
||||
|
||||
@ -8,7 +8,9 @@ type SAppError struct {
|
||||
str string
|
||||
}
|
||||
|
||||
func (err *SAppError) Error() string { return errPrefix + err.str }
|
||||
func (err *SAppError) Error() string {
|
||||
return errPrefix + err.str
|
||||
}
|
||||
|
||||
var (
|
||||
ErrRunning = &SAppError{"app running"}
|
||||
|
||||
@ -8,7 +8,9 @@ type SClientError struct {
|
||||
str string
|
||||
}
|
||||
|
||||
func (err *SClientError) Error() string { return errPrefix + err.str }
|
||||
func (err *SClientError) Error() string {
|
||||
return errPrefix + err.str
|
||||
}
|
||||
|
||||
var (
|
||||
ErrBadRequest = &SClientError{"bad request"}
|
||||
|
||||
@ -8,7 +8,9 @@ type SConfigError struct {
|
||||
str string
|
||||
}
|
||||
|
||||
func (err *SConfigError) Error() string { return errPrefix + err.str }
|
||||
func (err *SConfigError) Error() string {
|
||||
return errPrefix + err.str
|
||||
}
|
||||
|
||||
var (
|
||||
ErrInvalidConfig = &SConfigError{"invalid config"}
|
||||
|
||||
@ -8,7 +8,9 @@ type SAppError struct {
|
||||
str string
|
||||
}
|
||||
|
||||
func (err *SAppError) Error() string { return errPrefix + err.str }
|
||||
func (err *SAppError) Error() string {
|
||||
return errPrefix + err.str
|
||||
}
|
||||
|
||||
var (
|
||||
ErrRunning = &SAppError{"app running"}
|
||||
|
||||
@ -8,7 +8,9 @@ type SClientError struct {
|
||||
str string
|
||||
}
|
||||
|
||||
func (err *SClientError) Error() string { return errPrefix + err.str }
|
||||
func (err *SClientError) Error() string {
|
||||
return errPrefix + err.str
|
||||
}
|
||||
|
||||
var (
|
||||
ErrBadRequest = &SClientError{"bad request"}
|
||||
|
||||
@ -8,7 +8,9 @@ type SConfigError struct {
|
||||
str string
|
||||
}
|
||||
|
||||
func (err *SConfigError) Error() string { return errPrefix + err.str }
|
||||
func (err *SConfigError) Error() string {
|
||||
return errPrefix + err.str
|
||||
}
|
||||
|
||||
var (
|
||||
ErrInvalidConfig = &SConfigError{"invalid config"}
|
||||
|
||||
@ -8,7 +8,9 @@ type SAppError struct {
|
||||
str string
|
||||
}
|
||||
|
||||
func (err *SAppError) Error() string { return errPrefix + err.str }
|
||||
func (err *SAppError) Error() string {
|
||||
return errPrefix + err.str
|
||||
}
|
||||
|
||||
var (
|
||||
ErrRunning = &SAppError{"app running"}
|
||||
|
||||
@ -8,7 +8,9 @@ type SClientError struct {
|
||||
str string
|
||||
}
|
||||
|
||||
func (err *SClientError) Error() string { return errPrefix + err.str }
|
||||
func (err *SClientError) Error() string {
|
||||
return errPrefix + err.str
|
||||
}
|
||||
|
||||
var (
|
||||
ErrBadRequest = &SClientError{"bad request"}
|
||||
|
||||
@ -8,7 +8,9 @@ type SConfigError struct {
|
||||
str string
|
||||
}
|
||||
|
||||
func (err *SConfigError) Error() string { return errPrefix + err.str }
|
||||
func (err *SConfigError) Error() string {
|
||||
return errPrefix + err.str
|
||||
}
|
||||
|
||||
var (
|
||||
ErrInvalidConfig = &SConfigError{"invalid config"}
|
||||
|
||||
@ -8,7 +8,9 @@ type SDatabaseError struct {
|
||||
str string
|
||||
}
|
||||
|
||||
func (err *SDatabaseError) Error() string { return errPrefix + err.str }
|
||||
func (err *SDatabaseError) Error() string {
|
||||
return errPrefix + err.str
|
||||
}
|
||||
|
||||
var (
|
||||
ErrMessageIsExist = &SDatabaseError{"message is exist"}
|
||||
|
||||
@ -8,7 +8,9 @@ type SHandlerError struct {
|
||||
str string
|
||||
}
|
||||
|
||||
func (err *SHandlerError) Error() string { return errPrefix + err.str }
|
||||
func (err *SHandlerError) Error() string {
|
||||
return errPrefix + err.str
|
||||
}
|
||||
|
||||
var (
|
||||
ErrLoadMessage = &SHandlerError{"load message"}
|
||||
|
||||
@ -8,7 +8,9 @@ type SAppError struct {
|
||||
str string
|
||||
}
|
||||
|
||||
func (err *SAppError) Error() string { return errPrefix + err.str }
|
||||
func (err *SAppError) Error() string {
|
||||
return errPrefix + err.str
|
||||
}
|
||||
|
||||
var (
|
||||
ErrRunning = &SAppError{"app running"}
|
||||
|
||||
@ -8,7 +8,9 @@ type SClientError struct {
|
||||
str string
|
||||
}
|
||||
|
||||
func (err *SClientError) Error() string { return errPrefix + err.str }
|
||||
func (err *SClientError) Error() string {
|
||||
return errPrefix + err.str
|
||||
}
|
||||
|
||||
var (
|
||||
ErrBadRequest = &SClientError{"bad request"}
|
||||
|
||||
@ -8,7 +8,9 @@ type SConfigError struct {
|
||||
str string
|
||||
}
|
||||
|
||||
func (err *SConfigError) Error() string { return errPrefix + err.str }
|
||||
func (err *SConfigError) Error() string {
|
||||
return errPrefix + err.str
|
||||
}
|
||||
|
||||
var (
|
||||
ErrNotSupportedKeySize = &SConfigError{"not supported key size"}
|
||||
|
||||
@ -8,7 +8,9 @@ type SHandlerError struct {
|
||||
str string
|
||||
}
|
||||
|
||||
func (err *SHandlerError) Error() string { return errPrefix + err.str }
|
||||
func (err *SHandlerError) Error() string {
|
||||
return errPrefix + err.str
|
||||
}
|
||||
|
||||
var (
|
||||
ErrBadRequest = &SHandlerError{"bad request"}
|
||||
|
||||
@ -8,7 +8,9 @@ type SAppError struct {
|
||||
str string
|
||||
}
|
||||
|
||||
func (err *SAppError) Error() string { return errPrefix + err.str }
|
||||
func (err *SAppError) Error() string {
|
||||
return errPrefix + err.str
|
||||
}
|
||||
|
||||
var (
|
||||
ErrRunning = &SAppError{"app running"}
|
||||
|
||||
@ -8,7 +8,9 @@ type SClientError struct {
|
||||
str string
|
||||
}
|
||||
|
||||
func (err *SClientError) Error() string { return errPrefix + err.str }
|
||||
func (err *SClientError) Error() string {
|
||||
return errPrefix + err.str
|
||||
}
|
||||
|
||||
var (
|
||||
ErrBadRequest = &SClientError{"bad request"}
|
||||
|
||||
@ -8,7 +8,9 @@ type SApiError struct {
|
||||
str string
|
||||
}
|
||||
|
||||
func (err *SApiError) Error() string { return errPrefix + err.str }
|
||||
func (err *SApiError) Error() string {
|
||||
return errPrefix + err.str
|
||||
}
|
||||
|
||||
var (
|
||||
ErrBadStatusCode = &SApiError{"bad status code"}
|
||||
|
||||
@ -8,7 +8,9 @@ type SBase64Error struct {
|
||||
str string
|
||||
}
|
||||
|
||||
func (err *SBase64Error) Error() string { return errPrefix + err.str }
|
||||
func (err *SBase64Error) Error() string {
|
||||
return errPrefix + err.str
|
||||
}
|
||||
|
||||
var (
|
||||
ErrBase64Size = &SBase64Error{"base64 size"}
|
||||
|
||||
@ -8,7 +8,9 @@ type SLanguageError struct {
|
||||
str string
|
||||
}
|
||||
|
||||
func (err *SLanguageError) Error() string { return errPrefix + err.str }
|
||||
func (err *SLanguageError) Error() string {
|
||||
return errPrefix + err.str
|
||||
}
|
||||
|
||||
var (
|
||||
ErrUnknownLanguage = &SLanguageError{"unknown language"}
|
||||
|
||||
@ -8,7 +8,9 @@ type SStdError struct {
|
||||
str string
|
||||
}
|
||||
|
||||
func (err *SStdError) Error() string { return errPrefix + err.str }
|
||||
func (err *SStdError) Error() string {
|
||||
return errPrefix + err.str
|
||||
}
|
||||
|
||||
var (
|
||||
ErrUnknownLogType = &SStdError{"unknown log type"}
|
||||
|
||||
@ -8,7 +8,9 @@ type SClientError struct {
|
||||
str string
|
||||
}
|
||||
|
||||
func (err *SClientError) Error() string { return errPrefix + err.str }
|
||||
func (err *SClientError) Error() string {
|
||||
return errPrefix + err.str
|
||||
}
|
||||
|
||||
var (
|
||||
ErrLimitMessageSize = &SClientError{"limit message size"}
|
||||
|
||||
@ -8,7 +8,9 @@ type SMessageError struct {
|
||||
str string
|
||||
}
|
||||
|
||||
func (err *SMessageError) Error() string { return errPrefix + err.str }
|
||||
func (err *SMessageError) Error() string {
|
||||
return errPrefix + err.str
|
||||
}
|
||||
|
||||
var (
|
||||
ErrUnknownType = &SMessageError{"unknown type of message"}
|
||||
|
||||
@ -8,7 +8,9 @@ type SDatabaseError struct {
|
||||
str string
|
||||
}
|
||||
|
||||
func (err *SDatabaseError) Error() string { return errPrefix + err.str }
|
||||
func (err *SDatabaseError) Error() string {
|
||||
return errPrefix + err.str
|
||||
}
|
||||
|
||||
var (
|
||||
ErrOpenDB = &SDatabaseError{"open database"}
|
||||
|
||||
@ -8,7 +8,9 @@ type SEncodingError struct {
|
||||
str string
|
||||
}
|
||||
|
||||
func (err *SEncodingError) Error() string { return errPrefix + err.str }
|
||||
func (err *SEncodingError) Error() string {
|
||||
return errPrefix + err.str
|
||||
}
|
||||
|
||||
var (
|
||||
ErrDeserialize = &SEncodingError{"deserialize bytes"}
|
||||
|
||||
@ -8,7 +8,9 @@ type SAnonymityError struct {
|
||||
str string
|
||||
}
|
||||
|
||||
func (err *SAnonymityError) Error() string { return errPrefix + err.str }
|
||||
func (err *SAnonymityError) Error() string {
|
||||
return errPrefix + err.str
|
||||
}
|
||||
|
||||
var (
|
||||
ErrSetHashIntoDB = &SAnonymityError{"set hash into database"}
|
||||
|
||||
@ -8,7 +8,9 @@ type SQueueError struct {
|
||||
str string
|
||||
}
|
||||
|
||||
func (err *SQueueError) Error() string { return errPrefix + err.str }
|
||||
func (err *SQueueError) Error() string {
|
||||
return errPrefix + err.str
|
||||
}
|
||||
|
||||
var (
|
||||
ErrRunning = &SQueueError{"queue running"}
|
||||
|
||||
@ -8,7 +8,9 @@ type SConnError struct {
|
||||
str string
|
||||
}
|
||||
|
||||
func (err *SConnError) Error() string { return errPrefix + err.str }
|
||||
func (err *SConnError) Error() string {
|
||||
return errPrefix + err.str
|
||||
}
|
||||
|
||||
var (
|
||||
ErrReadFromSocket = &SConnError{"read from socket"}
|
||||
|
||||
@ -8,7 +8,9 @@ type SConnKeeperError struct {
|
||||
str string
|
||||
}
|
||||
|
||||
func (err *SConnKeeperError) Error() string { return errPrefix + err.str }
|
||||
func (err *SConnKeeperError) Error() string {
|
||||
return errPrefix + err.str
|
||||
}
|
||||
|
||||
var (
|
||||
ErrRunning = &SConnKeeperError{"connkeeper running"}
|
||||
|
||||
@ -8,7 +8,9 @@ type SNetworkError struct {
|
||||
str string
|
||||
}
|
||||
|
||||
func (err *SNetworkError) Error() string { return errPrefix + err.str }
|
||||
func (err *SNetworkError) Error() string {
|
||||
return errPrefix + err.str
|
||||
}
|
||||
|
||||
var (
|
||||
ErrNoConnections = &SNetworkError{"no connections"}
|
||||
|
||||
@ -8,7 +8,9 @@ type SMessageError struct {
|
||||
str string
|
||||
}
|
||||
|
||||
func (err *SMessageError) Error() string { return errPrefix + err.str }
|
||||
func (err *SMessageError) Error() string {
|
||||
return errPrefix + err.str
|
||||
}
|
||||
|
||||
var (
|
||||
ErrUnknownType = &SMessageError{"unknown type"}
|
||||
|
||||
@ -8,7 +8,9 @@ type SStateError struct {
|
||||
str string
|
||||
}
|
||||
|
||||
func (err *SStateError) Error() string { return errPrefix + err.str }
|
||||
func (err *SStateError) Error() string {
|
||||
return errPrefix + err.str
|
||||
}
|
||||
|
||||
var (
|
||||
ErrStateEnabled = &SStateError{"state already enabled"}
|
||||
|
||||
26914
test/result/coverage.out
26914
test/result/coverage.out
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user