consul/proto/pbpeerstream/types.go

11 lines
237 B
Go
Raw Normal View History

package pbpeerstream
const (
TypeURLService = "type.googleapis.com/consul.api.Service"
TypeURLRoots = "type.googleapis.com/consul.api.CARoots"
)
func KnownTypeURL(s string) bool {
return s == TypeURLService || s == TypeURLRoots
}