ETCD后台服务
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
483 B

3 years ago
  1. package model
  2. import "errors"
  3. // etcd 错误定义
  4. var (
  5. ERR_CONFIG_ISNIL = errors.New("Config is nil")
  6. ERR_TLS_CONFIG_ISNIL = errors.New("TLSConfig is nil")
  7. ERR_ETCD_ADDRESS_EMPTY = errors.New("Etcd connection address cannot be empty")
  8. ERR_UNSUPPORTED_VERSION = errors.New("Unsupported etcd version")
  9. ERR_ADD_KEY = errors.New("Add key error")
  10. ERR_KEY_NOT_FOUND = errors.New("Key does not exist")
  11. ERR_KEY_NOT_DIR = errors.New("Key is not a directory")
  12. )