Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/StefanKopieczek/gossip
/ functions
Functions
405 in github.com/StefanKopieczek/gossip
⨍
Functions
405
◇
Types & classes
103
↓ 166 callers
Method
Add
(k string, v MaybeString)
base/headers.go:246
↓ 51 callers
Method
Debug
(msg string, args ...interface{})
log/log.go:125
↓ 47 callers
Method
String
()
parser/parser_test.go:25
↓ 39 callers
Method
String
Produce the string representation of the URI.
base/headers.go:55
↓ 23 callers
Function
NewParams
Create an empty set of parameters.
base/headers.go:261
↓ 18 callers
Function
Elapse
Increment the current time by the given Duration. This function can only be called in Mock Mode, otherwise we will panic.
timing/timing.go:120
↓ 18 callers
Method
Warn
(msg string, args ...interface{})
log/log.go:137
↓ 17 callers
Method
ToString
(sep uint8)
base/headers.go:249
↓ 14 callers
Method
String
Yields a flat, string representation of the SIP message suitable for sending out over the wire.
base/messages.go:42
↓ 13 callers
Method
Headers
Returns a slice of all headers of the given type. If there are no headers of the requested type, returns an empty slice.
base/messages.go:49
↓ 13 callers
Method
Info
(msg string, args ...interface{})
log/log.go:133
↓ 13 callers
Method
Log
(level Level, msg string, args ...interface{})
log/log.go:68
↓ 13 callers
Method
Reset
Resets the timer such that it will expire in duration 'd' after the current time. Returns true if the timer had been active, and false if it had expir
timing/timing.go:20
↓ 12 callers
Method
Copy
Produce an exact copy of this URI.
base/headers.go:58
↓ 12 callers
Method
Notify
Push a connection to the connection table, registered under a specific address. If it is a new connection, start the socket expiry timer. If it is a k
transport/conntable.go:82
↓ 12 callers
Function
doTests
(tests []test, t *testing.T)
parser/parser_test.go:39
↓ 11 callers
Method
C
Returns a channel which sends the current time immediately when the timer expires. Equivalent to time.Timer.C; however, we have to use a method here i
timing/timing.go:16
↓ 11 callers
Method
Equals
Determine if the two URIs are equal according to the rules in RFC 3261 s. 19.1.4.
base/headers.go:52
↓ 11 callers
Method
GetConn
Return an existing open socket for the given address, or nil if no such socket exists.
transport/conntable.go:106
↓ 11 callers
Method
Send
(addr string, message base.SipMessage)
transport/transport.go:19
↓ 11 callers
Method
Severe
(msg string, args ...interface{})
log/log.go:141
↓ 11 callers
Method
Short
Yields a short string representation of the message useful for logging.
base/messages.go:55
↓ 10 callers
Method
Test
(t *testing.T)
parser/parser_test.go:1809
↓ 9 callers
Method
Length
()
base/headers.go:250
↓ 9 callers
Function
NewTimer
Creates a new Timer; either a wrapper around a standard Go time.Timer, or a mocked-out Timer, depending on whether MockMode is set.
timing/timing.go:78
↓ 9 callers
Method
Stop
()
transport/transport.go:20
↓ 9 callers
Function
makeTestConn
Construct a dummy connection object to use to populate the connTable for tests.
transport/conntable_test.go:136
↓ 8 callers
Method
AddHeader
Adds a header to this message.
base/messages.go:45
↓ 8 callers
Function
parseHeader
(rawHeader string)
parser/parser_test.go:1344
↓ 7 callers
Method
Init
Create a new connection table.
transport/conntable.go:31
↓ 6 callers
Method
Close
()
transport/connection.go:66
↓ 6 callers
Function
New
(out io.Writer, prefix string, flags int)
log/log.go:60
↓ 6 callers
Method
RemoteAddr
()
testutils/dummyconn.go:24
↓ 6 callers
Method
Stop
Close all sockets and stop socket management. The table cannot be restarted after Stop() has been called, and GetConn() will return nil.
transport/conntable.go:117
↓ 6 callers
Method
Write
Implements io.Writer. Queues the given bytes to be parsed. If the parser has terminated due to a previous fatal error, it will return n=0 and an appro
parser/parser.go:36
↓ 6 callers
Function
assertNoError
(t *testing.T, err error)
transaction/transaction_test.go:161
↓ 6 callers
Function
strMaybeStr
(s base.MaybeString)
parser/parser_test.go:1904
↓ 6 callers
Function
uint16PtrStr
(uint16Ptr *uint16)
parser/parser_test.go:1915
↓ 5 callers
Method
LocalAddr
()
testutils/dummyconn.go:20
↓ 5 callers
Method
Name
Produce the name of the header (e.g. "To", "Via")
base/headers.go:43
↓ 5 callers
Function
parseParams
General utility method for parsing 'key=value' parameters. Takes a string (source), ensures that it begins with the 'start' character provided, and th
parser/parser.go:583
↓ 5 callers
Method
passUp
Pass up the most recently received response to the TU.
transaction/transaction.go:153
↓ 4 callers
Method
Origin
()
transaction/transaction.go:23
↓ 4 callers
Method
Stop
()
parser/parser.go:43
↓ 4 callers
Function
parseHostPort
Parse a text representation of a host[:port] pair. The port may or may not be present, so we represent it with a *uint16, and return 'nil' if no port
parser/parser.go:555
↓ 3 callers
Function
AfterFunc
See built-in time.AfterFunc() function.
timing/timing.go:98
↓ 3 callers
Method
Delete
()
transaction/transaction.go:54
↓ 3 callers
Method
Execute
()
transaction/transaction_test.go:67
↓ 3 callers
Method
Get
(k string)
base/headers.go:245
↓ 3 callers
Method
Listen
(address string)
transport/transport.go:18
↓ 3 callers
Function
NewParser
Create a new Parser. Parsed SIP messages will be sent down the 'output' chan provided. Any errors which force the parser to terminate will be sent do
parser/parser.go:103
↓ 3 callers
Function
ParseSipUri
ParseSipUri converts a string representation of a SIP or SIPS URI into a SipUri object.
parser/parser.go:444
↓ 3 callers
Function
request
(rawMsg []string)
transaction/transaction_test.go:171
↓ 2 callers
Method
Ack
Send an automatic ACK.
transaction/transaction.go:171
↓ 2 callers
Function
After
See built-in time.After() function.
timing/timing.go:93
↓ 2 callers
Method
Delete
()
transaction/transaction.go:50
↓ 2 callers
Method
Fine
(msg string, args ...interface{})
log/log.go:129
↓ 2 callers
Method
Get
Returns the requested parameter value.
base/headers.go:276
↓ 2 callers
Method
GetChannel
()
transport/transport.go:21
↓ 2 callers
Method
Keys
Returns a slice of keys, in order.
base/headers.go:271
↓ 2 callers
Method
Length
Returns number of params.
base/headers.go:343
↓ 2 callers
Function
NewConn
(baseConn net.Conn, output chan base.SipMessage)
transport/connection.go:22
↓ 2 callers
Function
NewManager
(transportType string)
transport/transport.go:36
↓ 2 callers
Function
NewManager
(t transport.Manager, addr string)
transaction/manager.go:34
↓ 2 callers
Method
NextLine
Block until the buffer contains at least one CRLF-terminated line. Return the line, excluding the terminal CRLF, and delete it from the buffer. Return
parser/parserbuffer.go:39
↓ 2 callers
Function
ParseUri
parseUri converts a string representation of a URI into a Uri object. If the URI is malformed, or the URI schema is not recognised, an error is return
parser/parser.go:414
↓ 2 callers
Method
Read
(b []byte)
testutils/dummyconn.go:12
↓ 2 callers
Method
Receive
(m base.SipMessage)
transaction/transaction.go:22
↓ 2 callers
Function
copyWithNil
(params Params)
base/headers.go:107
↓ 2 callers
Method
delTx
Deletes a transaction from the transaction store. Should only be called inside the storage handling goroutine to ensure concurrency safety.
transaction/manager.go:163
↓ 2 callers
Function
doTests
(tests []stringTest, t *testing.T)
base/stringify_test.go:17
↓ 2 callers
Function
errToStr
(err error)
parser/parser_test.go:1923
↓ 2 callers
Method
getTx
Gets a transaction from the transaction store. Should only be called inside the storage handling goroutine to ensure concurrency safety.
transaction/manager.go:146
↓ 2 callers
Method
makeKey
(s base.SipMessage)
transaction/manager.go:104
↓ 2 callers
Function
message
(rawMsg []string)
transaction/transaction_test.go:167
↓ 2 callers
Function
newDummyTransport
()
transaction/transaction_test.go:29
↓ 2 callers
Function
newHeaders
()
base/messages.go:76
↓ 2 callers
Method
parseHeader
Parse a header string, producing one or more SipHeader objects. (SIP messages containing multiple headers of the same type can express them as a singl
parser/parser.go:716
↓ 2 callers
Function
removeMockTimer
Utility method to remove a mockTimer from the list of outstanding timers.
timing/timing.go:173
↓ 2 callers
Method
resend
Resend the originating request.
transaction/transaction.go:144
↓ 2 callers
Function
splitByWhitespace
Splits the given string into sections, separated by one or more characters from c_ABNF_WS.
parser/parser.go:1239
↓ 2 callers
Function
stackTrace
()
log/log.go:149
↓ 2 callers
Method
timeoutError
Inform the TU that the transaction timed out.
transaction/transaction.go:165
↓ 2 callers
Method
transportError
Send an error to the TU.
transaction/transaction.go:159
↓ 1 callers
Method
Act
(test *transactionTest)
transaction/transaction_test.go:56
↓ 1 callers
Method
Close
()
testutils/dummyconn.go:16
↓ 1 callers
Method
GetBody
Get the body of the message, as a string.
base/messages.go:61
↓ 1 callers
Method
Init
Initialise the Elastic channel, and start the management goroutine.
utils/elasticchan.go:19
↓ 1 callers
Method
IsWildcard
Return true if and only if the URI is the special wildcard URI '*'; that is, if it is a WildcardUri struct.
base/headers.go:68
↓ 1 callers
Method
Items
Returns the entire parameter map.
base/headers.go:266
↓ 1 callers
Function
NewTcp
(output chan base.SipMessage)
transport/transport_tcp.go:19
↓ 1 callers
Function
NewUdp
(output chan base.SipMessage)
transport/transport_udp.go:19
↓ 1 callers
Method
NextChunk
Block until the buffer contains at least n characters. Return precisely those n characters, then delete them from the buffer.
parser/parserbuffer.go:70
↓ 1 callers
Method
Responses
Return the channel we send responses on.
transaction/transaction.go:197
↓ 1 callers
Method
SetHeaderParser
Implements ParserFactory.SetHeaderParser.
parser/parser.go:314
↓ 1 callers
Method
Short
()
base/messages.go:205
↓ 1 callers
Method
Short
()
base/messages.go:339
↓ 1 callers
Method
Stop
Stops the timer, preventing it from firing. Returns true if the timer had been active, and false if it had expired or been stopped.
timing/timing.go:24
↓ 1 callers
Method
Stop
Stop the manager and close down all processing on it, losing all transactions in progress.
transaction/manager.go:60
↓ 1 callers
Method
String
()
parser/parser_test.go:1829
next →
1–100 of 405, ranked by callers