MCPcopy Create free account

hub / github.com/StefanKopieczek/gossip / functions

Functions405 in github.com/StefanKopieczek/gossip

↓ 166 callersMethodAdd
(k string, v MaybeString)
base/headers.go:246
↓ 51 callersMethodDebug
(msg string, args ...interface{})
log/log.go:125
↓ 47 callersMethodString
()
parser/parser_test.go:25
↓ 39 callersMethodString
Produce the string representation of the URI.
base/headers.go:55
↓ 23 callersFunctionNewParams
Create an empty set of parameters.
base/headers.go:261
↓ 18 callersFunctionElapse
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 callersMethodWarn
(msg string, args ...interface{})
log/log.go:137
↓ 17 callersMethodToString
(sep uint8)
base/headers.go:249
↓ 14 callersMethodString
Yields a flat, string representation of the SIP message suitable for sending out over the wire.
base/messages.go:42
↓ 13 callersMethodHeaders
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 callersMethodInfo
(msg string, args ...interface{})
log/log.go:133
↓ 13 callersMethodLog
(level Level, msg string, args ...interface{})
log/log.go:68
↓ 13 callersMethodReset
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 callersMethodCopy
Produce an exact copy of this URI.
base/headers.go:58
↓ 12 callersMethodNotify
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 callersFunctiondoTests
(tests []test, t *testing.T)
parser/parser_test.go:39
↓ 11 callersMethodC
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 callersMethodEquals
Determine if the two URIs are equal according to the rules in RFC 3261 s. 19.1.4.
base/headers.go:52
↓ 11 callersMethodGetConn
Return an existing open socket for the given address, or nil if no such socket exists.
transport/conntable.go:106
↓ 11 callersMethodSend
(addr string, message base.SipMessage)
transport/transport.go:19
↓ 11 callersMethodSevere
(msg string, args ...interface{})
log/log.go:141
↓ 11 callersMethodShort
Yields a short string representation of the message useful for logging.
base/messages.go:55
↓ 10 callersMethodTest
(t *testing.T)
parser/parser_test.go:1809
↓ 9 callersMethodLength
()
base/headers.go:250
↓ 9 callersFunctionNewTimer
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 callersMethodStop
()
transport/transport.go:20
↓ 9 callersFunctionmakeTestConn
Construct a dummy connection object to use to populate the connTable for tests.
transport/conntable_test.go:136
↓ 8 callersMethodAddHeader
Adds a header to this message.
base/messages.go:45
↓ 8 callersFunctionparseHeader
(rawHeader string)
parser/parser_test.go:1344
↓ 7 callersMethodInit
Create a new connection table.
transport/conntable.go:31
↓ 6 callersMethodClose
()
transport/connection.go:66
↓ 6 callersFunctionNew
(out io.Writer, prefix string, flags int)
log/log.go:60
↓ 6 callersMethodRemoteAddr
()
testutils/dummyconn.go:24
↓ 6 callersMethodStop
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 callersMethodWrite
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 callersFunctionassertNoError
(t *testing.T, err error)
transaction/transaction_test.go:161
↓ 6 callersFunctionstrMaybeStr
(s base.MaybeString)
parser/parser_test.go:1904
↓ 6 callersFunctionuint16PtrStr
(uint16Ptr *uint16)
parser/parser_test.go:1915
↓ 5 callersMethodLocalAddr
()
testutils/dummyconn.go:20
↓ 5 callersMethodName
Produce the name of the header (e.g. "To", "Via")
base/headers.go:43
↓ 5 callersFunctionparseParams
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 callersMethodpassUp
Pass up the most recently received response to the TU.
transaction/transaction.go:153
↓ 4 callersMethodOrigin
()
transaction/transaction.go:23
↓ 4 callersMethodStop
()
parser/parser.go:43
↓ 4 callersFunctionparseHostPort
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 callersFunctionAfterFunc
See built-in time.AfterFunc() function.
timing/timing.go:98
↓ 3 callersMethodDelete
()
transaction/transaction.go:54
↓ 3 callersMethodExecute
()
transaction/transaction_test.go:67
↓ 3 callersMethodGet
(k string)
base/headers.go:245
↓ 3 callersMethodListen
(address string)
transport/transport.go:18
↓ 3 callersFunctionNewParser
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 callersFunctionParseSipUri
ParseSipUri converts a string representation of a SIP or SIPS URI into a SipUri object.
parser/parser.go:444
↓ 3 callersFunctionrequest
(rawMsg []string)
transaction/transaction_test.go:171
↓ 2 callersMethodAck
Send an automatic ACK.
transaction/transaction.go:171
↓ 2 callersFunctionAfter
See built-in time.After() function.
timing/timing.go:93
↓ 2 callersMethodDelete
()
transaction/transaction.go:50
↓ 2 callersMethodFine
(msg string, args ...interface{})
log/log.go:129
↓ 2 callersMethodGet
Returns the requested parameter value.
base/headers.go:276
↓ 2 callersMethodGetChannel
()
transport/transport.go:21
↓ 2 callersMethodKeys
Returns a slice of keys, in order.
base/headers.go:271
↓ 2 callersMethodLength
Returns number of params.
base/headers.go:343
↓ 2 callersFunctionNewConn
(baseConn net.Conn, output chan base.SipMessage)
transport/connection.go:22
↓ 2 callersFunctionNewManager
(transportType string)
transport/transport.go:36
↓ 2 callersFunctionNewManager
(t transport.Manager, addr string)
transaction/manager.go:34
↓ 2 callersMethodNextLine
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 callersFunctionParseUri
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 callersMethodRead
(b []byte)
testutils/dummyconn.go:12
↓ 2 callersMethodReceive
(m base.SipMessage)
transaction/transaction.go:22
↓ 2 callersFunctioncopyWithNil
(params Params)
base/headers.go:107
↓ 2 callersMethoddelTx
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 callersFunctiondoTests
(tests []stringTest, t *testing.T)
base/stringify_test.go:17
↓ 2 callersFunctionerrToStr
(err error)
parser/parser_test.go:1923
↓ 2 callersMethodgetTx
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 callersMethodmakeKey
(s base.SipMessage)
transaction/manager.go:104
↓ 2 callersFunctionmessage
(rawMsg []string)
transaction/transaction_test.go:167
↓ 2 callersFunctionnewDummyTransport
()
transaction/transaction_test.go:29
↓ 2 callersFunctionnewHeaders
()
base/messages.go:76
↓ 2 callersMethodparseHeader
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 callersFunctionremoveMockTimer
Utility method to remove a mockTimer from the list of outstanding timers.
timing/timing.go:173
↓ 2 callersMethodresend
Resend the originating request.
transaction/transaction.go:144
↓ 2 callersFunctionsplitByWhitespace
Splits the given string into sections, separated by one or more characters from c_ABNF_WS.
parser/parser.go:1239
↓ 2 callersFunctionstackTrace
()
log/log.go:149
↓ 2 callersMethodtimeoutError
Inform the TU that the transaction timed out.
transaction/transaction.go:165
↓ 2 callersMethodtransportError
Send an error to the TU.
transaction/transaction.go:159
↓ 1 callersMethodAct
(test *transactionTest)
transaction/transaction_test.go:56
↓ 1 callersMethodClose
()
testutils/dummyconn.go:16
↓ 1 callersMethodGetBody
Get the body of the message, as a string.
base/messages.go:61
↓ 1 callersMethodInit
Initialise the Elastic channel, and start the management goroutine.
utils/elasticchan.go:19
↓ 1 callersMethodIsWildcard
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 callersMethodItems
Returns the entire parameter map.
base/headers.go:266
↓ 1 callersFunctionNewTcp
(output chan base.SipMessage)
transport/transport_tcp.go:19
↓ 1 callersFunctionNewUdp
(output chan base.SipMessage)
transport/transport_udp.go:19
↓ 1 callersMethodNextChunk
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 callersMethodResponses
Return the channel we send responses on.
transaction/transaction.go:197
↓ 1 callersMethodSetHeaderParser
Implements ParserFactory.SetHeaderParser.
parser/parser.go:314
↓ 1 callersMethodShort
()
base/messages.go:205
↓ 1 callersMethodShort
()
base/messages.go:339
↓ 1 callersMethodStop
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 callersMethodStop
Stop the manager and close down all processing on it, losing all transactions in progress.
transaction/manager.go:60
↓ 1 callersMethodString
()
parser/parser_test.go:1829
next →1–100 of 405, ranked by callers