startup.go 387 B

1234567891011121314151617181920212223
  1. package initutils
  2. import (
  3. clientv3 "go.etcd.io/etcd/client/v3"
  4. )
  5. const (
  6. RegistryTypeEtcd = "etcd"
  7. RegistryTypeLocal = "local"
  8. RegistryTypeEnv = "env"
  9. )
  10. type Startup struct {
  11. Name string
  12. Version string
  13. FlagConf string
  14. Group string
  15. Namespace string
  16. ConfigSource string
  17. RegistryType string
  18. EctdClient *clientv3.Client
  19. Cleanup func()
  20. }