Documentation
¶
Index ¶
- Variables
- func Listen(network string, listenAddr string) error
- type RequestHandler
- type Server
- func (srv *Server) Listen(network string, listenAddr string) error
- func (srv *Server) OnRequest(method sip.RequestMethod, handler RequestHandler) error
- func (srv *Server) Request(req sip.Request) (<-chan sip.Response, error)
- func (srv *Server) Respond(res sip.Response) (<-chan sip.Request, error)
- func (srv *Server) Shutdown()
- type ServerConfig
Constants ¶
This section is empty.
Variables ¶
View Source
var Version = "0.0.0"
Version is the current gosip package version
Functions ¶
Types ¶
type RequestHandler ¶
RequestHandler is a callback that will be called on the incoming request of the certain method
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is a SIP server
func DefaultServer ¶
func DefaultServer() *Server
DefaultServer returns auto created default SIP server
func NewServer ¶
func NewServer(config *ServerConfig) *Server
NewServer creates new instance of SIP server.
func (*Server) OnRequest ¶
func (srv *Server) OnRequest(method sip.RequestMethod, handler RequestHandler) error
OnRequest registers new request callback
type ServerConfig ¶
ServerConfig describes available options
Directories
¶
| Path | Synopsis |
|---|---|
|
parser
Forked from github.com/StefanKopieczek/gossip by @StefanKopieczek
|
Forked from github.com/StefanKopieczek/gossip by @StefanKopieczek |
|
Forked from github.com/StefanKopieczek/gossip by @StefanKopieczek
|
Forked from github.com/StefanKopieczek/gossip by @StefanKopieczek |
|
transaction package implements SIP Transaction Layer
|
transaction package implements SIP Transaction Layer |
|
transport package implements SIP transport layer.
|
transport package implements SIP transport layer. |
|
Forked from github.com/StefanKopieczek/gossip by @StefanKopieczek
|
Forked from github.com/StefanKopieczek/gossip by @StefanKopieczek |
Click to show internal directories.
Click to hide internal directories.