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