github.com/kaydxh/golang@v0.0.131/pkg/resolver/resolver.proto (about) 1 syntax = "proto3"; 2 3 package go.pkg.resolver; 4 import "google/protobuf/duration.proto"; 5 6 option go_package = "github.com/kaydxh/go.pkg.resolver;resolver"; 7 8 message Resolver { 9 bool enabled = 1; 10 ResolverType resolver_type = 2; 11 LoadBalanceMode load_balance_mode = 3; 12 google.protobuf.Duration resolve_interval = 4; 13 repeated string domains = 5; 14 K8s k8s = 6; 15 16 message K8s { 17 repeated string service_names = 1; 18 string node_group = 2; 19 string node_unit = 3; 20 } 21 22 enum ResolverType { 23 resolver_type_dns = 0; 24 resolver_type_consul = 1; 25 resolver_type_k8s = 2; 26 } 27 enum LoadBalanceMode { 28 load_balance_mode_random = 0; 29 load_balance_mode_consist = 1; 30 } 31 }