Documentation ¶
Overview ¶
Package diamtest provides utilities for Diameter testing.
Index ¶
- type Server
- func NewServer(handler diam.Handler, dp *dict.Parser) *Server
- func NewServerNetwork(network string, handler diam.Handler, dp *dict.Parser) *Server
- func NewUnstartedServer(handler diam.Handler, dp *dict.Parser) *Server
- func NewUnstartedServerNetwork(network string, handler diam.Handler, dp *dict.Parser) *Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct { Network string Addr string Listener net.Listener TLS *tls.Config Config *diam.Server }
A Server is a Diameter server listening on a system-chosen port on the local loopback interface, for use in end-to-end tests.
func NewServer ¶
NewServer starts and returns a new Server. The caller should call Close when finished, to shut it down.
func NewServerNetwork ¶
NewServerNetwork starts and returns a new Server listening on specified network. The caller should call Close when finished, to shut it down.
func NewUnstartedServer ¶
NewUnstartedServer returns a new Server but doesn't start it.
After changing its configuration, the caller should call Start or StartTLS.
The caller should call Close when finished, to shut it down.
func NewUnstartedServerNetwork ¶
NewUnstartedServerNetwork returns a new Server on the network but doesn't start it.
After changing its configuration, the caller should call Start or StartTLS.
The caller should call Close when finished, to shut it down.