Versions in this module Expand all Collapse all v3 v3.1.2 Oct 8, 2023 Changes in this version + const UndefinedVendorID + var ErrApplicationUnsupported = errors.New("application unsupported") + type AVP struct + App *App + Code uint32 + Data Data + May string + MayEncrypt string + Must string + MustNot string + Name string + VendorID uint32 + func MakeUnknownAVP(appid, code, vendorID uint32) *AVP + type App struct + AVP []*AVP + Command []*Command + ID uint32 + Name string + Type string + Vendor []*Vendor + type Command struct + Answer CommandRule + Code uint32 + Name string + Request CommandRule + Short string + func (cmd *Command) String() string + type CommandRule struct + Rule []*Rule + type Data struct + Enum []*Enum + Rule []*Rule + Type datatype.TypeID + TypeName string + type Enum struct + Code int32 + Name string + type File struct + App []*App + XMLName xml.Name + type Parser struct + var Default *Parser + func NewParser(filename ...string) (*Parser, error) + func (p *Parser) App(code uint32) (*App, error) + func (p *Parser) Apps() []*App + func (p *Parser) Enum(appid, code uint32, n int32) (*Enum, error) + func (p *Parser) FindAVP(appid uint32, code interface{}) (*AVP, error) + func (p *Parser) FindAVPWithVendor(appid uint32, code interface{}, vendorID uint32) (*AVP, error) + func (p *Parser) FindCommand(appid, code uint32) (*Command, error) + func (p *Parser) Load(r io.Reader) error + func (p *Parser) LoadFile(filename string) error + func (p *Parser) Rule(appid, code uint32, n string) (*Rule, error) + func (p *Parser) ScanAVP(code interface{}) (*AVP, error) + func (p *Parser) String() string + type Rule struct + AVP string + Max int + Min int + Required bool + type Vendor struct + ID uint32 + Name string