mirror of https://github.com/hashicorp/consul
17 lines
411 B
Go
17 lines
411 B
Go
package pbpeerstream
|
|
|
|
const (
|
|
apiTypePrefix = "type.googleapis.com/"
|
|
|
|
TypeURLExportedService = apiTypePrefix + "hashicorp.consul.internal.peerstream.ExportedService"
|
|
TypeURLPeeringTrustBundle = apiTypePrefix + "hashicorp.consul.internal.peering.PeeringTrustBundle"
|
|
)
|
|
|
|
func KnownTypeURL(s string) bool {
|
|
switch s {
|
|
case TypeURLExportedService, TypeURLPeeringTrustBundle:
|
|
return true
|
|
}
|
|
return false
|
|
}
|