package
3.0.2+incompatible
Repository: https://github.com/omnicate/go-diameter.git
Documentation: pkg.go.dev

# Packages

Package avp provides Diameter AVP constants and flags.
Package datatype provides data types for Diameter AVPs.
Package diamtest provides utilities for Diameter testing.
Package dict provides a Diameter dictionary parser.
Package sm provides diameter state machines for clients and servers.

# Functions

DecodeAVP decodes the bytes of a Diameter AVP.
DecodeGrouped decodes a Grouped AVP from a datatype.Grouped (byte array).
DecodeHeader decodes the bytes of a Diameter Header.
Dial connects to the peer pointed to by addr and returns the Conn that can be used to send diameter messages.
DialNetwork connects to the peer pointed to by network & addr and returns the Conn that can be used to send diameter messages.
No description provided by the author
DialNetworkTLS is the same as DialNetwork, but for TLS.
No description provided by the author
DialTLS is the same as Dial, but for TLS.
DialTLSTimeout is the same as DialTimeout, but for TLS.
ErrorReports returns the ErrorReport channel of the DefaultServeMux.
Handle registers the handler object for the given command in the DefaultServeMux.
HandleFunc registers the handler function for the given command in the DefaultServeMux.
No description provided by the author
ListenAndServe listens on the TCP network address addr and then calls Serve with handler to handle requests on incoming connections.
ListenAndServeNetwork listens on the network & addr and then calls Serve with handler to handle requests on incoming connections.
ListenAndServeNetworkTLS acts identically to ListenAndServeNetwork, except that it expects SSL connections.
ListenAndServeTLS acts identically to ListenAndServe, except that it expects SSL connections.
NewAVP creates and initializes a new AVP.
NewConn is the same as Dial, but using an already open net.Conn.
NewMessage creates and initializes a Message.
NewRequest creates a new Message with the Request bit set.
NewServeMux allocates and returns a new ServeMux.
ReadMessage reads a binary stream from the reader and uses the given dictionary to parse it.
Serve accepts incoming diameter connections on the listener l, creating a new service goroutine for each.
No description provided by the author

# Constants

Diameter command codes.
Short Command Names.
Short Command Names.
Diameter command codes.
Short Command Names.
Diameter command codes.
Short Command Names.
Short Command Names.
Short Command Names.
Diameter codes for the Result-Code AVP.
Short Command Names.
Short Command Names.
Diameter command codes.
Diameter codes for the Result-Code AVP.
Diameter codes for the Result-Code AVP.
Diameter codes for the Result-Code AVP.
Diameter codes for the Result-Code AVP.
Diameter codes for the Result-Code AVP.
Diameter application IDs.
Diameter application IDs.
Diameter command codes.
Diameter command codes.
Short Command Names.
Short Command Names.
Short Command Names.
Short Command Names.
Diameter application IDs.
Short Command Names.
Short Command Names.
Diameter codes for the Result-Code AVP.
Diameter codes for the Result-Code AVP.
Diameter command codes.
Diameter command codes.
Diameter command codes.
Short Command Names.
Short Command Names.
Short Command Names.
Short Command Names.
Diameter codes for the Result-Code AVP.
Command flags.
GroupedAVPType is the identifier of the GroupedAVP data type.
HeaderLength is the length of a Diameter header data structure.
Diameter codes for the Result-Code AVP.
Diameter codes for the Result-Code AVP.
Diameter codes for the Result-Code AVP.
Diameter codes for the Result-Code AVP.
Diameter codes for the Result-Code AVP.
Diameter codes for the Result-Code AVP.
Diameter codes for the Result-Code AVP.
Diameter codes for the Result-Code AVP.
Diameter codes for the Result-Code AVP.
Diameter codes for the Result-Code AVP.
Diameter codes for the Result-Code AVP.
Diameter application IDs.
Short Command Names.
Diameter codes for the Result-Code AVP.
Diameter codes for the Result-Code AVP.
Short Command Names.
Diameter command codes.
Diameter codes for the Result-Code AVP.
Command flags.
Short Command Names.
Short Command Names.
Diameter command codes.
Short Command Names.
Short Command Names.
Diameter codes for the Result-Code AVP.
Diameter command codes.
Diameter codes for the Result-Code AVP.
Command flags.
Diameter codes for the Result-Code AVP.
Command flags.
Diameter command codes.
Short Command Names.
Short Command Names.
Diameter codes for the Result-Code AVP.
Diameter application IDs.
Diameter application IDs.
Diameter codes for the Result-Code AVP.
Short Command Names.
Short Command Names.
Diameter codes for the Result-Code AVP.
Diameter codes for the Result-Code AVP.
Diameter codes for the Result-Code AVP.
Diameter codes for the Result-Code AVP.
Diameter codes for the Result-Code AVP.
Diameter command codes.

# Variables

No description provided by the author
DefaultServeMux is the default ServeMux used by Serve.
MessageBufferLength is the default buffer length for Diameter messages.

# Structs

AVP is a Diameter attribute-value-pair.
No description provided by the author
ErrorReport is sent out of the server in case it fails to read messages due to a bad dictionary or network errors.
GroupedAVP that is different from the dummy datatype.Grouped.
Header is the header representation of a Diameter message.
Message represents a Diameter message.
ServeMux is a diameter message multiplexer.
A Server defines parameters for running a diameter server.

# Interfaces

The CloseNotifier interface is implemented by Conns which allow detecting when the underlying connection has gone away.
Conn interface is used by a handler to send diameter messages.
No description provided by the author
The ErrorReporter interface is implemented by Handlers that allow reading errors from the underlying connection, like parsing diameter messages or connection errors.
The Handler interface allow arbitrary objects to be registered to serve particular messages like CER, DWR.

# Type aliases

The HandlerFunc type is an adapter to allow the use of ordinary functions as diameter handlers.