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