diff --git a/utils/guid/id.go b/utils/guid/id.go index bd28610ba..0dd0c8245 100644 --- a/utils/guid/id.go +++ b/utils/guid/id.go @@ -35,38 +35,39 @@ import ( const Size = 12 const ( - RoomPrefix = "RM_" - NodePrefix = "ND_" - ParticipantPrefix = "PA_" - TrackPrefix = "TR_" - DataTrackPrefix = "DTR_" - APIKeyPrefix = "API" - EgressPrefix = "EG_" - IngressPrefix = "IN_" - SIPTrunkPrefix = "ST_" - SIPDispatchRulePrefix = "SDR_" - SIPCallPrefix = "SCL_" - SIPTransferPrefix = "STR_" - RPCPrefix = "RPC_" - WHIPResourcePrefix = "WH_" - RTMPResourcePrefix = "RT_" - URLResourcePrefix = "UR_" - SIPHostnamePrefix = "SH" - AgentPrefix = "A_" - AgentWorkerPrefix = "AW_" - AgentJobPrefix = "AJ_" - AgentDispatchPrefix = "AD_" - AgentBuilderPrefix = "AB_" - AgentBuilderVersionPrefix = "ABV_" - CloudAgentPrefix = "CA_" - CloudAgentRegionPrefix = "CAR_" - CloudAgentVersionPrefix = "CAV_" - CloudAgentSecretPrefix = "CAS_" - CloudAgentWorkerPrefix = "CAW_" - CloudAgentPrivateLinkPrefix = "CAPL_" - AgentGatewayPrefix = "GW_" - CarrierPrefix = "CR_" - PhoneNumberPrefix = "PN_" + RoomPrefix = "RM_" + NodePrefix = "ND_" + ParticipantPrefix = "PA_" + TrackPrefix = "TR_" + DataTrackPrefix = "DTR_" + APIKeyPrefix = "API" + EgressPrefix = "EG_" + IngressPrefix = "IN_" + SIPTrunkPrefix = "ST_" + SIPDispatchRulePrefix = "SDR_" + SIPCallPrefix = "SCL_" + SIPTransferPrefix = "STR_" + RPCPrefix = "RPC_" + WHIPResourcePrefix = "WH_" + RTMPResourcePrefix = "RT_" + URLResourcePrefix = "UR_" + SIPHostnamePrefix = "SH" + AgentPrefix = "A_" + AgentWorkerPrefix = "AW_" + AgentJobPrefix = "AJ_" + AgentDispatchPrefix = "AD_" + AgentBuilderPrefix = "AB_" + AgentBuilderVersionPrefix = "ABV_" + CloudAgentPrefix = "CA_" + CloudAgentRegionPrefix = "CAR_" + CloudAgentVersionPrefix = "CAV_" + CloudAgentSecretPrefix = "CAS_" + CloudAgentWorkerPrefix = "CAW_" + CloudAgentPrivateLinkPrefix = "CAPL_" + CloudAgentPrivateLinkSecretPrefix = "CAPLS_" + AgentGatewayPrefix = "GW_" + CarrierPrefix = "CR_" + PhoneNumberPrefix = "PN_" ) var guidGeneratorPool = sync.Pool{ diff --git a/utils/id.go b/utils/id.go index b8d6a8948..fa5a86dd8 100644 --- a/utils/id.go +++ b/utils/id.go @@ -24,32 +24,33 @@ const ( ) const ( - RoomPrefix = guid.RoomPrefix - NodePrefix = guid.NodePrefix - ParticipantPrefix = guid.ParticipantPrefix - TrackPrefix = guid.TrackPrefix - DataTrackPrefix = guid.DataTrackPrefix - APIKeyPrefix = guid.APIKeyPrefix - EgressPrefix = guid.EgressPrefix - IngressPrefix = guid.IngressPrefix - SIPTrunkPrefix = guid.SIPTrunkPrefix - SIPDispatchRulePrefix = guid.SIPDispatchRulePrefix - SIPCallPrefix = guid.SIPCallPrefix - SIPTransferPrefix = guid.SIPTransferPrefix - RPCPrefix = guid.RPCPrefix - WHIPResourcePrefix = guid.WHIPResourcePrefix - RTMPResourcePrefix = guid.RTMPResourcePrefix - URLResourcePrefix = guid.URLResourcePrefix - SIPHostnamePrefix = guid.SIPHostnamePrefix - AgentWorkerPrefix = guid.AgentWorkerPrefix - AgentJobPrefix = guid.AgentJobPrefix - AgentDispatchPrefix = guid.AgentDispatchPrefix - CloudAgentPrefix = guid.CloudAgentPrefix - CloudAgentRegionPrefix = guid.CloudAgentRegionPrefix - CloudAgentVersionPrefix = guid.CloudAgentVersionPrefix - CloudAgentSecretPrefix = guid.CloudAgentSecretPrefix - CloudAgentWorkerPrefix = guid.CloudAgentWorkerPrefix - CloudAgentPrivateLinkPrefix = guid.CloudAgentPrivateLinkPrefix + RoomPrefix = guid.RoomPrefix + NodePrefix = guid.NodePrefix + ParticipantPrefix = guid.ParticipantPrefix + TrackPrefix = guid.TrackPrefix + DataTrackPrefix = guid.DataTrackPrefix + APIKeyPrefix = guid.APIKeyPrefix + EgressPrefix = guid.EgressPrefix + IngressPrefix = guid.IngressPrefix + SIPTrunkPrefix = guid.SIPTrunkPrefix + SIPDispatchRulePrefix = guid.SIPDispatchRulePrefix + SIPCallPrefix = guid.SIPCallPrefix + SIPTransferPrefix = guid.SIPTransferPrefix + RPCPrefix = guid.RPCPrefix + WHIPResourcePrefix = guid.WHIPResourcePrefix + RTMPResourcePrefix = guid.RTMPResourcePrefix + URLResourcePrefix = guid.URLResourcePrefix + SIPHostnamePrefix = guid.SIPHostnamePrefix + AgentWorkerPrefix = guid.AgentWorkerPrefix + AgentJobPrefix = guid.AgentJobPrefix + AgentDispatchPrefix = guid.AgentDispatchPrefix + CloudAgentPrefix = guid.CloudAgentPrefix + CloudAgentRegionPrefix = guid.CloudAgentRegionPrefix + CloudAgentVersionPrefix = guid.CloudAgentVersionPrefix + CloudAgentSecretPrefix = guid.CloudAgentSecretPrefix + CloudAgentWorkerPrefix = guid.CloudAgentWorkerPrefix + CloudAgentPrivateLinkPrefix = guid.CloudAgentPrivateLinkPrefix + CloudAgentPrivateLinkSecretPrefix = guid.CloudAgentPrivateLinkSecretPrefix ) func NewGuid(prefix string) string {