validator

package
v1.3.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 19, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PeiTypeImei    = "IMEI"
	PeiTypeImeisv  = "IMEISV"
	PeiTypeUnknown = "UNKNOWN"
)

PEI types

Variables

This section is empty.

Functions

func IsPduSessionIdInPsiRange

func IsPduSessionIdInPsiRange(id int32) bool

TS 24.501 9.11.3.57 (PSI 0-15)

func IsValidGpsi

func IsValidGpsi(gpsi string) bool

IsValidGpsi valid GPSI format (TS 29.571 5.3.2)

func IsValidPduSessionID

func IsValidPduSessionID(pduSessionID string) bool

TS 29.571 5.4.2 valid PDU Session ID is an integer in the range 0 to 255

func IsValidPei

func IsValidPei(pei string) bool

IsValidPei checks if the string is a valid PEI (IMEI or IMEISV)

func IsValidPlmnId

func IsValidPlmnId(plmnId string) bool

IsValidPlmnId checks if the string is a valid PLMN ID (MCC+MNC) Format: 5 or 6 digits

func IsValidSnssai

func IsValidSnssai(snssai string) bool

IsValidSnssai checks if the string is a valid S-NSSAI Format: SST (e.g. "1") or SST-SD (e.g. "1-000001")

func IsValidSuci

func IsValidSuci(suci string) bool

IsValidSuci checks if the given SUCI is valid

func IsValidSupi

func IsValidSupi(supi string) bool

IsValidSupi checks if the given SUPI is valid according to 3GPP specifications

func ValidateGroupIdFormat

func ValidateGroupIdFormat(groupId string) error

ValidateGroupIdFormat validates the external group identity format Expected pattern: prefix-mcc(3 digits)-mnc(2-3 digits)-localGroupId

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL