-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patherrors.go
More file actions
26 lines (21 loc) · 1.2 KB
/
errors.go
File metadata and controls
26 lines (21 loc) · 1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package gateway
import "errors"
var (
// Tree
errKeyIsEmpty = errors.New("[tree]: key is empty")
errMissingSlashPrefix = errors.New("[tree]: urls must be started with a '/'")
errPresentSlashSuffix = errors.New("[tree]: urls must not be ended with a '/'")
errTreeIsNil = errors.New("[tree]: the tree is <nil>")
errBadProtocol = errors.New("[service]: only http or https protocol are supported")
errConfigIsNil = errors.New("[service]: config is <nil>")
errEmptyHost = errors.New("[service]: hostname cant be empty")
errEmptyName = errors.New("[service]: name cant be empty")
errEmptyPort = errors.New("[service]: port cant be empty")
errEmptyPrefix = errors.New("[service]: prefix cant be empty")
errUnsupportedServiceType = errors.New("[service]: gRPC server name empty")
errServiceNotAvailable = errors.New("service is not available")
errRegistryNil = errors.New("[registry]: registry is nil")
errServiceExists = errors.New("[registry]: service already registered")
errServiceTreeNil = errors.New("[registry]: service tree is <nil>")
ErrServiceNotExists = errors.New("[registry]: service not exists")
)