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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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