add host-rewrite options to config.proto (#2668)

This commit is contained in:
Denis Mishin 2021-10-08 11:50:56 -04:00 committed by GitHub
parent 8a8dcdf491
commit 55fec9b51b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 455 additions and 392 deletions

View file

@ -15,7 +15,7 @@ import (
"time"
"unicode/utf8"
"github.com/golang/protobuf/ptypes"
"google.golang.org/protobuf/types/known/anypb"
)
// ensure the imports are used
@ -30,12 +30,9 @@ var (
_ = time.Duration(0)
_ = (*url.URL)(nil)
_ = (*mail.Address)(nil)
_ = ptypes.DynamicAny{}
_ = anypb.Any{}
)
// define the regex for a UUID once up-front
var _registry_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$")
// Validate checks the field values on Service with the rules defined in the
// proto definition for this message. If any rules are violated, an error is returned.
func (m *Service) Validate() error {