frist
This commit is contained in:
16
internal/model/errors.go
Normal file
16
internal/model/errors.go
Normal file
@@ -0,0 +1,16 @@
|
||||
package model
|
||||
|
||||
import "errors"
|
||||
|
||||
var (
|
||||
ErrNoProxy = errors.New("no available proxy")
|
||||
ErrBadModulo = errors.New("modulo must be positive")
|
||||
ErrBadPolicy = errors.New("unknown selection policy")
|
||||
ErrLeaseExpired = errors.New("lease expired or not found")
|
||||
ErrProxyNotFound = errors.New("proxy not found")
|
||||
ErrInvalidURL = errors.New("invalid URL")
|
||||
ErrPrivateIP = errors.New("private IP address not allowed")
|
||||
ErrUnsafeScheme = errors.New("only http and https schemes are allowed")
|
||||
ErrInvalidPatch = errors.New("invalid patch: no fields to update")
|
||||
ErrBulkDeleteEmpty = errors.New("bulk delete requires at least one condition")
|
||||
)
|
||||
Reference in New Issue
Block a user