package
0.0.0-20240816225604-7870da5f3811
Repository: https://github.com/francistor/igor.git
Documentation: pkg.go.dev

# Functions

Diameter AVP Builder that does not return error but nil.
Generates a random authenticator.
Generates a random salt.
Reads a DiameterAVP from a buffer.
Helper function go generate certificates on each execution Panics in case of any error Files are "cert.pem" and "key.pem" located in the parent of the bootstrap directory or in the current directory if this variable is not set (because the bootstrap file is remote) It returns the names of the files If environment variables IGOR_HTTPS_KEY_FILE and IGOR_HTTPS_CERT_FILE exist, use those instead and does not create certificates.
Used globally to get access to the diameter dictionary.
Retrieves the default configuration instance.
Retrieves a specific configuration instance.
Used globally to get access to the core logger.
Helper for testing.
Retrieves the default configuration instance, which is the first one in the list.
Retrieves a specific configuration instance.
Retrieves the default configuration instance.
Retrieves a specific configuration instance.
No description provided by the author
Manages the state id Returns the state id, which may be started from 1 if clean is true and is incremented if next is true (to be called this way on restart).
Helper function for tests.
Adds a Handler configuration object with the specified name.
Adds a Policy (Radius and Diameter) configuration object with the specified name to the list of policyConfigs if isDefault is true, also initializes the logger and the dictionaries, which are shared among all instances.
Adds a Handler configuration object with the specified name.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Creates an uninitialized configuration object.
Creates and initializes a ConfigurationManager The <params> argument is used as parameter to the objects, treated as templates.
Builds a new answer diameter message, corresponding to the request passed as attribute, that is, same application id and command code, same end-to-end id and hop-by-hop id.
Creates a new AVP.
Returns a Diameter Dictionary object from its serialized representation.
Returns a DiameterMessage decoded from the specified input bytes.
Builds a DiameterRequest with the specified application and command names.
Creates a new HandlerLogger.
No description provided by the author
Creates a new AVP with the specified name and value Will return an error if the name is not found in the dictionary.
Returns a Diameter Dictionary object from its serialized representation.
Builds a Radius Packet from a Byte slice.
Creates a new radius request with the specified code.
Creates a radius answer for the specified packet id is the same as for the request.
Creates an uninitialized templated configuration object.
Reads a radius dictionary in free radius format and generates a jRadiusDict object, used to generate the final radius dictionary to be used in the application.
No description provided by the author
No description provided by the author
Reads a Radius AVP from a buffer.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Radius.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Checks the request authenticator Request authenticator must be the md5 hash of the received bytes followed by the secret.
Checks the response authenticator Response authenticator must be the md5 hash of the response bytes with the authenticator replaced by the request authenticator, followed by the secret.

# Constants

No description provided by the author
No description provided by the author
Success.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Transient Failures.
No description provided by the author
No description provided by the author
Success.
No description provided by the author
Protocol Errors.
Permanent failures.
One for each Diamter AVP Type.
One for each Diamter AVP Type.
One for each Diamter AVP Type.
One for each Diamter AVP Type.
One for each Diamter AVP Type.
One for each Diamter AVP Type.
One for each Diamter AVP Type.
One for each Diamter AVP Type.
One for each Diamter AVP Type.
One for each Diamter AVP Type.
Radius types for Diameter ecnapsulation.
One for each Diamter AVP Type.
One for each Diamter AVP Type.
One for each Diamter AVP Type.
One for each Diamter AVP Type.
One for each Diamter AVP Type.
One for each Diamter AVP Type.
One for each Diamter AVP Type.
One for each Diamter AVP Type.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Buffer for the channel to receive the events.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Buffer for the channel to receive the queries.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

The single instance of the instrumentation server.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Magical reference date is Mon Jan 2 15:04:05 MST 2006 Time AVP is the number of seconds since 1/1/1900.

# Structs

Represents an object that will be populated from the configuration resources.
Basic objects and methods to manage configuration object names without yet interpreting them.
Represents a Diameter Application.
Represents a Diameter AVP.
VendorId and code of AVP in a single attribute.
Diameter Dictionary element.
Represents a Diameter Command.
Represents the full Diameter Dictionary.
No description provided by the author
Holds the configuration of a Diameter Peer.
Instrumentation of Diameter Peers table.
No description provided by the author
No description provided by the author
Holds a Diameter Routing rule.
No description provided by the author
Attributes of a Grouped AVP.
No description provided by the author
No description provided by the author
Holds a http handler configuration.
Manages the configuration items for the http handlers.
No description provided by the author
Holds the configuration for the HTTP Router.
No description provided by the author
The Metrics servers holds the metrics and runs an event loop for getting the events and updating the statistics, answering to queries and do graceful termination.
No description provided by the author
No description provided by the author
Manages the configuration items for policy (radius & diameter).
Specification of a query to the instrumentation server.
Represents the contents of a Radius Attribute-Value pair.
VendorId and code of AVP in a single attribute.
Diameter Dictionary elements.
Holds the configuration of a Radius Client Key in the RadiusClients map will be the IPAddress.
Represents the full Radius Dictionary.
Holds the radius handlers configuration.
Represents a Radius packet.
/////////////////////////////////////////////////////////////// Metrics definitions ///////////////////////////////////////////////////////////////.
Holds the configuration for an upstream Radius Server.
/////////////////////////////////////////////////////////////////////////////.
Holds the configuration of a Radius Server Group.
Holds the RadiusServers and Groups configuration, as stored in the radiusServers.json file.
No description provided by the author
Instrumentation of Radius servers table.
Holds a radius session server configuration.
Manages the configuration items for the session servers.
Holds a SearchRule, which specifies where to look for a configuration object.
The applicable Search Rules.
No description provided by the author
No description provided by the author
Represents an object that will be populated from two configuration resources: a template and a set of parameters for that template.

# Interfaces

If the object implements this interface, this method will be executed after each update, typically for cooking the derived attributes.

# Type aliases

No description provided by the author
Type for functions that handle the diameter requests received.
Holds the configuration of all Diameter peers.
No description provided by the author
Holds all the Diameter Routing rules.
No description provided by the author
Holds the configuration of all Radius Clients, indexed by IP address.
Type for functions that handle the diameter requests received.
No description provided by the author
No description provided by the author