SYMBOL INDEX (1703 symbols across 159 files) FILE: client/client.go type WSConnection (line 18) | type WSConnection interface function DefaultConnectionFactory (line 24) | func DefaultConnectionFactory(url string, origin string) (WSConnection, ... type WSConnectionFactory (line 37) | type WSConnectionFactory type Client (line 39) | type Client interface type client (line 58) | type client struct method SetWSConnectionFactory (line 94) | func (c *client) SetWSConnectionFactory(connection WSConnectionFactory) { method IsConnected (line 98) | func (c *client) IsConnected() bool { method setIsConnected (line 104) | func (c *client) setIsConnected(connected bool) { method Start (line 113) | func (c *client) Start() error { method startWithReconnect (line 126) | func (c *client) startWithReconnect() { method readLoop (line 155) | func (c *client) readLoop() error { method shouldStop (line 175) | func (c *client) shouldStop() bool { method handleIncomingMessage (line 188) | func (c *client) handleIncomingMessage(msg []byte) { method Subscribe (line 214) | func (c *client) Subscribe(path string) error { method Unsubscribe (line 223) | func (c *client) Unsubscribe(path string) error { method Send (line 232) | func (c *client) Send(path string, body string, header string) error { method SendBytes (line 236) | func (c *client) SendBytes(path string, body []byte, header string) er... method WriteRawMessage (line 247) | func (c *client) WriteRawMessage(message []byte) error { method Messages (line 251) | func (c *client) Messages() chan *protocol.Message { method StatusMessages (line 255) | func (c *client) StatusMessages() chan *protocol.NotificationMessage { method Errors (line 259) | func (c *client) Errors() chan *protocol.NotificationMessage { method Close (line 263) | func (c *client) Close() { function Open (line 75) | func Open(url, origin string, channelSize int, autoReconnect bool) (Clie... function New (line 82) | func New(url, origin string, channelSize int, autoReconnect bool) Client { function clientErrorMessage (line 268) | func clientErrorMessage(message string) *protocol.NotificationMessage { FILE: client/client_test.go function MockConnectionFactory (line 23) | func MockConnectionFactory(connectionMock *MockWSConnection) func(string... function TestConnectErrorWithoutReconnection (line 29) | func TestConnectErrorWithoutReconnection(t *testing.T) { function TestConnectErrorWithoutReconnectionUsingOpen (line 52) | func TestConnectErrorWithoutReconnectionUsingOpen(t *testing.T) { function TestConnectErrorWithReconnection (line 69) | func TestConnectErrorWithReconnection(t *testing.T) { function TestStopableClient (line 106) | func TestStopableClient(t *testing.T) { function TestReceiveAMessage (line 142) | func TestReceiveAMessage(t *testing.T) { function TestSendAMessage (line 219) | func TestSendAMessage(t *testing.T) { function TestSendSubscribeMessage (line 246) | func TestSendSubscribeMessage(t *testing.T) { function TestSendUnSubscribeMessage (line 272) | func TestSendUnSubscribeMessage(t *testing.T) { FILE: client/mocks_client_gen_test.go type MockWSConnection (line 13) | type MockWSConnection struct method EXPECT (line 29) | func (_m *MockWSConnection) EXPECT() *_MockWSConnectionRecorder { method Close (line 33) | func (_m *MockWSConnection) Close() error { method ReadMessage (line 43) | func (_m *MockWSConnection) ReadMessage() (int, []byte, error) { method WriteMessage (line 55) | func (_m *MockWSConnection) WriteMessage(_param0 int, _param1 []byte) ... type _MockWSConnectionRecorder (line 19) | type _MockWSConnectionRecorder struct method Close (line 39) | func (_mr *_MockWSConnectionRecorder) Close() *gomock.Call { method ReadMessage (line 51) | func (_mr *_MockWSConnectionRecorder) ReadMessage() *gomock.Call { method WriteMessage (line 61) | func (_mr *_MockWSConnectionRecorder) WriteMessage(arg0, arg1 interfac... function NewMockWSConnection (line 23) | func NewMockWSConnection(ctrl *gomock.Controller) *MockWSConnection { type MockClient (line 66) | type MockClient struct method EXPECT (line 82) | func (_m *MockClient) EXPECT() *_MockClientRecorder { method Close (line 86) | func (_m *MockClient) Close() { method Errors (line 94) | func (_m *MockClient) Errors() chan *protocol.NotificationMessage { method IsConnected (line 104) | func (_m *MockClient) IsConnected() bool { method Messages (line 114) | func (_m *MockClient) Messages() chan *protocol.Message { method Send (line 124) | func (_m *MockClient) Send(_param0 string, _param1 string, _param2 str... method SendBytes (line 134) | func (_m *MockClient) SendBytes(_param0 string, _param1 []byte, _param... method SetWSConnectionFactory (line 144) | func (_m *MockClient) SetWSConnectionFactory(_param0 WSConnectionFacto... method Start (line 152) | func (_m *MockClient) Start() error { method StatusMessages (line 162) | func (_m *MockClient) StatusMessages() chan *protocol.NotificationMess... method Subscribe (line 172) | func (_m *MockClient) Subscribe(_param0 string) error { method Unsubscribe (line 182) | func (_m *MockClient) Unsubscribe(_param0 string) error { method WriteRawMessage (line 192) | func (_m *MockClient) WriteRawMessage(_param0 []byte) error { type _MockClientRecorder (line 72) | type _MockClientRecorder struct method Close (line 90) | func (_mr *_MockClientRecorder) Close() *gomock.Call { method Errors (line 100) | func (_mr *_MockClientRecorder) Errors() *gomock.Call { method IsConnected (line 110) | func (_mr *_MockClientRecorder) IsConnected() *gomock.Call { method Messages (line 120) | func (_mr *_MockClientRecorder) Messages() *gomock.Call { method Send (line 130) | func (_mr *_MockClientRecorder) Send(arg0, arg1, arg2 interface{}) *go... method SendBytes (line 140) | func (_mr *_MockClientRecorder) SendBytes(arg0, arg1, arg2 interface{}... method SetWSConnectionFactory (line 148) | func (_mr *_MockClientRecorder) SetWSConnectionFactory(arg0 interface{... method Start (line 158) | func (_mr *_MockClientRecorder) Start() *gomock.Call { method StatusMessages (line 168) | func (_mr *_MockClientRecorder) StatusMessages() *gomock.Call { method Subscribe (line 178) | func (_mr *_MockClientRecorder) Subscribe(arg0 interface{}) *gomock.Ca... method Unsubscribe (line 188) | func (_mr *_MockClientRecorder) Unsubscribe(arg0 interface{}) *gomock.... method WriteRawMessage (line 198) | func (_mr *_MockClientRecorder) WriteRawMessage(arg0 interface{}) *gom... function NewMockClient (line 76) | func NewMockClient(ctrl *gomock.Controller) *MockClient { FILE: guble-cli/main.go function logLevels (line 32) | func logLevels() (levels []string) { function main (line 40) | func main() { function readLoop (line 69) | func readLoop(client client.Client) { function writeLoop (line 87) | func writeLoop(client client.Client) { function waitForTermination (line 132) | func waitForTermination(callback func()) { function printHelp (line 140) | func printHelp() { function removeTrailingSlash (line 157) | func removeTrailingSlash(path string) string { FILE: guble-cli/main_test.go function Test_PrintHelp (line 11) | func Test_PrintHelp(t *testing.T) { function Test_removeTrailingSlash (line 42) | func Test_removeTrailingSlash(t *testing.T) { FILE: logformatter/logstash_formatter.go constant defaultServiceName (line 13) | defaultServiceName = "guble" constant defaultLogType (line 14) | defaultLogType = "application" constant defaultApplicationType (line 15) | defaultApplicationType = "service" type LogstashFormatter (line 20) | type LogstashFormatter struct method Format (line 42) | func (f *LogstashFormatter) Format(entry *logrus.Entry) ([]byte, error) { FILE: logformatter/logstash_formatter_test.go function TestLogstashFormatter_Format (line 12) | func TestLogstashFormatter_Format(t *testing.T) { FILE: main.go function main (line 7) | func main() { FILE: protocol/cmd.go constant CmdSend (line 11) | CmdSend = ">" constant CmdReceive (line 12) | CmdReceive = "+" constant CmdCancel (line 13) | CmdCancel = "-" type Cmd (line 17) | type Cmd struct method Bytes (line 61) | func (cmd *Cmd) Bytes() []byte { function ParseCmd (line 33) | func ParseCmd(message []byte) (*Cmd, error) { FILE: protocol/cmd_test.go function TestParsingASendCommand (line 14) | func TestParsingASendCommand(t *testing.T) { function TestSerializeASendCommand (line 26) | func TestSerializeASendCommand(t *testing.T) { function Test_Cmd_EmptyCommand_Error (line 37) | func Test_Cmd_EmptyCommand_Error(t *testing.T) { function TestParsingASubscribeCommand (line 43) | func TestParsingASubscribeCommand(t *testing.T) { function TestSerializeASubscribeCommand (line 55) | func TestSerializeASubscribeCommand(t *testing.T) { FILE: protocol/log.go function PanicLogger (line 11) | func PanicLogger() { function identifyLogOrigin (line 18) | func identifyLogOrigin() string { function getStackTraceMessage (line 46) | func getStackTraceMessage(msg string) string { FILE: protocol/log_test.go function Test_log_functions_panic_logger (line 11) | func Test_log_functions_panic_logger(t *testing.T) { function raisePanic (line 25) | func raisePanic() { FILE: protocol/message.go type Message (line 14) | type Message struct method Metadata (line 49) | func (msg *Message) Metadata() string { method String (line 55) | func (msg *Message) String() string { method BodyAsString (line 59) | func (msg *Message) BodyAsString() string { method Bytes (line 64) | func (msg *Message) Bytes() []byte { method writeMetadata (line 85) | func (msg *Message) writeMetadata(buff *bytes.Buffer) { method encodeFilters (line 101) | func (msg *Message) encodeFilters() []byte { method decodeFilters (line 113) | func (msg *Message) decodeFilters(data []byte) { method SetFilter (line 124) | func (msg *Message) SetFilter(key, value string) { type MessageDeliveryCallback (line 46) | type MessageDeliveryCallback constant SUCCESS_CONNECTED (line 133) | SUCCESS_CONNECTED = "connected" constant SUCCESS_SEND (line 134) | SUCCESS_SEND = "send" constant SUCCESS_FETCH_START (line 135) | SUCCESS_FETCH_START = "fetch-start" constant SUCCESS_FETCH_END (line 136) | SUCCESS_FETCH_END = "fetch-end" constant SUCCESS_SUBSCRIBED_TO (line 137) | SUCCESS_SUBSCRIBED_TO = "subscribed-to" constant SUCCESS_CANCELED (line 138) | SUCCESS_CANCELED = "canceled" constant ERROR_SUBSCRIBED_TO (line 139) | ERROR_SUBSCRIBED_TO = "error-subscribed-to" constant ERROR_BAD_REQUEST (line 140) | ERROR_BAD_REQUEST = "error-bad-request" constant ERROR_INTERNAL_SERVER (line 141) | ERROR_INTERNAL_SERVER = "error-server-internal" type NotificationMessage (line 145) | type NotificationMessage struct method Bytes (line 161) | func (msg *NotificationMessage) Bytes() []byte { function Decode (line 185) | func Decode(message []byte) (interface{}, error) { function ParseMessage (line 192) | func ParseMessage(message []byte) (*Message, error) { function parseNotificationMessage (line 244) | func parseNotificationMessage(message []byte) (*NotificationMessage, err... FILE: protocol/message_test.go function TestParsingANormalMessage (line 24) | func TestParsingANormalMessage(t *testing.T) { function TestSerializeANormalMessage (line 43) | func TestSerializeANormalMessage(t *testing.T) { function TestSerializeAMinimalMessage (line 65) | func TestSerializeAMinimalMessage(t *testing.T) { function TestSerializeAMinimalMessageWithBody (line 75) | func TestSerializeAMinimalMessageWithBody(t *testing.T) { function TestParsingAMinimalMessage (line 86) | func TestParsingAMinimalMessage(t *testing.T) { function TestErrorsOnParsingMessages (line 105) | func TestErrorsOnParsingMessages(t *testing.T) { function TestParsingNotificationMessage (line 129) | func TestParsingNotificationMessage(t *testing.T) { function TestSerializeANotificationMessage (line 143) | func TestSerializeANotificationMessage(t *testing.T) { function TestSerializeAnErrorMessage (line 154) | func TestSerializeAnErrorMessage(t *testing.T) { function TestSerializeANotificationMessageWithEmptyArg (line 164) | func TestSerializeANotificationMessageWithEmptyArg(t *testing.T) { function TestParsingErrorNotificationMessage (line 174) | func TestParsingErrorNotificationMessage(t *testing.T) { function Test_Message_getPartitionFromTopic (line 190) | func Test_Message_getPartitionFromTopic(t *testing.T) { function TestMessage_Filters (line 198) | func TestMessage_Filters(t *testing.T) { function TestMessage_decodeFilters (line 212) | func TestMessage_decodeFilters(t *testing.T) { FILE: protocol/path.go type Path (line 6) | type Path method Partition (line 9) | func (path Path) Partition() string { method RemovePrefixSlash (line 16) | func (path Path) RemovePrefixSlash() string { FILE: restclient/guble_sender.go type gubleSender (line 15) | type gubleSender struct method GetSubscribers (line 28) | func (gs gubleSender) GetSubscribers(topic string) ([]byte, error) { method Check (line 69) | func (gs gubleSender) Check() bool { method Send (line 84) | func (gs gubleSender) Send(topic string, body []byte, userID string, p... function New (line 21) | func New(endpoint string) Sender { function getURL (line 112) | func getURL(endpoint, topic, userID string, params map[string]string) st... function trimPrefixSlash (line 125) | func trimPrefixSlash(topic string) string { FILE: restclient/guble_sender_test.go function TestGetURL (line 9) | func TestGetURL(t *testing.T) { FILE: restclient/sender.go type Sender (line 4) | type Sender interface FILE: server/apns/apns.go constant schema (line 15) | schema = "apns_registration" type Config (line 23) | type Config struct type apns (line 36) | type apns struct method Start (line 66) | func (a *apns) Start() error { method startMetrics (line 74) | func (a *apns) startMetrics() { method startIntervalMetric (line 92) | func (a *apns) startIntervalMetric(m metrics.Map, td time.Duration) { method HandleResponse (line 96) | func (a *apns) HandleResponse(request connector.Request, responseIface... function New (line 42) | func New(router router.Router, sender connector.Sender, config Config) (... FILE: server/apns/apns_metrics.go constant currentTotalMessagesLatenciesKey (line 25) | currentTotalMessagesLatenciesKey = "current_messages_total_latencies_nanos" constant currentTotalMessagesKey (line 26) | currentTotalMessagesKey = "current_messages_count" constant currentTotalErrorsLatenciesKey (line 27) | currentTotalErrorsLatenciesKey = "current_errors_total_latencies_nanos" constant currentTotalErrorsKey (line 28) | currentTotalErrorsKey = "current_errors_count" function processAndResetIntervalMetrics (line 31) | func processAndResetIntervalMetrics(m metrics.Map, td time.Duration, t t... function resetIntervalMetrics (line 47) | func resetIntervalMetrics(m metrics.Map, t time.Time) { function addToLatenciesAndCountsMaps (line 55) | func addToLatenciesAndCountsMaps(latenciesKey string, countKey string, l... FILE: server/apns/apns_pusher.go constant tlsDialTimeout (line 16) | tlsDialTimeout = 20 * time.Second constant httpClientTimeout (line 17) | httpClientTimeout = 30 * time.Second type Pusher (line 20) | type Pusher interface type closable (line 24) | type closable interface function newPusher (line 28) | func newPusher(c Config) (Pusher, error) { function newProductionClient (line 59) | func newProductionClient(certificate tls.Certificate) *apns2Client { function newDevelopmentClient (line 67) | func newDevelopmentClient(certificate tls.Certificate) *apns2Client { type apns2Client (line 75) | type apns2Client struct method CloseTLS (line 122) | func (c *apns2Client) CloseTLS() { function newApns2Client (line 82) | func newApns2Client(certificate tls.Certificate) *apns2Client { FILE: server/apns/apns_sender.go constant deviceIDKey (line 14) | deviceIDKey = "device_token" constant userIDKey (line 15) | userIDKey = "user_id" type sender (line 23) | type sender struct method Send (line 47) | func (s sender) Send(request connector.Request) (interface{}, error) { function NewSender (line 28) | func NewSender(config Config) (connector.Sender, error) { function NewSenderUsingPusher (line 37) | func NewSenderUsingPusher(pusher Pusher, appTopic string) (connector.Sen... type retryable (line 82) | type retryable struct method execute (line 87) | func (r *retryable) execute(op func() (interface{}, error)) (interface... FILE: server/apns/apns_sender_test.go function TestNewSender_ErrorBytes (line 13) | func TestNewSender_ErrorBytes(t *testing.T) { function TestNewSender_ErrorFile (line 32) | func TestNewSender_ErrorFile(t *testing.T) { function TestSender_Send (line 51) | func TestSender_Send(t *testing.T) { function TestSender_Retry (line 91) | func TestSender_Retry(t *testing.T) { type resultpair (line 134) | type resultpair struct function Test_Retriable (line 139) | func Test_Retriable(t *testing.T) { type mockTimeout (line 184) | type mockTimeout struct method Error (line 186) | func (e *mockTimeout) Error() string { return "mock i/o timeout" } method Timeout (line 187) | func (e *mockTimeout) Timeout() bool { return true } method Temporary (line 188) | func (e *mockTimeout) Temporary() bool { return true } FILE: server/apns/apns_test.go function TestNew_WithoutKVStore (line 16) | func TestNew_WithoutKVStore(t *testing.T) { function TestConn_HandleResponseOnSendError (line 41) | func TestConn_HandleResponseOnSendError(t *testing.T) { function TestConn_HandleResponse (line 57) | func TestConn_HandleResponse(t *testing.T) { function TestNew_HandleResponseHandleSubscriber (line 92) | func TestNew_HandleResponseHandleSubscriber(t *testing.T) { function TestNew_HandleResponseDoNotHandleSubscriber (line 138) | func TestNew_HandleResponseDoNotHandleSubscriber(t *testing.T) { function newAPNSConnector (line 203) | func newAPNSConnector(t *testing.T) (c connector.ResponsiveConnector, mK... FILE: server/apns/mocks_connector_gen_test.go type MockSender (line 15) | type MockSender struct method EXPECT (line 31) | func (_m *MockSender) EXPECT() *_MockSenderRecorder { method Send (line 35) | func (_m *MockSender) Send(_param0 connector.Request) (interface{}, er... type _MockSenderRecorder (line 21) | type _MockSenderRecorder struct method Send (line 42) | func (_mr *_MockSenderRecorder) Send(arg0 interface{}) *gomock.Call { function NewMockSender (line 25) | func NewMockSender(ctrl *gomock.Controller) *MockSender { type MockRequest (line 47) | type MockRequest struct method EXPECT (line 63) | func (_m *MockRequest) EXPECT() *_MockRequestRecorder { method Message (line 67) | func (_m *MockRequest) Message() *protocol.Message { method Subscriber (line 77) | func (_m *MockRequest) Subscriber() connector.Subscriber { type _MockRequestRecorder (line 53) | type _MockRequestRecorder struct method Message (line 73) | func (_mr *_MockRequestRecorder) Message() *gomock.Call { method Subscriber (line 83) | func (_mr *_MockRequestRecorder) Subscriber() *gomock.Call { function NewMockRequest (line 57) | func NewMockRequest(ctrl *gomock.Controller) *MockRequest { type MockSubscriber (line 88) | type MockSubscriber struct method EXPECT (line 104) | func (_m *MockSubscriber) EXPECT() *_MockSubscriberRecorder { method Cancel (line 108) | func (_m *MockSubscriber) Cancel() { method Encode (line 116) | func (_m *MockSubscriber) Encode() ([]byte, error) { method Filter (line 127) | func (_m *MockSubscriber) Filter(_param0 map[string]string) bool { method Key (line 137) | func (_m *MockSubscriber) Key() string { method Loop (line 147) | func (_m *MockSubscriber) Loop(_param0 context.Context, _param1 connec... method Reset (line 157) | func (_m *MockSubscriber) Reset() error { method Route (line 167) | func (_m *MockSubscriber) Route() *router.Route { method SetLastID (line 177) | func (_m *MockSubscriber) SetLastID(_param0 uint64) { type _MockSubscriberRecorder (line 94) | type _MockSubscriberRecorder struct method Cancel (line 112) | func (_mr *_MockSubscriberRecorder) Cancel() *gomock.Call { method Encode (line 123) | func (_mr *_MockSubscriberRecorder) Encode() *gomock.Call { method Filter (line 133) | func (_mr *_MockSubscriberRecorder) Filter(arg0 interface{}) *gomock.C... method Key (line 143) | func (_mr *_MockSubscriberRecorder) Key() *gomock.Call { method Loop (line 153) | func (_mr *_MockSubscriberRecorder) Loop(arg0, arg1 interface{}) *gomo... method Reset (line 163) | func (_mr *_MockSubscriberRecorder) Reset() *gomock.Call { method Route (line 173) | func (_mr *_MockSubscriberRecorder) Route() *gomock.Call { method SetLastID (line 181) | func (_mr *_MockSubscriberRecorder) SetLastID(arg0 interface{}) *gomoc... function NewMockSubscriber (line 98) | func NewMockSubscriber(ctrl *gomock.Controller) *MockSubscriber { FILE: server/apns/mocks_kvstore_gen_test.go type MockKVStore (line 11) | type MockKVStore struct method EXPECT (line 27) | func (_m *MockKVStore) EXPECT() *_MockKVStoreRecorder { method Delete (line 31) | func (_m *MockKVStore) Delete(_param0 string, _param1 string) error { method Get (line 41) | func (_m *MockKVStore) Get(_param0 string, _param1 string) ([]byte, bo... method Iterate (line 53) | func (_m *MockKVStore) Iterate(_param0 string, _param1 string) chan [2... method IterateKeys (line 63) | func (_m *MockKVStore) IterateKeys(_param0 string, _param1 string) cha... method Put (line 73) | func (_m *MockKVStore) Put(_param0 string, _param1 string, _param2 []b... type _MockKVStoreRecorder (line 17) | type _MockKVStoreRecorder struct method Delete (line 37) | func (_mr *_MockKVStoreRecorder) Delete(arg0, arg1 interface{}) *gomoc... method Get (line 49) | func (_mr *_MockKVStoreRecorder) Get(arg0, arg1 interface{}) *gomock.C... method Iterate (line 59) | func (_mr *_MockKVStoreRecorder) Iterate(arg0, arg1 interface{}) *gomo... method IterateKeys (line 69) | func (_mr *_MockKVStoreRecorder) IterateKeys(arg0, arg1 interface{}) *... method Put (line 79) | func (_mr *_MockKVStoreRecorder) Put(arg0, arg1, arg2 interface{}) *go... function NewMockKVStore (line 21) | func NewMockKVStore(ctrl *gomock.Controller) *MockKVStore { FILE: server/apns/mocks_pusher_gen_test.go type MockPusher (line 12) | type MockPusher struct method EXPECT (line 28) | func (_m *MockPusher) EXPECT() *_MockPusherRecorder { method Push (line 32) | func (_m *MockPusher) Push(_param0 *apns2.Notification) (*apns2.Respon... type _MockPusherRecorder (line 18) | type _MockPusherRecorder struct method Push (line 39) | func (_mr *_MockPusherRecorder) Push(arg0 interface{}) *gomock.Call { function NewMockPusher (line 22) | func NewMockPusher(ctrl *gomock.Controller) *MockPusher { FILE: server/apns/mocks_router_gen_test.go type MockRouter (line 17) | type MockRouter struct method EXPECT (line 33) | func (_m *MockRouter) EXPECT() *_MockRouterRecorder { method AccessManager (line 37) | func (_m *MockRouter) AccessManager() (auth.AccessManager, error) { method Cluster (line 48) | func (_m *MockRouter) Cluster() *cluster.Cluster { method Done (line 58) | func (_m *MockRouter) Done() <-chan bool { method Fetch (line 68) | func (_m *MockRouter) Fetch(_param0 *store.FetchRequest) error { method GetSubscribers (line 78) | func (_m *MockRouter) GetSubscribers(_param0 string) ([]byte, error) { method HandleMessage (line 89) | func (_m *MockRouter) HandleMessage(_param0 *protocol.Message) error { method KVStore (line 99) | func (_m *MockRouter) KVStore() (kvstore.KVStore, error) { method MessageStore (line 110) | func (_m *MockRouter) MessageStore() (store.MessageStore, error) { method Subscribe (line 121) | func (_m *MockRouter) Subscribe(_param0 *router.Route) (*router.Route,... method Unsubscribe (line 132) | func (_m *MockRouter) Unsubscribe(_param0 *router.Route) { type _MockRouterRecorder (line 23) | type _MockRouterRecorder struct method AccessManager (line 44) | func (_mr *_MockRouterRecorder) AccessManager() *gomock.Call { method Cluster (line 54) | func (_mr *_MockRouterRecorder) Cluster() *gomock.Call { method Done (line 64) | func (_mr *_MockRouterRecorder) Done() *gomock.Call { method Fetch (line 74) | func (_mr *_MockRouterRecorder) Fetch(arg0 interface{}) *gomock.Call { method GetSubscribers (line 85) | func (_mr *_MockRouterRecorder) GetSubscribers(arg0 interface{}) *gomo... method HandleMessage (line 95) | func (_mr *_MockRouterRecorder) HandleMessage(arg0 interface{}) *gomoc... method KVStore (line 106) | func (_mr *_MockRouterRecorder) KVStore() *gomock.Call { method MessageStore (line 117) | func (_mr *_MockRouterRecorder) MessageStore() *gomock.Call { method Subscribe (line 128) | func (_mr *_MockRouterRecorder) Subscribe(arg0 interface{}) *gomock.Ca... method Unsubscribe (line 136) | func (_mr *_MockRouterRecorder) Unsubscribe(arg0 interface{}) *gomock.... function NewMockRouter (line 27) | func NewMockRouter(ctrl *gomock.Controller) *MockRouter { FILE: server/auth/accessmanager.go type AccessType (line 8) | type AccessType constant READ (line 12) | READ AccessType = iota constant WRITE (line 15) | WRITE type AccessManager (line 19) | type AccessManager interface FILE: server/auth/accessmanager_test.go function Test_AllowAllAccessManager (line 10) | func Test_AllowAllAccessManager(t *testing.T) { function Test_RestAccessManagerAllowed (line 19) | func Test_RestAccessManagerAllowed(t *testing.T) { function Test_RestAccessManagerNotAllowed (line 31) | func Test_RestAccessManagerNotAllowed(t *testing.T) { function Test_RestAccessManagerNotAllowedWithServerNotStarted (line 42) | func Test_RestAccessManagerNotAllowedWithServerNotStarted(t *testing.T) { function Test_RestAccessManagerNotAllowedHttpReturningStatusForbidden (line 53) | func Test_RestAccessManagerNotAllowedHttpReturningStatusForbidden(t *tes... FILE: server/auth/allow_all_accessmanager.go type AllowAllAccessManager (line 8) | type AllowAllAccessManager method IsAllowed (line 16) | func (am AllowAllAccessManager) IsAllowed(accessType AccessType, userI... function NewAllowAllAccessManager (line 11) | func NewAllowAllAccessManager(allowAll bool) AllowAllAccessManager { FILE: server/auth/mocks_auth_gen_test.go type MockAccessManager (line 12) | type MockAccessManager struct method EXPECT (line 28) | func (_m *MockAccessManager) EXPECT() *_MockAccessManagerRecorder { method IsAllowed (line 32) | func (_m *MockAccessManager) IsAllowed(_param0 AccessType, _param1 str... type _MockAccessManagerRecorder (line 18) | type _MockAccessManagerRecorder struct method IsAllowed (line 38) | func (_mr *_MockAccessManagerRecorder) IsAllowed(arg0, arg1, arg2 inte... function NewMockAccessManager (line 22) | func NewMockAccessManager(ctrl *gomock.Controller) *MockAccessManager { FILE: server/auth/rest_accessmanager.go type RestAccessManager (line 14) | type RestAccessManager method IsAllowed (line 23) | func (ram RestAccessManager) IsAllowed(accessType AccessType, userId s... function NewRestAccessManager (line 17) | func NewRestAccessManager(url string) RestAccessManager { FILE: server/benchmarking_apns_test.go function BenchmarkAPNS_1Workers50MilliTimeout (line 25) | func BenchmarkAPNS_1Workers50MilliTimeout(b *testing.B) { function BenchmarkAPNS_8Workers50MilliTimeout (line 38) | func BenchmarkAPNS_8Workers50MilliTimeout(b *testing.B) { function BenchmarkAPNS_16Workers50MilliTimeout (line 51) | func BenchmarkAPNS_16Workers50MilliTimeout(b *testing.B) { function BenchmarkAPNS_1Workers100MilliTimeout (line 64) | func BenchmarkAPNS_1Workers100MilliTimeout(b *testing.B) { function BenchmarkAPNS_8Workers100MilliTimeout (line 77) | func BenchmarkAPNS_8Workers100MilliTimeout(b *testing.B) { function BenchmarkAPNS_16Workers100MilliTimeout (line 90) | func BenchmarkAPNS_16Workers100MilliTimeout(b *testing.B) { method throughputAPNS (line 103) | func (params *benchParams) throughputAPNS() { FILE: server/benchmarking_common_test.go constant testTopic (line 15) | testTopic = "/topic" type sender (line 18) | type sender function sendMessageSample (line 20) | func sendMessageSample(c client.Client) error { type benchParams (line 24) | type benchParams struct method createClients (line 43) | func (params *benchParams) createClients() (clients []client.Client) { method receiveLoop (line 56) | func (params *benchParams) receiveLoop() { method String (line 73) | func (params *benchParams) String() string { method ResetTimer (line 83) | func (params *benchParams) ResetTimer() { method StopTimer (line 88) | func (params *benchParams) StopTimer() { method duration (line 93) | func (params *benchParams) duration() time.Duration { method messagesPerSecond (line 97) | func (params *benchParams) messagesPerSecond() float64 { FILE: server/benchmarking_fcm_test.go function BenchmarkFCM_1Workers50MilliTimeout (line 24) | func BenchmarkFCM_1Workers50MilliTimeout(b *testing.B) { function BenchmarkFCM_8Workers50MilliTimeout (line 37) | func BenchmarkFCM_8Workers50MilliTimeout(b *testing.B) { function BenchmarkFCM_16Workers50MilliTimeout (line 50) | func BenchmarkFCM_16Workers50MilliTimeout(b *testing.B) { function BenchmarkFCM_1Workers100MilliTimeout (line 63) | func BenchmarkFCM_1Workers100MilliTimeout(b *testing.B) { function BenchmarkFCM_8Workers100MilliTimeout (line 76) | func BenchmarkFCM_8Workers100MilliTimeout(b *testing.B) { function BenchmarkFCM_16Workers100MilliTimeout (line 89) | func BenchmarkFCM_16Workers100MilliTimeout(b *testing.B) { method throughputFCM (line 102) | func (params *benchParams) throughputFCM() { FILE: server/benchmarking_fetch_test.go function Benchmark_E2E_Fetch_HelloWorld_Messages (line 17) | func Benchmark_E2E_Fetch_HelloWorld_Messages(b *testing.B) { FILE: server/benchmarking_test.go type testgroup (line 18) | type testgroup struct method Init (line 111) | func (tg *testgroup) Init() { method expectStatusMessage (line 133) | func (tg *testgroup) expectStatusMessage(name string, arg string) { method Start (line 146) | func (tg *testgroup) Start() { method Clean (line 179) | func (tg *testgroup) Clean() { function newTestgroup (line 28) | func newTestgroup(t *testing.T, groupID int, addr string, messagesToSend... function TestThroughput (line 38) | func TestThroughput(t *testing.T) { FILE: server/cluster/cluster.go type Config (line 23) | type Config struct type router (line 34) | type router interface type Cluster (line 40) | type Cluster struct method Start (line 88) | func (cluster *Cluster) Start() error { method Stop (line 121) | func (cluster *Cluster) Stop() error { method Check (line 129) | func (cluster *Cluster) Check() error { method newMessage (line 139) | func (cluster *Cluster) newMessage(t messageType, body []byte) *message { method newEncoderMessage (line 147) | func (cluster *Cluster) newEncoderMessage(t messageType, entity encode... method BroadcastString (line 156) | func (cluster *Cluster) BroadcastString(sMessage *string) error { method BroadcastMessage (line 167) | func (cluster *Cluster) BroadcastMessage(pMessage *protocol.Message) e... method broadcastClusterMessage (line 177) | func (cluster *Cluster) broadcastClusterMessage(cMessage *message) err... method sendToNode (line 199) | func (cluster *Cluster) sendToNode(node *memberlist.Node, msgBytes []b... method sendMessageToNode (line 218) | func (cluster *Cluster) sendMessageToNode(node *memberlist.Node, cmsg ... method sendMessageToNodeID (line 235) | func (cluster *Cluster) sendMessageToNodeID(nodeID uint8, cmsg *messag... method GetNodeByID (line 244) | func (cluster *Cluster) GetNodeByID(id uint8) *memberlist.Node { method remotesAsStrings (line 254) | func (cluster *Cluster) remotesAsStrings() (strings []string) { function New (line 60) | func New(config *Config) (*Cluster, error) { FILE: server/cluster/cluster_benchmarking_test.go function BenchmarkMemberListCluster (line 13) | func BenchmarkMemberListCluster(b *testing.B) { function benchmarkCluster (line 17) | func benchmarkCluster(b *testing.B, num int, timeoutForAllJoins time.Dur... function convergence (line 67) | func convergence(nodes []*memberlist.Memberlist, num int, eventC chan me... function sendMessagesInCluster (line 120) | func sendMessagesInCluster(nodes []*memberlist.Memberlist, numMessages i... FILE: server/cluster/cluster_conflict.go method NotifyConflict (line 13) | func (cluster *Cluster) NotifyConflict(existing, other *memberlist.Node) { FILE: server/cluster/cluster_delegate.go method NotifyMsg (line 15) | func (cluster *Cluster) NotifyMsg(data []byte) { method GetBroadcasts (line 43) | func (cluster *Cluster) GetBroadcasts(overhead, limit int) [][]byte { method NodeMeta (line 49) | func (cluster *Cluster) NodeMeta(limit int) []byte { return nil } method LocalState (line 51) | func (cluster *Cluster) LocalState(join bool) []byte { return nil } method MergeRemoteState (line 53) | func (cluster *Cluster) MergeRemoteState(s []byte, join bool) {} method handleGubleMessage (line 56) | func (cluster *Cluster) handleGubleMessage(cmsg *message) { method handleSyncPartitions (line 69) | func (cluster *Cluster) handleSyncPartitions(cmsg *message) { method handleSyncMessage (line 90) | func (cluster *Cluster) handleSyncMessage(cmsg *message) { method handleSyncMessageRequest (line 98) | func (cluster *Cluster) handleSyncMessageRequest(cmsg *message) { FILE: server/cluster/cluster_event_delegate.go method NotifyJoin (line 13) | func (cluster *Cluster) NotifyJoin(node *memberlist.Node) { method NotifyLeave (line 20) | func (cluster *Cluster) NotifyLeave(node *memberlist.Node) { method NotifyUpdate (line 25) | func (cluster *Cluster) NotifyUpdate(node *memberlist.Node) { method eventLog (line 30) | func (cluster *Cluster) eventLog(node *memberlist.Node, message string) { method sendPartitions (line 39) | func (cluster *Cluster) sendPartitions(node *memberlist.Node) { FILE: server/cluster/cluster_test.go constant basePort (line 20) | basePort = 10000 function testConfig (line 26) | func testConfig() (config Config) { function testConfigAnother (line 35) | func testConfigAnother() (config Config) { function TestCluster_StartCheckStop (line 44) | func TestCluster_StartCheckStop(t *testing.T) { function TestCluster_BroadcastStringAndMessageAndCheck (line 63) | func TestCluster_BroadcastStringAndMessageAndCheck(t *testing.T) { function TestCluster_NewShouldReturnErrorWhenPortIsInvalid (line 113) | func TestCluster_NewShouldReturnErrorWhenPortIsInvalid(t *testing.T) { function TestCluster_StartShouldReturnErrorWhenNoRemotes (line 129) | func TestCluster_StartShouldReturnErrorWhenNoRemotes(t *testing.T) { function TestCluster_StartShouldReturnErrorWhenInvalidRemotes (line 149) | func TestCluster_StartShouldReturnErrorWhenInvalidRemotes(t *testing.T) { function TestCluster_StartShouldReturnErrorWhenNoMessageHandler (line 171) | func TestCluster_StartShouldReturnErrorWhenNoMessageHandler(t *testing.T) { function TestCluster_NotifyMsgShouldSimplyReturnWhenDecodingInvalidMessage (line 186) | func TestCluster_NotifyMsgShouldSimplyReturnWhenDecodingInvalidMessage(t... function TestCluster_broadcastClusterMessage (line 204) | func TestCluster_broadcastClusterMessage(t *testing.T) { type dummyRouter (line 224) | type dummyRouter struct method HandleMessage (line 234) | func (_ *dummyRouter) HandleMessage(pmsg *protocol.Message) error { method MessageStore (line 238) | func (d *dummyRouter) MessageStore() (store.MessageStore, error) { function newDummyRouter (line 228) | func newDummyRouter(t *testing.T) *dummyRouter { FILE: server/cluster/codec.go type messageType (line 9) | type messageType constant mtGubleMessage (line 15) | mtGubleMessage messageType = iota constant mtSyncPartitions (line 19) | mtSyncPartitions constant mtSyncMessageRequest (line 22) | mtSyncMessageRequest constant mtSyncMessage (line 26) | mtSyncMessage constant mtStringMessage (line 28) | mtStringMessage type encoder (line 31) | type encoder interface type decoder (line 35) | type decoder interface type message (line 39) | type message struct method encode (line 45) | func (cmsg *message) encode() ([]byte, error) { method decode (line 54) | func (cmsg *message) decode(data []byte) error { function encode (line 59) | func encode(entity interface{}) ([]byte, error) { function decode (line 74) | func decode(o interface{}, data []byte) error { FILE: server/cluster/synchronizer.go constant syncPartitionsProcessBuffer (line 16) | syncPartitionsProcessBuffer = 100 type synchronizer (line 25) | type synchronizer struct method sync (line 59) | func (s *synchronizer) sync(nodeID uint8, partitions partitions) { method inSync (line 71) | func (s *synchronizer) inSync(nodeID string) (uint8, bool) { method inSyncID (line 81) | func (s *synchronizer) inSyncID(nodeID uint8) bool { method addNode (line 90) | func (s *synchronizer) addNode(nodeID uint8, partitions partitions) { method messageRequest (line 123) | func (s *synchronizer) messageRequest(nodeID uint8, data []byte) error { method requestLoop (line 138) | func (s *synchronizer) requestLoop(nodeID uint8, smr *syncMessageReque... method syncMessage (line 202) | func (s *synchronizer) syncMessage(nodeID uint8, data []byte) error { function newSynchronizer (line 39) | func newSynchronizer(cluster *Cluster) (*synchronizer, error) { type syncPartition (line 235) | type syncPartition struct method run (line 252) | func (sp *syncPartition) run() { method loop (line 264) | func (sp *syncPartition) loop() { method maxIDNode (line 313) | func (sp *syncPartition) maxIDNode() (max uint64, nodeID uint8) { method isRunning (line 323) | func (sp *syncPartition) isRunning() bool { method setRunning (line 330) | func (sp *syncPartition) setRunning(r bool) { type partition (line 337) | type partition struct type partitions (line 344) | type partitions method encode (line 346) | func (p *partitions) encode() ([]byte, error) { method decode (line 368) | func (p *partitions) decode(data []byte) error { function partitionsFromStore (line 378) | func partitionsFromStore(store store.MessageStore) *partitions { type syncMessageRequest (line 396) | type syncMessageRequest struct method encode (line 402) | func (smr *syncMessageRequest) encode() ([]byte, error) { method decode (line 406) | func (smr *syncMessageRequest) decode(data []byte) error { type syncMessage (line 410) | type syncMessage struct method encode (line 417) | func (sm *syncMessage) encode() ([]byte, error) { method decode (line 421) | func (sm *syncMessage) decode(data []byte) error { FILE: server/cluster_integration_test.go function Test_Cluster_Subscribe_To_Random_Node (line 12) | func Test_Cluster_Subscribe_To_Random_Node(t *testing.T) { function Test_Cluster_Integration (line 52) | func Test_Cluster_Integration(t *testing.T) { function TestSynchronizerIntegration (line 134) | func TestSynchronizerIntegration(t *testing.T) { FILE: server/config.go constant defaultHttpListen (line 20) | defaultHttpListen = ":8080" constant defaultHealthEndpoint (line 21) | defaultHealthEndpoint = "/admin/healthcheck" constant defaultMetricsEndpoint (line 22) | defaultMetricsEndpoint = "/admin/metrics" constant defaultKVSBackend (line 23) | defaultKVSBackend = "file" constant defaultMSBackend (line 24) | defaultMSBackend = "file" constant defaultStoragePath (line 25) | defaultStoragePath = "/var/lib/guble" constant defaultNodePort (line 26) | defaultNodePort = "10000" constant development (line 27) | development = "dev" constant integration (line 28) | integration = "int" constant preproduction (line 29) | preproduction = "pre" constant production (line 30) | production = "prod" constant memProfile (line 31) | memProfile = "mem" constant cpuProfile (line 32) | cpuProfile = "cpu" constant blockProfile (line 33) | blockProfile = "block" type PostgresConfig (line 46) | type PostgresConfig struct type ClusterConfig (line 54) | type ClusterConfig struct type GubleConfig (line 60) | type GubleConfig struct function logLevels (line 224) | func logLevels() (levels []string) { function parseConfig (line 234) | func parseConfig() { type tcpAddrList (line 243) | type tcpAddrList method Set (line 245) | func (h *tcpAddrList) Set(value string) error { method String (line 271) | func (h *tcpAddrList) String() string { function tcpAddrListParser (line 265) | func tcpAddrListParser(s kingpin.Settings) (target *tcpAddrList) { FILE: server/config_test.go function TestParsingOfEnvironmentVariables (line 10) | func TestParsingOfEnvironmentVariables(t *testing.T) { function TestParsingArgs (line 100) | func TestParsingArgs(t *testing.T) { function assertArguments (line 143) | func assertArguments(a *assert.Assertions) { function assertClusterRemotes (line 178) | func assertClusterRemotes(a *assert.Assertions) { FILE: server/connector/connector.go constant DefaultWorkers (line 20) | DefaultWorkers = 1 constant SubstitutePath (line 21) | SubstitutePath = "/substitute/" type Sender (line 29) | type Sender interface type SenderSetter (line 34) | type SenderSetter interface type Metadata (line 39) | type Metadata struct type ResponseHandler (line 43) | type ResponseHandler interface type ResponseHandlerSetter (line 48) | type ResponseHandlerSetter interface type Runner (line 53) | type Runner interface type Connector (line 57) | type Connector interface type ResponsiveConnector (line 68) | type ResponsiveConnector interface type connector (line 73) | type connector struct method initMuxRouter (line 120) | func (c *connector) initMuxRouter() { method ServeHTTP (line 133) | func (c *connector) ServeHTTP(w http.ResponseWriter, req *http.Request) { method GetPrefix (line 141) | func (c *connector) GetPrefix() string { method GetList (line 146) | func (c *connector) GetList(w http.ResponseWriter, req *http.Request) { method Post (line 179) | func (c *connector) Post(w http.ResponseWriter, req *http.Request) { method Delete (line 205) | func (c *connector) Delete(w http.ResponseWriter, req *http.Request) { method Substitute (line 230) | func (c *connector) Substitute(w http.ResponseWriter, req *http.Reques... method Start (line 261) | func (c *connector) Start() error { method Run (line 282) | func (c *connector) Run(s Subscriber) { method restart (line 329) | func (c *connector) restart(s Subscriber) error { method Stop (line 341) | func (c *connector) Stop() error { method Manager (line 350) | func (c *connector) Manager() Manager { method Context (line 354) | func (c *connector) Context() context.Context { method ResponseHandler (line 358) | func (c *connector) ResponseHandler() ResponseHandler { method SetResponseHandler (line 362) | func (c *connector) SetResponseHandler(handler ResponseHandler) { method Sender (line 367) | func (c *connector) Sender() Sender { method SetSender (line 371) | func (c *connector) SetSender(s Sender) { type Config (line 90) | type Config struct function NewConnector (line 98) | func NewConnector(router router.Router, sender Sender, config Config) (C... FILE: server/connector/connector_test.go type connectorMocks (line 18) | type connectorMocks struct function TestConnector_PostSubscription (line 27) | func TestConnector_PostSubscription(t *testing.T) { function TestConnector_PostSubscriptionNoMocks (line 72) | func TestConnector_PostSubscriptionNoMocks(t *testing.T) { function TestConnector_DeleteSubscription (line 109) | func TestConnector_DeleteSubscription(t *testing.T) { function TestConnector_GetList_And_Getters (line 138) | func TestConnector_GetList_And_Getters(t *testing.T) { function TestConnector_GetListWithFilters (line 165) | func TestConnector_GetListWithFilters(t *testing.T) { function TestConnector_StartWithSubscriptions (line 193) | func TestConnector_StartWithSubscriptions(t *testing.T) { function TestConnector_Substitute (line 240) | func TestConnector_Substitute(t *testing.T) { function TestConnector_SubstituteWrongPostBody (line 285) | func TestConnector_SubstituteWrongPostBody(t *testing.T) { function createSubscriptions (line 328) | func createSubscriptions(t *testing.T, conn Connector, count int) { function TestConnector_StartAndStopWithoutSubscribers (line 343) | func TestConnector_StartAndStopWithoutSubscribers(t *testing.T) { function getTestConnector (line 366) | func getTestConnector(t *testing.T, config Config, mockManager bool, moc... FILE: server/connector/manager.go type Manager (line 11) | type Manager interface type manager (line 23) | type manager struct method Load (line 38) | func (m *manager) Load() error { method Find (line 51) | func (m *manager) Find(key string) Subscriber { method Create (line 61) | func (m *manager) Create(topic protocol.Path, params router.RouteParam... method List (line 82) | func (m *manager) List() []Subscriber { method Filter (line 93) | func (m *manager) Filter(filters map[string]string) (subscribers []Sub... method Add (line 105) | func (m *manager) Add(s Subscriber) error { method Update (line 121) | func (m *manager) Update(s Subscriber) error { method putSubscriber (line 137) | func (m *manager) putSubscriber(s Subscriber) { method deleteSubscriber (line 143) | func (m *manager) deleteSubscriber(s Subscriber) { method Exists (line 149) | func (m *manager) Exists(key string) bool { method Remove (line 157) | func (m *manager) Remove(s Subscriber) error { method cancelSubscriber (line 175) | func (m *manager) cancelSubscriber(s Subscriber) { method updateStore (line 182) | func (m *manager) updateStore(s Subscriber) error { method removeStore (line 192) | func (m *manager) removeStore(s Subscriber) error { function NewManager (line 30) | func NewManager(schema string, kvstore kvstore.KVStore) Manager { FILE: server/connector/mocks_connector_gen_test.go type MockConnector (line 16) | type MockConnector struct method EXPECT (line 32) | func (_m *MockConnector) EXPECT() *_MockConnectorRecorder { method Context (line 36) | func (_m *MockConnector) Context() context.Context { method GetPrefix (line 46) | func (_m *MockConnector) GetPrefix() string { method Manager (line 56) | func (_m *MockConnector) Manager() Manager { method ResponseHandler (line 66) | func (_m *MockConnector) ResponseHandler() ResponseHandler { method Run (line 76) | func (_m *MockConnector) Run(_param0 Subscriber) { method Sender (line 84) | func (_m *MockConnector) Sender() Sender { method ServeHTTP (line 94) | func (_m *MockConnector) ServeHTTP(_param0 http.ResponseWriter, _param... method SetResponseHandler (line 102) | func (_m *MockConnector) SetResponseHandler(_param0 ResponseHandler) { method SetSender (line 110) | func (_m *MockConnector) SetSender(_param0 Sender) { method Start (line 118) | func (_m *MockConnector) Start() error { method Stop (line 128) | func (_m *MockConnector) Stop() error { type _MockConnectorRecorder (line 22) | type _MockConnectorRecorder struct method Context (line 42) | func (_mr *_MockConnectorRecorder) Context() *gomock.Call { method GetPrefix (line 52) | func (_mr *_MockConnectorRecorder) GetPrefix() *gomock.Call { method Manager (line 62) | func (_mr *_MockConnectorRecorder) Manager() *gomock.Call { method ResponseHandler (line 72) | func (_mr *_MockConnectorRecorder) ResponseHandler() *gomock.Call { method Run (line 80) | func (_mr *_MockConnectorRecorder) Run(arg0 interface{}) *gomock.Call { method Sender (line 90) | func (_mr *_MockConnectorRecorder) Sender() *gomock.Call { method ServeHTTP (line 98) | func (_mr *_MockConnectorRecorder) ServeHTTP(arg0, arg1 interface{}) *... method SetResponseHandler (line 106) | func (_mr *_MockConnectorRecorder) SetResponseHandler(arg0 interface{}... method SetSender (line 114) | func (_mr *_MockConnectorRecorder) SetSender(arg0 interface{}) *gomock... method Start (line 124) | func (_mr *_MockConnectorRecorder) Start() *gomock.Call { method Stop (line 134) | func (_mr *_MockConnectorRecorder) Stop() *gomock.Call { function NewMockConnector (line 26) | func NewMockConnector(ctrl *gomock.Controller) *MockConnector { type MockSender (line 139) | type MockSender struct method EXPECT (line 155) | func (_m *MockSender) EXPECT() *_MockSenderRecorder { method Send (line 159) | func (_m *MockSender) Send(_param0 Request) (interface{}, error) { type _MockSenderRecorder (line 145) | type _MockSenderRecorder struct method Send (line 166) | func (_mr *_MockSenderRecorder) Send(arg0 interface{}) *gomock.Call { function NewMockSender (line 149) | func NewMockSender(ctrl *gomock.Controller) *MockSender { type MockResponseHandler (line 171) | type MockResponseHandler struct method EXPECT (line 187) | func (_m *MockResponseHandler) EXPECT() *_MockResponseHandlerRecorder { method HandleResponse (line 191) | func (_m *MockResponseHandler) HandleResponse(_param0 Request, _param1... type _MockResponseHandlerRecorder (line 177) | type _MockResponseHandlerRecorder struct method HandleResponse (line 197) | func (_mr *_MockResponseHandlerRecorder) HandleResponse(arg0, arg1, ar... function NewMockResponseHandler (line 181) | func NewMockResponseHandler(ctrl *gomock.Controller) *MockResponseHandler { type MockManager (line 202) | type MockManager struct method EXPECT (line 218) | func (_m *MockManager) EXPECT() *_MockManagerRecorder { method Add (line 222) | func (_m *MockManager) Add(_param0 Subscriber) error { method Create (line 232) | func (_m *MockManager) Create(_param0 protocol.Path, _param1 router.Ro... method Exists (line 243) | func (_m *MockManager) Exists(_param0 string) bool { method Filter (line 253) | func (_m *MockManager) Filter(_param0 map[string]string) []Subscriber { method Find (line 263) | func (_m *MockManager) Find(_param0 string) Subscriber { method List (line 273) | func (_m *MockManager) List() []Subscriber { method Load (line 283) | func (_m *MockManager) Load() error { method Remove (line 293) | func (_m *MockManager) Remove(_param0 Subscriber) error { method Update (line 303) | func (_m *MockManager) Update(_param0 Subscriber) error { type _MockManagerRecorder (line 208) | type _MockManagerRecorder struct method Add (line 228) | func (_mr *_MockManagerRecorder) Add(arg0 interface{}) *gomock.Call { method Create (line 239) | func (_mr *_MockManagerRecorder) Create(arg0, arg1 interface{}) *gomoc... method Exists (line 249) | func (_mr *_MockManagerRecorder) Exists(arg0 interface{}) *gomock.Call { method Filter (line 259) | func (_mr *_MockManagerRecorder) Filter(arg0 interface{}) *gomock.Call { method Find (line 269) | func (_mr *_MockManagerRecorder) Find(arg0 interface{}) *gomock.Call { method List (line 279) | func (_mr *_MockManagerRecorder) List() *gomock.Call { method Load (line 289) | func (_mr *_MockManagerRecorder) Load() *gomock.Call { method Remove (line 299) | func (_mr *_MockManagerRecorder) Remove(arg0 interface{}) *gomock.Call { method Update (line 309) | func (_mr *_MockManagerRecorder) Update(arg0 interface{}) *gomock.Call { function NewMockManager (line 212) | func NewMockManager(ctrl *gomock.Controller) *MockManager { type MockQueue (line 314) | type MockQueue struct method EXPECT (line 330) | func (_m *MockQueue) EXPECT() *_MockQueueRecorder { method Push (line 334) | func (_m *MockQueue) Push(_param0 Request) error { method ResponseHandler (line 344) | func (_m *MockQueue) ResponseHandler() ResponseHandler { method Sender (line 354) | func (_m *MockQueue) Sender() Sender { method SetResponseHandler (line 364) | func (_m *MockQueue) SetResponseHandler(_param0 ResponseHandler) { method SetSender (line 372) | func (_m *MockQueue) SetSender(_param0 Sender) { method Start (line 380) | func (_m *MockQueue) Start() error { method Stop (line 390) | func (_m *MockQueue) Stop() error { type _MockQueueRecorder (line 320) | type _MockQueueRecorder struct method Push (line 340) | func (_mr *_MockQueueRecorder) Push(arg0 interface{}) *gomock.Call { method ResponseHandler (line 350) | func (_mr *_MockQueueRecorder) ResponseHandler() *gomock.Call { method Sender (line 360) | func (_mr *_MockQueueRecorder) Sender() *gomock.Call { method SetResponseHandler (line 368) | func (_mr *_MockQueueRecorder) SetResponseHandler(arg0 interface{}) *g... method SetSender (line 376) | func (_mr *_MockQueueRecorder) SetSender(arg0 interface{}) *gomock.Call { method Start (line 386) | func (_mr *_MockQueueRecorder) Start() *gomock.Call { method Stop (line 396) | func (_mr *_MockQueueRecorder) Stop() *gomock.Call { function NewMockQueue (line 324) | func NewMockQueue(ctrl *gomock.Controller) *MockQueue { type MockRequest (line 401) | type MockRequest struct method EXPECT (line 417) | func (_m *MockRequest) EXPECT() *_MockRequestRecorder { method Message (line 421) | func (_m *MockRequest) Message() *protocol.Message { method Subscriber (line 431) | func (_m *MockRequest) Subscriber() Subscriber { type _MockRequestRecorder (line 407) | type _MockRequestRecorder struct method Message (line 427) | func (_mr *_MockRequestRecorder) Message() *gomock.Call { method Subscriber (line 437) | func (_mr *_MockRequestRecorder) Subscriber() *gomock.Call { function NewMockRequest (line 411) | func NewMockRequest(ctrl *gomock.Controller) *MockRequest { type MockSubscriber (line 442) | type MockSubscriber struct method EXPECT (line 458) | func (_m *MockSubscriber) EXPECT() *_MockSubscriberRecorder { method Cancel (line 462) | func (_m *MockSubscriber) Cancel() { method Encode (line 470) | func (_m *MockSubscriber) Encode() ([]byte, error) { method Filter (line 481) | func (_m *MockSubscriber) Filter(_param0 map[string]string) bool { method Key (line 491) | func (_m *MockSubscriber) Key() string { method Loop (line 501) | func (_m *MockSubscriber) Loop(_param0 context.Context, _param1 Queue)... method Reset (line 511) | func (_m *MockSubscriber) Reset() error { method Route (line 521) | func (_m *MockSubscriber) Route() *router.Route { method SetLastID (line 531) | func (_m *MockSubscriber) SetLastID(_param0 uint64) { type _MockSubscriberRecorder (line 448) | type _MockSubscriberRecorder struct method Cancel (line 466) | func (_mr *_MockSubscriberRecorder) Cancel() *gomock.Call { method Encode (line 477) | func (_mr *_MockSubscriberRecorder) Encode() *gomock.Call { method Filter (line 487) | func (_mr *_MockSubscriberRecorder) Filter(arg0 interface{}) *gomock.C... method Key (line 497) | func (_mr *_MockSubscriberRecorder) Key() *gomock.Call { method Loop (line 507) | func (_mr *_MockSubscriberRecorder) Loop(arg0, arg1 interface{}) *gomo... method Reset (line 517) | func (_mr *_MockSubscriberRecorder) Reset() *gomock.Call { method Route (line 527) | func (_mr *_MockSubscriberRecorder) Route() *gomock.Call { method SetLastID (line 535) | func (_mr *_MockSubscriberRecorder) SetLastID(arg0 interface{}) *gomoc... function NewMockSubscriber (line 452) | func NewMockSubscriber(ctrl *gomock.Controller) *MockSubscriber { FILE: server/connector/mocks_kvstore_gen_test.go type MockKVStore (line 11) | type MockKVStore struct method EXPECT (line 27) | func (_m *MockKVStore) EXPECT() *_MockKVStoreRecorder { method Delete (line 31) | func (_m *MockKVStore) Delete(_param0 string, _param1 string) error { method Get (line 41) | func (_m *MockKVStore) Get(_param0 string, _param1 string) ([]byte, bo... method Iterate (line 53) | func (_m *MockKVStore) Iterate(_param0 string, _param1 string) chan [2... method IterateKeys (line 63) | func (_m *MockKVStore) IterateKeys(_param0 string, _param1 string) cha... method Put (line 73) | func (_m *MockKVStore) Put(_param0 string, _param1 string, _param2 []b... type _MockKVStoreRecorder (line 17) | type _MockKVStoreRecorder struct method Delete (line 37) | func (_mr *_MockKVStoreRecorder) Delete(arg0, arg1 interface{}) *gomoc... method Get (line 49) | func (_mr *_MockKVStoreRecorder) Get(arg0, arg1 interface{}) *gomock.C... method Iterate (line 59) | func (_mr *_MockKVStoreRecorder) Iterate(arg0, arg1 interface{}) *gomo... method IterateKeys (line 69) | func (_mr *_MockKVStoreRecorder) IterateKeys(arg0, arg1 interface{}) *... method Put (line 79) | func (_mr *_MockKVStoreRecorder) Put(arg0, arg1, arg2 interface{}) *go... function NewMockKVStore (line 21) | func NewMockKVStore(ctrl *gomock.Controller) *MockKVStore { FILE: server/connector/mocks_router_gen_test.go type MockRouter (line 17) | type MockRouter struct method EXPECT (line 33) | func (_m *MockRouter) EXPECT() *_MockRouterRecorder { method AccessManager (line 37) | func (_m *MockRouter) AccessManager() (auth.AccessManager, error) { method Cluster (line 48) | func (_m *MockRouter) Cluster() *cluster.Cluster { method Done (line 58) | func (_m *MockRouter) Done() <-chan bool { method Fetch (line 68) | func (_m *MockRouter) Fetch(_param0 *store.FetchRequest) error { method GetSubscribers (line 78) | func (_m *MockRouter) GetSubscribers(_param0 string) ([]byte, error) { method HandleMessage (line 89) | func (_m *MockRouter) HandleMessage(_param0 *protocol.Message) error { method KVStore (line 99) | func (_m *MockRouter) KVStore() (kvstore.KVStore, error) { method MessageStore (line 110) | func (_m *MockRouter) MessageStore() (store.MessageStore, error) { method Subscribe (line 121) | func (_m *MockRouter) Subscribe(_param0 *router.Route) (*router.Route,... method Unsubscribe (line 132) | func (_m *MockRouter) Unsubscribe(_param0 *router.Route) { type _MockRouterRecorder (line 23) | type _MockRouterRecorder struct method AccessManager (line 44) | func (_mr *_MockRouterRecorder) AccessManager() *gomock.Call { method Cluster (line 54) | func (_mr *_MockRouterRecorder) Cluster() *gomock.Call { method Done (line 64) | func (_mr *_MockRouterRecorder) Done() *gomock.Call { method Fetch (line 74) | func (_mr *_MockRouterRecorder) Fetch(arg0 interface{}) *gomock.Call { method GetSubscribers (line 85) | func (_mr *_MockRouterRecorder) GetSubscribers(arg0 interface{}) *gomo... method HandleMessage (line 95) | func (_mr *_MockRouterRecorder) HandleMessage(arg0 interface{}) *gomoc... method KVStore (line 106) | func (_mr *_MockRouterRecorder) KVStore() *gomock.Call { method MessageStore (line 117) | func (_mr *_MockRouterRecorder) MessageStore() *gomock.Call { method Subscribe (line 128) | func (_mr *_MockRouterRecorder) Subscribe(arg0 interface{}) *gomock.Ca... method Unsubscribe (line 136) | func (_mr *_MockRouterRecorder) Unsubscribe(arg0 interface{}) *gomock.... function NewMockRouter (line 27) | func NewMockRouter(ctrl *gomock.Controller) *MockRouter { FILE: server/connector/queue.go type Queue (line 12) | type Queue interface type queue (line 21) | type queue struct method SetResponseHandler (line 40) | func (q *queue) SetResponseHandler(rh ResponseHandler) { method ResponseHandler (line 44) | func (q *queue) ResponseHandler() ResponseHandler { method Sender (line 48) | func (q *queue) Sender() Sender { method SetSender (line 52) | func (q *queue) SetSender(s Sender) { method Start (line 57) | func (q *queue) Start() error { method worker (line 65) | func (q *queue) worker(i int) { method handle (line 72) | func (q *queue) handle(request Request) { method Push (line 101) | func (q *queue) Push(request Request) error { method Stop (line 118) | func (q *queue) Stop() error { function NewQueue (line 31) | func NewQueue(sender Sender, nWorkers int) Queue { FILE: server/connector/request.go type Request (line 5) | type Request interface type request (line 10) | type request struct method Subscriber (line 19) | func (r *request) Subscriber() Subscriber { method Message (line 23) | func (r *request) Message() *protocol.Message { function NewRequest (line 15) | func NewRequest(s Subscriber, m *protocol.Message) Request { FILE: server/connector/subscriber.go type Subscriber (line 25) | type Subscriber interface type SubscriberData (line 38) | type SubscriberData struct method newRoute (line 44) | func (sd *SubscriberData) newRoute() *router.Route { type subscriber (line 56) | type subscriber struct method String (line 88) | func (s *subscriber) String() string { method Reset (line 92) | func (s *subscriber) Reset() error { method Key (line 98) | func (s *subscriber) Key() string { method Filter (line 105) | func (s *subscriber) Filter(filters map[string]string) bool { method Route (line 109) | func (s *subscriber) Route() *router.Route { method Loop (line 113) | func (s *subscriber) Loop(ctx context.Context, q Queue) error { method SetLastID (line 142) | func (s *subscriber) SetLastID(ID uint64) { method Cancel (line 146) | func (s *subscriber) Cancel() { method Encode (line 152) | func (s *subscriber) Encode() ([]byte, error) { function NewSubscriber (line 64) | func NewSubscriber(topic protocol.Path, params router.RouteParams, lastI... function NewSubscriberFromData (line 72) | func NewSubscriberFromData(data SubscriberData) Subscriber { function NewSubscriberFromJSON (line 79) | func NewSubscriberFromJSON(data []byte) (Subscriber, error) { function GenerateKey (line 156) | func GenerateKey(topic string, params map[string]string) string { FILE: server/connector/substitution.go type substitution (line 3) | type substitution struct method isValid (line 9) | func (s *substitution) isValid() bool { FILE: server/fcm/fcm.go constant schema (line 16) | schema = "fcm_registration" constant deviceTokenKey (line 18) | deviceTokenKey = "device_token" constant userIDKEy (line 19) | userIDKEy = "user_id" type Config (line 23) | type Config struct type fcm (line 34) | type fcm struct method Start (line 58) | func (f *fcm) Start() error { method startMetrics (line 66) | func (f *fcm) startMetrics() { method startIntervalMetric (line 82) | func (f *fcm) startIntervalMetric(m metrics.Map, td time.Duration) { method HandleResponse (line 86) | func (f *fcm) HandleResponse(request connector.Request, responseIface ... method replaceCanonical (line 142) | func (f *fcm) replaceCanonical(subscriber connector.Subscriber, newTok... function New (line 40) | func New(router router.Router, sender connector.Sender, config Config) (... FILE: server/fcm/fcm_metrics.go constant currentTotalMessagesLatenciesKey (line 23) | currentTotalMessagesLatenciesKey = "current_messages_total_latencies_nanos" constant currentTotalMessagesKey (line 24) | currentTotalMessagesKey = "current_messages_count" constant currentTotalErrorsLatenciesKey (line 25) | currentTotalErrorsLatenciesKey = "current_errors_total_latencies_nanos" constant currentTotalErrorsKey (line 26) | currentTotalErrorsKey = "current_errors_count" function processAndResetIntervalMetrics (line 29) | func processAndResetIntervalMetrics(m metrics.Map, td time.Duration, t t... function resetIntervalMetrics (line 45) | func resetIntervalMetrics(m metrics.Map, t time.Time) { function addToLatenciesAndCountsMaps (line 53) | func addToLatenciesAndCountsMaps(latenciesKey string, countKey string, l... FILE: server/fcm/fcm_sender.go constant sendRetries (line 16) | sendRetries = 5 constant sendTimeout (line 19) | sendTimeout = time.Second type sender (line 22) | type sender struct method Send (line 32) | func (s *sender) Send(request connector.Request) (interface{}, error) { function NewSender (line 26) | func NewSender(apiKey string) *sender { function fcmMessage (line 40) | func fcmMessage(message *protocol.Message) *gcm.Message { function isValidResponseError (line 66) | func isValidResponseError(err error) bool { FILE: server/fcm/fcm_test.go type mocks (line 31) | type mocks struct function TestConnector_GetErrorMessageFromFCM (line 37) | func TestConnector_GetErrorMessageFromFCM(t *testing.T) { function TestFCMFormatMessage (line 97) | func TestFCMFormatMessage(t *testing.T) { function testFCM (line 181) | func testFCM(t *testing.T, mockStore bool) (connector.ResponsiveConnecto... function postSubscription (line 216) | func postSubscription(t *testing.T, fcmConn connector.ResponsiveConnecto... function deleteSubscription (line 228) | func deleteSubscription(t *testing.T, fcmConn connector.ResponsiveConnec... function removeTrailingSlash (line 240) | func removeTrailingSlash(path string) string { FILE: server/fcm/json_error.go type jsonError (line 3) | type jsonError struct method Error (line 7) | func (e *jsonError) Error() string { FILE: server/fcm/mocks_gcm_gen_test.go type MockSender (line 12) | type MockSender struct method EXPECT (line 28) | func (_m *MockSender) EXPECT() *_MockSenderRecorder { method Send (line 32) | func (_m *MockSender) Send(_param0 *gcm.Message) (*gcm.Response, error) { type _MockSenderRecorder (line 18) | type _MockSenderRecorder struct method Send (line 39) | func (_mr *_MockSenderRecorder) Send(arg0 interface{}) *gomock.Call { function NewMockSender (line 22) | func NewMockSender(ctrl *gomock.Controller) *MockSender { FILE: server/fcm/mocks_kvstore_gen_test.go type MockKVStore (line 11) | type MockKVStore struct method EXPECT (line 27) | func (_m *MockKVStore) EXPECT() *_MockKVStoreRecorder { method Delete (line 31) | func (_m *MockKVStore) Delete(_param0 string, _param1 string) error { method Get (line 41) | func (_m *MockKVStore) Get(_param0 string, _param1 string) ([]byte, bo... method Iterate (line 53) | func (_m *MockKVStore) Iterate(_param0 string, _param1 string) chan [2... method IterateKeys (line 63) | func (_m *MockKVStore) IterateKeys(_param0 string, _param1 string) cha... method Put (line 73) | func (_m *MockKVStore) Put(_param0 string, _param1 string, _param2 []b... type _MockKVStoreRecorder (line 17) | type _MockKVStoreRecorder struct method Delete (line 37) | func (_mr *_MockKVStoreRecorder) Delete(arg0, arg1 interface{}) *gomoc... method Get (line 49) | func (_mr *_MockKVStoreRecorder) Get(arg0, arg1 interface{}) *gomock.C... method Iterate (line 59) | func (_mr *_MockKVStoreRecorder) Iterate(arg0, arg1 interface{}) *gomo... method IterateKeys (line 69) | func (_mr *_MockKVStoreRecorder) IterateKeys(arg0, arg1 interface{}) *... method Put (line 79) | func (_mr *_MockKVStoreRecorder) Put(arg0, arg1, arg2 interface{}) *go... function NewMockKVStore (line 21) | func NewMockKVStore(ctrl *gomock.Controller) *MockKVStore { FILE: server/fcm/mocks_router_gen_test.go type MockRouter (line 17) | type MockRouter struct method EXPECT (line 33) | func (_m *MockRouter) EXPECT() *_MockRouterRecorder { method AccessManager (line 37) | func (_m *MockRouter) AccessManager() (auth.AccessManager, error) { method Cluster (line 48) | func (_m *MockRouter) Cluster() *cluster.Cluster { method Done (line 58) | func (_m *MockRouter) Done() <-chan bool { method Fetch (line 68) | func (_m *MockRouter) Fetch(_param0 *store.FetchRequest) error { method GetSubscribers (line 78) | func (_m *MockRouter) GetSubscribers(_param0 string) ([]byte, error) { method HandleMessage (line 89) | func (_m *MockRouter) HandleMessage(_param0 *protocol.Message) error { method KVStore (line 99) | func (_m *MockRouter) KVStore() (kvstore.KVStore, error) { method MessageStore (line 110) | func (_m *MockRouter) MessageStore() (store.MessageStore, error) { method Subscribe (line 121) | func (_m *MockRouter) Subscribe(_param0 *router.Route) (*router.Route,... method Unsubscribe (line 132) | func (_m *MockRouter) Unsubscribe(_param0 *router.Route) { type _MockRouterRecorder (line 23) | type _MockRouterRecorder struct method AccessManager (line 44) | func (_mr *_MockRouterRecorder) AccessManager() *gomock.Call { method Cluster (line 54) | func (_mr *_MockRouterRecorder) Cluster() *gomock.Call { method Done (line 64) | func (_mr *_MockRouterRecorder) Done() *gomock.Call { method Fetch (line 74) | func (_mr *_MockRouterRecorder) Fetch(arg0 interface{}) *gomock.Call { method GetSubscribers (line 85) | func (_mr *_MockRouterRecorder) GetSubscribers(arg0 interface{}) *gomo... method HandleMessage (line 95) | func (_mr *_MockRouterRecorder) HandleMessage(arg0 interface{}) *gomoc... method KVStore (line 106) | func (_mr *_MockRouterRecorder) KVStore() *gomock.Call { method MessageStore (line 117) | func (_mr *_MockRouterRecorder) MessageStore() *gomock.Call { method Subscribe (line 128) | func (_mr *_MockRouterRecorder) Subscribe(arg0 interface{}) *gomock.Ca... method Unsubscribe (line 136) | func (_mr *_MockRouterRecorder) Unsubscribe(arg0 interface{}) *gomock.... function NewMockRouter (line 27) | func NewMockRouter(ctrl *gomock.Controller) *MockRouter { FILE: server/fcm/mocks_store_gen_test.go type MockMessageStore (line 13) | type MockMessageStore struct method EXPECT (line 29) | func (_m *MockMessageStore) EXPECT() *_MockMessageStoreRecorder { method DoInTx (line 33) | func (_m *MockMessageStore) DoInTx(_param0 string, _param1 func(uint64... method Fetch (line 43) | func (_m *MockMessageStore) Fetch(_param0 *store.FetchRequest) { method GenerateNextMsgID (line 51) | func (_m *MockMessageStore) GenerateNextMsgID(_param0 string, _param1 ... method MaxMessageID (line 63) | func (_m *MockMessageStore) MaxMessageID(_param0 string) (uint64, erro... method Partition (line 74) | func (_m *MockMessageStore) Partition(_param0 string) (store.MessagePa... method Partitions (line 85) | func (_m *MockMessageStore) Partitions() ([]store.MessagePartition, er... method Store (line 96) | func (_m *MockMessageStore) Store(_param0 string, _param1 uint64, _par... method StoreMessage (line 106) | func (_m *MockMessageStore) StoreMessage(_param0 *protocol.Message, _p... type _MockMessageStoreRecorder (line 19) | type _MockMessageStoreRecorder struct method DoInTx (line 39) | func (_mr *_MockMessageStoreRecorder) DoInTx(arg0, arg1 interface{}) *... method Fetch (line 47) | func (_mr *_MockMessageStoreRecorder) Fetch(arg0 interface{}) *gomock.... method GenerateNextMsgID (line 59) | func (_mr *_MockMessageStoreRecorder) GenerateNextMsgID(arg0, arg1 int... method MaxMessageID (line 70) | func (_mr *_MockMessageStoreRecorder) MaxMessageID(arg0 interface{}) *... method Partition (line 81) | func (_mr *_MockMessageStoreRecorder) Partition(arg0 interface{}) *gom... method Partitions (line 92) | func (_mr *_MockMessageStoreRecorder) Partitions() *gomock.Call { method Store (line 102) | func (_mr *_MockMessageStoreRecorder) Store(arg0, arg1, arg2 interface... method StoreMessage (line 113) | func (_mr *_MockMessageStoreRecorder) StoreMessage(arg0, arg1 interfac... function NewMockMessageStore (line 23) | func NewMockMessageStore(ctrl *gomock.Controller) *MockMessageStore { FILE: server/fcm/testutil.go constant SuccessFCMResponse (line 13) | SuccessFCMResponse = `{ constant ErrorFCMResponse (line 27) | ErrorFCMResponse = `{ function NewSenderWithMock (line 43) | func NewSenderWithMock(gcmSender gcm.Sender) *sender { type FCMSender (line 47) | type FCMSender method Send (line 49) | func (fcms FCMSender) Send(message *gcm.Message) (*gcm.Response, error) { function CreateFcmSender (line 53) | func CreateFcmSender(body string, doneC chan bool, to time.Duration) (co... FILE: server/fcm_integration_test.go type fcmMetricsMap (line 28) | type fcmMetricsMap struct type fcmMetrics (line 35) | type fcmMetrics struct type routerMetrics (line 43) | type routerMetrics struct type expectedValues (line 48) | type expectedValues struct function TestFCMRestart (line 56) | func TestFCMRestart(t *testing.T) { function serviceSetUp (line 129) | func serviceSetUp(t *testing.T) (*service.Service, func()) { function clientSetUp (line 159) | func clientSetUp(t *testing.T, service *service.Service) client.Client { function subscriptionSetUp (line 166) | func subscriptionSetUp(t *testing.T, service *service.Service) { function assertMetrics (line 184) | func assertMetrics(a *assert.Assertions, s *service.Service, expected ex... FILE: server/gubled.go constant fileOption (line 39) | fileOption = "file" function Main (line 203) | func Main() { function StartService (line 254) | func StartService() *service.Service { function exitIfInvalidClusterParams (line 300) | func exitIfInvalidClusterParams(nodeID uint8, nodePort int, remotes []*n... function waitForTermination (line 311) | func waitForTermination(callback func()) { FILE: server/gubled_test.go function TestValidateStoragePath (line 17) | func TestValidateStoragePath(t *testing.T) { function TestCreateKVStoreBackend (line 35) | func TestCreateKVStoreBackend(t *testing.T) { function TestFCMOnlyStartedIfEnabled (line 50) | func TestFCMOnlyStartedIfEnabled(t *testing.T) { function containsFCMModule (line 68) | func containsFCMModule(modules []interface{}) bool { function TestPanicOnMissingFCMApiKey (line 77) | func TestPanicOnMissingFCMApiKey(t *testing.T) { function TestCreateStoreBackendPanicInvalidBackend (line 94) | func TestCreateStoreBackendPanicInvalidBackend(t *testing.T) { function TestStartServiceModules (line 107) | func TestStartServiceModules(t *testing.T) { function initRouterMock (line 136) | func initRouterMock() *MockRouter { FILE: server/integration_test.go function initServerAndClients (line 23) | func initServerAndClients(t *testing.T) (*service.Service, client.Client... function expectStatusMessage (line 55) | func expectStatusMessage(t *testing.T, client client.Client, name string... function checkConnectedNotificationJSON (line 68) | func checkConnectedNotificationJSON(t *testing.T, user string, connected... type Subscriber (line 79) | type Subscriber struct function TestSubscribersIntegration (line 84) | func TestSubscribersIntegration(t *testing.T) { function subscribeMultipleClients (line 113) | func subscribeMultipleClients(t *testing.T, service *service.Service, no... FILE: server/kvstore/common_test.go function CommonTestPutGetDelete (line 17) | func CommonTestPutGetDelete(t *testing.T, kvs1 KVStore, kvs2 KVStore) { function CommonTestIterate (line 42) | func CommonTestIterate(t *testing.T, kvs1 KVStore, kvs2 KVStore) { function assertChannelContainsEntries (line 68) | func assertChannelContainsEntries(a *assert.Assertions, entryC chan [2]s... function CommonTestIterateKeys (line 90) | func CommonTestIterateKeys(t *testing.T, kvs1 KVStore, kvs2 KVStore) { function assertChannelContains (line 113) | func assertChannelContains(a *assert.Assertions, entryC chan string, exp... function CommonBenchmarkPutGet (line 135) | func CommonBenchmarkPutGet(b *testing.B, s KVStore) { function assertGet (line 149) | func assertGet(a *assert.Assertions, s KVStore, schema string, key strin... function assertGetNoExist (line 156) | func assertGetNoExist(a *assert.Assertions, s KVStore, schema string, ke... function randString (line 163) | func randString(n int) string { function tempFilename (line 173) | func tempFilename() string { FILE: server/kvstore/gorm.go constant responseChannelSize (line 12) | responseChannelSize = 100 type kvEntry (line 15) | type kvEntry struct type kvStore (line 22) | type kvStore struct method Stop (line 27) | func (store *kvStore) Stop() error { method Check (line 36) | func (store *kvStore) Check() error { method Put (line 49) | func (store *kvStore) Put(schema, key string, value []byte) error { method Get (line 57) | func (store *kvStore) Get(schema, key string) ([]byte, bool, error) { method Iterate (line 69) | func (store *kvStore) Iterate(schema string, keyPrefix string) chan [2... method IterateKeys (line 89) | func (store *kvStore) IterateKeys(schema string, keyPrefix string) cha... method Delete (line 109) | func (store *kvStore) Delete(schema, key string) error { FILE: server/kvstore/kvstore.go type KVStore (line 4) | type KVStore interface FILE: server/kvstore/memory.go type MemoryKVStore (line 9) | type MemoryKVStore struct method Put (line 22) | func (kvStore *MemoryKVStore) Put(schema, key string, value []byte) er... method Get (line 31) | func (kvStore *MemoryKVStore) Get(schema, key string) ([]byte, bool, e... method Delete (line 42) | func (kvStore *MemoryKVStore) Delete(schema, key string) error { method Iterate (line 52) | func (kvStore *MemoryKVStore) Iterate(schema string, keyPrefix string)... method IterateKeys (line 72) | func (kvStore *MemoryKVStore) IterateKeys(schema string, keyPrefix str... method getSchema (line 91) | func (kvStore *MemoryKVStore) getSchema(schema string) map[string][]by... function NewMemoryKVStore (line 15) | func NewMemoryKVStore() *MemoryKVStore { FILE: server/kvstore/memory_test.go function TestMemoryPutGetDelete (line 7) | func TestMemoryPutGetDelete(t *testing.T) { function TestMemoryIterateKeys (line 12) | func TestMemoryIterateKeys(t *testing.T) { function TestMemoryIterate (line 17) | func TestMemoryIterate(t *testing.T) { function BenchmarkMemoryPutGet (line 22) | func BenchmarkMemoryPutGet(b *testing.B) { FILE: server/kvstore/postgres.go constant postgresGormLogMode (line 12) | postgresGormLogMode = false type PostgresKVStore (line 15) | type PostgresKVStore struct method Open (line 29) | func (kvStore *PostgresKVStore) Open() error { function NewPostgresKVStore (line 21) | func NewPostgresKVStore(postgresConfig PostgresConfig) *PostgresKVStore { FILE: server/kvstore/postgres_config.go type PostgresConfig (line 7) | type PostgresConfig struct method connectionString (line 13) | func (pc PostgresConfig) connectionString() string { FILE: server/kvstore/postgres_config_test.go function TestPostgresConfig_String (line 8) | func TestPostgresConfig_String(t *testing.T) { FILE: server/kvstore/postgres_test.go function BenchmarkPostgresKVStore_PutGet (line 8) | func BenchmarkPostgresKVStore_PutGet(b *testing.B) { function TestPostgresKVStore_PutGetDelete (line 14) | func TestPostgresKVStore_PutGetDelete(t *testing.T) { function TestPostgresKVStore_Iterate (line 20) | func TestPostgresKVStore_Iterate(t *testing.T) { function TestPostgresKVStore_IterateKeys (line 26) | func TestPostgresKVStore_IterateKeys(t *testing.T) { function TestPostgresKVStore_Check (line 32) | func TestPostgresKVStore_Check(t *testing.T) { function TestPostgresKVStore_Open (line 47) | func TestPostgresKVStore_Open(t *testing.T) { function aPostgresConfig (line 54) | func aPostgresConfig() PostgresConfig { function invalidPostgresConfig (line 68) | func invalidPostgresConfig() PostgresConfig { FILE: server/kvstore/sqlite.go constant sqliteMaxIdleConns (line 19) | sqliteMaxIdleConns = 2 constant sqliteMaxOpenConns (line 20) | sqliteMaxOpenConns = 5 constant sqliteGormLogMode (line 21) | sqliteGormLogMode = false type SqliteKVStore (line 27) | type SqliteKVStore struct method Open (line 47) | func (kvStore *SqliteKVStore) Open() error { function NewSqliteKVStore (line 34) | func NewSqliteKVStore(filename string, syncOnWrite bool) *SqliteKVStore { function ensureWriteableDirectory (line 90) | func ensureWriteableDirectory(dir string) error { FILE: server/kvstore/sqlite_test.go function BenchmarkSqlitePutGet (line 9) | func BenchmarkSqlitePutGet(b *testing.B) { function TestSqlitePutGetDelete (line 18) | func TestSqlitePutGetDelete(t *testing.T) { function TestSqliteIterate (line 27) | func TestSqliteIterate(t *testing.T) { function TestSqliteIterateKeys (line 37) | func TestSqliteIterateKeys(t *testing.T) { function TestCheck_SqlKVStore (line 47) | func TestCheck_SqlKVStore(t *testing.T) { FILE: server/metrics/average.go type average (line 7) | type average struct method String (line 18) | func (a average) String() string { function newAverage (line 11) | func newAverage(total, cases, scale int64, defaultAverageJSONValue strin... FILE: server/metrics/average_test.go function TestAverage_String (line 9) | func TestAverage_String(t *testing.T) { FILE: server/metrics/disabled.go type dummyInt (line 10) | type dummyInt struct method Add (line 13) | func (v *dummyInt) Add(delta int64) {} method Set (line 14) | func (v *dummyInt) Set(value int64) {} function NewInt (line 17) | func NewInt(name string) Int { type dummyMap (line 21) | type dummyMap struct method Init (line 24) | func (v *dummyMap) Init() *expvar.Map { return nil } method Get (line 25) | func (v *dummyMap) Get(key string) expvar.Var { return nil } method Set (line 26) | func (v *dummyMap) Set(key string, av expvar.Var) {} method Add (line 27) | func (v *dummyMap) Add(key string, delta int64) {} function NewMap (line 30) | func NewMap(name string) Map { function RegisterInterval (line 34) | func RegisterInterval(m Map, td time.Duration, reset func(Map, time.Time... FILE: server/metrics/enabled.go function NewInt (line 12) | func NewInt(name string) Int { function NewMap (line 16) | func NewMap(name string) Map { function RegisterInterval (line 20) | func RegisterInterval(ctx context.Context, m Map, td time.Duration, rese... FILE: server/metrics/enabled_test.go function TestNewInt (line 10) | func TestNewInt(t *testing.T) { FILE: server/metrics/int.go type Int (line 4) | type Int interface FILE: server/metrics/map.go type Map (line 10) | type Map interface function SetRate (line 17) | func SetRate(m Map, key string, value expvar.Var, timeframe, unit time.D... function SetAverage (line 29) | func SetAverage(m Map, key string, totalVar, casesVar expvar.Var, scale ... function AddToMaps (line 42) | func AddToMaps(key string, value int64, maps ...Map) { FILE: server/metrics/metrics.go constant DefaultAverageLatencyJSONValue (line 22) | DefaultAverageLatencyJSONValue = "\"\"" constant MilliPerNano (line 23) | MilliPerNano = 1000000 function HttpHandler (line 27) | func HttpHandler(rw http.ResponseWriter, r *http.Request) { function writeMetrics (line 32) | func writeMetrics(w io.Writer) { function LogOnDebugLevel (line 47) | func LogOnDebugLevel() { FILE: server/metrics/metrics_test.go function TestHttpHandler_MetricsNotEnabled (line 15) | func TestHttpHandler_MetricsNotEnabled(t *testing.T) { function TestLogOnDebugLevel_Debug (line 27) | func TestLogOnDebugLevel_Debug(t *testing.T) { function TestLogOnDebugLevel_Info (line 44) | func TestLogOnDebugLevel_Info(t *testing.T) { FILE: server/metrics/ns.go constant sep (line 3) | sep = "." type NS (line 6) | type NS method NewInt (line 8) | func (ns NS) NewInt(key string) Int { method NewMap (line 12) | func (ns NS) NewMap(key string) Map { method NewNS (line 16) | func (ns NS) NewNS(childKey string) NS { FILE: server/metrics/rate.go type rate (line 8) | type rate struct method String (line 19) | func (r rate) String() string { function newRate (line 12) | func newRate(value int64, timeframe, scale time.Duration) rate { FILE: server/metrics/rate_test.go function TestRate_String (line 9) | func TestRate_String(t *testing.T) { FILE: server/metrics/time.go type Time (line 8) | type Time struct method String (line 16) | func (t Time) String() string { function NewTime (line 12) | func NewTime(timeValue time.Time) Time { FILE: server/metrics/zero.go type zeroVar (line 3) | type zeroVar struct method String (line 6) | func (z zeroVar) String() string { FILE: server/mocks_apns_pusher_gen_test.go type MockPusher (line 12) | type MockPusher struct method EXPECT (line 28) | func (_m *MockPusher) EXPECT() *_MockPusherRecorder { method Push (line 32) | func (_m *MockPusher) Push(_param0 *apns2.Notification) (*apns2.Respon... type _MockPusherRecorder (line 18) | type _MockPusherRecorder struct method Push (line 39) | func (_mr *_MockPusherRecorder) Push(arg0 interface{}) *gomock.Call { function NewMockPusher (line 22) | func NewMockPusher(ctrl *gomock.Controller) *MockPusher { FILE: server/mocks_auth_gen_test.go type MockAccessManager (line 13) | type MockAccessManager struct method EXPECT (line 29) | func (_m *MockAccessManager) EXPECT() *_MockAccessManagerRecorder { method IsAllowed (line 33) | func (_m *MockAccessManager) IsAllowed(_param0 auth.AccessType, _param... type _MockAccessManagerRecorder (line 19) | type _MockAccessManagerRecorder struct method IsAllowed (line 39) | func (_mr *_MockAccessManagerRecorder) IsAllowed(arg0, arg1, arg2 inte... function NewMockAccessManager (line 23) | func NewMockAccessManager(ctrl *gomock.Controller) *MockAccessManager { FILE: server/mocks_router_gen_test.go type MockRouter (line 17) | type MockRouter struct method EXPECT (line 33) | func (_m *MockRouter) EXPECT() *_MockRouterRecorder { method AccessManager (line 37) | func (_m *MockRouter) AccessManager() (auth.AccessManager, error) { method Cluster (line 48) | func (_m *MockRouter) Cluster() *cluster.Cluster { method Done (line 58) | func (_m *MockRouter) Done() <-chan bool { method Fetch (line 68) | func (_m *MockRouter) Fetch(_param0 *store.FetchRequest) error { method GetSubscribers (line 78) | func (_m *MockRouter) GetSubscribers(_param0 string) ([]byte, error) { method HandleMessage (line 89) | func (_m *MockRouter) HandleMessage(_param0 *protocol.Message) error { method KVStore (line 99) | func (_m *MockRouter) KVStore() (kvstore.KVStore, error) { method MessageStore (line 110) | func (_m *MockRouter) MessageStore() (store.MessageStore, error) { method Subscribe (line 121) | func (_m *MockRouter) Subscribe(_param0 *router.Route) (*router.Route,... method Unsubscribe (line 132) | func (_m *MockRouter) Unsubscribe(_param0 *router.Route) { type _MockRouterRecorder (line 23) | type _MockRouterRecorder struct method AccessManager (line 44) | func (_mr *_MockRouterRecorder) AccessManager() *gomock.Call { method Cluster (line 54) | func (_mr *_MockRouterRecorder) Cluster() *gomock.Call { method Done (line 64) | func (_mr *_MockRouterRecorder) Done() *gomock.Call { method Fetch (line 74) | func (_mr *_MockRouterRecorder) Fetch(arg0 interface{}) *gomock.Call { method GetSubscribers (line 85) | func (_mr *_MockRouterRecorder) GetSubscribers(arg0 interface{}) *gomo... method HandleMessage (line 95) | func (_mr *_MockRouterRecorder) HandleMessage(arg0 interface{}) *gomoc... method KVStore (line 106) | func (_mr *_MockRouterRecorder) KVStore() *gomock.Call { method MessageStore (line 117) | func (_mr *_MockRouterRecorder) MessageStore() *gomock.Call { method Subscribe (line 128) | func (_mr *_MockRouterRecorder) Subscribe(arg0 interface{}) *gomock.Ca... method Unsubscribe (line 136) | func (_mr *_MockRouterRecorder) Unsubscribe(arg0 interface{}) *gomock.... function NewMockRouter (line 27) | func NewMockRouter(ctrl *gomock.Controller) *MockRouter { FILE: server/mocks_store_gen_test.go type MockMessageStore (line 13) | type MockMessageStore struct method EXPECT (line 29) | func (_m *MockMessageStore) EXPECT() *_MockMessageStoreRecorder { method DoInTx (line 33) | func (_m *MockMessageStore) DoInTx(_param0 string, _param1 func(uint64... method Fetch (line 43) | func (_m *MockMessageStore) Fetch(_param0 *store.FetchRequest) { method GenerateNextMsgID (line 51) | func (_m *MockMessageStore) GenerateNextMsgID(_param0 string, _param1 ... method MaxMessageID (line 63) | func (_m *MockMessageStore) MaxMessageID(_param0 string) (uint64, erro... method Partition (line 74) | func (_m *MockMessageStore) Partition(_param0 string) (store.MessagePa... method Partitions (line 85) | func (_m *MockMessageStore) Partitions() ([]store.MessagePartition, er... method Store (line 96) | func (_m *MockMessageStore) Store(_param0 string, _param1 uint64, _par... method StoreMessage (line 106) | func (_m *MockMessageStore) StoreMessage(_param0 *protocol.Message, _p... type _MockMessageStoreRecorder (line 19) | type _MockMessageStoreRecorder struct method DoInTx (line 39) | func (_mr *_MockMessageStoreRecorder) DoInTx(arg0, arg1 interface{}) *... method Fetch (line 47) | func (_mr *_MockMessageStoreRecorder) Fetch(arg0 interface{}) *gomock.... method GenerateNextMsgID (line 59) | func (_mr *_MockMessageStoreRecorder) GenerateNextMsgID(arg0, arg1 int... method MaxMessageID (line 70) | func (_mr *_MockMessageStoreRecorder) MaxMessageID(arg0 interface{}) *... method Partition (line 81) | func (_mr *_MockMessageStoreRecorder) Partition(arg0 interface{}) *gom... method Partitions (line 92) | func (_mr *_MockMessageStoreRecorder) Partitions() *gomock.Call { method Store (line 102) | func (_mr *_MockMessageStoreRecorder) Store(arg0, arg1, arg2 interface... method StoreMessage (line 113) | func (_mr *_MockMessageStoreRecorder) StoreMessage(arg0, arg1 interfac... function NewMockMessageStore (line 23) | func NewMockMessageStore(ctrl *gomock.Controller) *MockMessageStore { FILE: server/redundancy_test.go function Test_Subscribe_on_random_node (line 12) | func Test_Subscribe_on_random_node(t *testing.T) { function Test_Subscribe_working_After_Node_Restart (line 53) | func Test_Subscribe_working_After_Node_Restart(t *testing.T) { function Test_Independent_Receiving (line 119) | func Test_Independent_Receiving(t *testing.T) { function Test_NoReceiving_After_Unsubscribe (line 173) | func Test_NoReceiving_After_Unsubscribe(t *testing.T) { FILE: server/rest/mocks_router_gen_test.go type MockRouter (line 17) | type MockRouter struct method EXPECT (line 33) | func (_m *MockRouter) EXPECT() *_MockRouterRecorder { method AccessManager (line 37) | func (_m *MockRouter) AccessManager() (auth.AccessManager, error) { method Cluster (line 48) | func (_m *MockRouter) Cluster() *cluster.Cluster { method Done (line 58) | func (_m *MockRouter) Done() <-chan bool { method Fetch (line 68) | func (_m *MockRouter) Fetch(_param0 *store.FetchRequest) error { method GetSubscribers (line 78) | func (_m *MockRouter) GetSubscribers(_param0 string) ([]byte, error) { method HandleMessage (line 89) | func (_m *MockRouter) HandleMessage(_param0 *protocol.Message) error { method KVStore (line 99) | func (_m *MockRouter) KVStore() (kvstore.KVStore, error) { method MessageStore (line 110) | func (_m *MockRouter) MessageStore() (store.MessageStore, error) { method Subscribe (line 121) | func (_m *MockRouter) Subscribe(_param0 *router.Route) (*router.Route,... method Unsubscribe (line 132) | func (_m *MockRouter) Unsubscribe(_param0 *router.Route) { type _MockRouterRecorder (line 23) | type _MockRouterRecorder struct method AccessManager (line 44) | func (_mr *_MockRouterRecorder) AccessManager() *gomock.Call { method Cluster (line 54) | func (_mr *_MockRouterRecorder) Cluster() *gomock.Call { method Done (line 64) | func (_mr *_MockRouterRecorder) Done() *gomock.Call { method Fetch (line 74) | func (_mr *_MockRouterRecorder) Fetch(arg0 interface{}) *gomock.Call { method GetSubscribers (line 85) | func (_mr *_MockRouterRecorder) GetSubscribers(arg0 interface{}) *gomo... method HandleMessage (line 95) | func (_mr *_MockRouterRecorder) HandleMessage(arg0 interface{}) *gomoc... method KVStore (line 106) | func (_mr *_MockRouterRecorder) KVStore() *gomock.Call { method MessageStore (line 117) | func (_mr *_MockRouterRecorder) MessageStore() *gomock.Call { method Subscribe (line 128) | func (_mr *_MockRouterRecorder) Subscribe(arg0 interface{}) *gomock.Ca... method Unsubscribe (line 136) | func (_mr *_MockRouterRecorder) Unsubscribe(arg0 interface{}) *gomock.... function NewMockRouter (line 27) | func NewMockRouter(ctrl *gomock.Controller) *MockRouter { FILE: server/rest/rest_message_api.go constant xHeaderPrefix (line 23) | xHeaderPrefix = "x-guble-" constant filterPrefix (line 24) | filterPrefix = "filter" constant subscribersPrefix (line 25) | subscribersPrefix = "/subscribers" type RestMessageAPI (line 31) | type RestMessageAPI struct method GetPrefix (line 43) | func (api *RestMessageAPI) GetPrefix() string { method ServeHTTP (line 49) | func (api *RestMessageAPI) ServeHTTP(w http.ResponseWriter, r *http.Re... method extractTopic (line 116) | func (api *RestMessageAPI) extractTopic(path string, requestTypeTopicP... method setFilters (line 131) | func (api *RestMessageAPI) setFilters(r *http.Request, msg *protocol.M... function NewRestMessageAPI (line 37) | func NewRestMessageAPI(router router.Router, prefix string) *RestMessage... function q (line 140) | func q(r *http.Request, name string) string { function filterName (line 149) | func filterName(name string) string { function headersToJSON (line 153) | func headersToJSON(header http.Header) string { function removeTrailingSlash (line 175) | func removeTrailingSlash(path string) string { FILE: server/rest/rest_message_api_test.go function TestServerHTTP (line 22) | func TestServerHTTP(t *testing.T) { function TestServeHTTP_GetError (line 58) | func TestServeHTTP_GetError(t *testing.T) { function TestServeHTTP_GetSubscribers (line 81) | func TestServeHTTP_GetSubscribers(t *testing.T) { function TestHeadersToJSON (line 106) | func TestHeadersToJSON(t *testing.T) { function TestRemoveTrailingSlash (line 129) | func TestRemoveTrailingSlash(t *testing.T) { function TestExtractTopic (line 135) | func TestExtractTopic(t *testing.T) { function TestRestMessageAPI_setFilters (line 163) | func TestRestMessageAPI_setFilters(t *testing.T) { function TestRestMessageAPI_SetFiltersWhenServing (line 190) | func TestRestMessageAPI_SetFiltersWhenServing(t *testing.T) { FILE: server/router/errors.go type PermissionDeniedError (line 28) | type PermissionDeniedError struct method Error (line 40) | func (e *PermissionDeniedError) Error() string { type ModuleStoppingError (line 45) | type ModuleStoppingError struct method Error (line 49) | func (m *ModuleStoppingError) Error() string { FILE: server/router/message_queue.go constant defaultQueueCap (line 10) | defaultQueueCap = 50 type queue (line 13) | type queue struct method push (line 29) | func (q *queue) push(m *protocol.Message) { method remove (line 37) | func (q *queue) remove() { method poll (line 48) | func (q *queue) poll() (*protocol.Message, error) { method size (line 59) | func (q *queue) size() int { function newQueue (line 20) | func newQueue(size int) *queue { FILE: server/router/mocks_auth_gen_test.go type MockAccessManager (line 13) | type MockAccessManager struct method EXPECT (line 29) | func (_m *MockAccessManager) EXPECT() *_MockAccessManagerRecorder { method IsAllowed (line 33) | func (_m *MockAccessManager) IsAllowed(_param0 auth.AccessType, _param... type _MockAccessManagerRecorder (line 19) | type _MockAccessManagerRecorder struct method IsAllowed (line 39) | func (_mr *_MockAccessManagerRecorder) IsAllowed(arg0, arg1, arg2 inte... function NewMockAccessManager (line 23) | func NewMockAccessManager(ctrl *gomock.Controller) *MockAccessManager { FILE: server/router/mocks_checker_gen_test.go type MockChecker (line 11) | type MockChecker struct method EXPECT (line 27) | func (_m *MockChecker) EXPECT() *_MockCheckerRecorder { method Check (line 31) | func (_m *MockChecker) Check() error { type _MockCheckerRecorder (line 17) | type _MockCheckerRecorder struct method Check (line 37) | func (_mr *_MockCheckerRecorder) Check() *gomock.Call { function NewMockChecker (line 21) | func NewMockChecker(ctrl *gomock.Controller) *MockChecker { FILE: server/router/mocks_kvstore_gen_test.go type MockKVStore (line 11) | type MockKVStore struct method EXPECT (line 27) | func (_m *MockKVStore) EXPECT() *_MockKVStoreRecorder { method Delete (line 31) | func (_m *MockKVStore) Delete(_param0 string, _param1 string) error { method Get (line 41) | func (_m *MockKVStore) Get(_param0 string, _param1 string) ([]byte, bo... method Iterate (line 53) | func (_m *MockKVStore) Iterate(_param0 string, _param1 string) chan [2... method IterateKeys (line 63) | func (_m *MockKVStore) IterateKeys(_param0 string, _param1 string) cha... method Put (line 73) | func (_m *MockKVStore) Put(_param0 string, _param1 string, _param2 []b... type _MockKVStoreRecorder (line 17) | type _MockKVStoreRecorder struct method Delete (line 37) | func (_mr *_MockKVStoreRecorder) Delete(arg0, arg1 interface{}) *gomoc... method Get (line 49) | func (_mr *_MockKVStoreRecorder) Get(arg0, arg1 interface{}) *gomock.C... method Iterate (line 59) | func (_mr *_MockKVStoreRecorder) Iterate(arg0, arg1 interface{}) *gomo... method IterateKeys (line 69) | func (_mr *_MockKVStoreRecorder) IterateKeys(arg0, arg1 interface{}) *... method Put (line 79) | func (_mr *_MockKVStoreRecorder) Put(arg0, arg1, arg2 interface{}) *go... function NewMockKVStore (line 21) | func NewMockKVStore(ctrl *gomock.Controller) *MockKVStore { FILE: server/router/mocks_router_gen_test.go type MockRouter (line 17) | type MockRouter struct method EXPECT (line 33) | func (_m *MockRouter) EXPECT() *_MockRouterRecorder { method AccessManager (line 37) | func (_m *MockRouter) AccessManager() (auth.AccessManager, error) { method Cluster (line 48) | func (_m *MockRouter) Cluster() *cluster.Cluster { method Done (line 58) | func (_m *MockRouter) Done() <-chan bool { method Fetch (line 68) | func (_m *MockRouter) Fetch(_param0 *store.FetchRequest) error { method GetSubscribers (line 78) | func (_m *MockRouter) GetSubscribers(_param0 string) ([]byte, error) { method HandleMessage (line 89) | func (_m *MockRouter) HandleMessage(_param0 *protocol.Message) error { method KVStore (line 99) | func (_m *MockRouter) KVStore() (kvstore.KVStore, error) { method MessageStore (line 110) | func (_m *MockRouter) MessageStore() (store.MessageStore, error) { method Subscribe (line 121) | func (_m *MockRouter) Subscribe(_param0 *Route) (*Route, error) { method Unsubscribe (line 132) | func (_m *MockRouter) Unsubscribe(_param0 *Route) { type _MockRouterRecorder (line 23) | type _MockRouterRecorder struct method AccessManager (line 44) | func (_mr *_MockRouterRecorder) AccessManager() *gomock.Call { method Cluster (line 54) | func (_mr *_MockRouterRecorder) Cluster() *gomock.Call { method Done (line 64) | func (_mr *_MockRouterRecorder) Done() *gomock.Call { method Fetch (line 74) | func (_mr *_MockRouterRecorder) Fetch(arg0 interface{}) *gomock.Call { method GetSubscribers (line 85) | func (_mr *_MockRouterRecorder) GetSubscribers(arg0 interface{}) *gomo... method HandleMessage (line 95) | func (_mr *_MockRouterRecorder) HandleMessage(arg0 interface{}) *gomoc... method KVStore (line 106) | func (_mr *_MockRouterRecorder) KVStore() *gomock.Call { method MessageStore (line 117) | func (_mr *_MockRouterRecorder) MessageStore() *gomock.Call { method Subscribe (line 128) | func (_mr *_MockRouterRecorder) Subscribe(arg0 interface{}) *gomock.Ca... method Unsubscribe (line 136) | func (_mr *_MockRouterRecorder) Unsubscribe(arg0 interface{}) *gomock.... function NewMockRouter (line 27) | func NewMockRouter(ctrl *gomock.Controller) *MockRouter { FILE: server/router/mocks_store_gen_test.go type MockMessageStore (line 13) | type MockMessageStore struct method EXPECT (line 29) | func (_m *MockMessageStore) EXPECT() *_MockMessageStoreRecorder { method DoInTx (line 33) | func (_m *MockMessageStore) DoInTx(_param0 string, _param1 func(uint64... method Fetch (line 43) | func (_m *MockMessageStore) Fetch(_param0 *store.FetchRequest) { method GenerateNextMsgID (line 51) | func (_m *MockMessageStore) GenerateNextMsgID(_param0 string, _param1 ... method MaxMessageID (line 63) | func (_m *MockMessageStore) MaxMessageID(_param0 string) (uint64, erro... method Partition (line 74) | func (_m *MockMessageStore) Partition(_param0 string) (store.MessagePa... method Partitions (line 85) | func (_m *MockMessageStore) Partitions() ([]store.MessagePartition, er... method Store (line 96) | func (_m *MockMessageStore) Store(_param0 string, _param1 uint64, _par... method StoreMessage (line 106) | func (_m *MockMessageStore) StoreMessage(_param0 *protocol.Message, _p... type _MockMessageStoreRecorder (line 19) | type _MockMessageStoreRecorder struct method DoInTx (line 39) | func (_mr *_MockMessageStoreRecorder) DoInTx(arg0, arg1 interface{}) *... method Fetch (line 47) | func (_mr *_MockMessageStoreRecorder) Fetch(arg0 interface{}) *gomock.... method GenerateNextMsgID (line 59) | func (_mr *_MockMessageStoreRecorder) GenerateNextMsgID(arg0, arg1 int... method MaxMessageID (line 70) | func (_mr *_MockMessageStoreRecorder) MaxMessageID(arg0 interface{}) *... method Partition (line 81) | func (_mr *_MockMessageStoreRecorder) Partition(arg0 interface{}) *gom... method Partitions (line 92) | func (_mr *_MockMessageStoreRecorder) Partitions() *gomock.Call { method Store (line 102) | func (_mr *_MockMessageStoreRecorder) Store(arg0, arg1, arg2 interface... method StoreMessage (line 113) | func (_mr *_MockMessageStoreRecorder) StoreMessage(arg0, arg1 interfac... function NewMockMessageStore (line 23) | func NewMockMessageStore(ctrl *gomock.Controller) *MockMessageStore { FILE: server/router/route.go type Route (line 24) | type Route struct method Key (line 63) | func (r *Route) Key() string { method String (line 70) | func (r *Route) String() string { method Deliver (line 77) | func (r *Route) Deliver(msg *protocol.Message, isFromStore bool) error { method MessagesChannel (line 112) | func (r *Route) MessagesChannel() <-chan *protocol.Message { method Provide (line 119) | func (r *Route) Provide(router Router, subscribe bool) error { method handleFetch (line 134) | func (r *Route) handleFetch(router Router) error { method handleSubscribe (line 202) | func (r *Route) handleSubscribe(router Router) error { method Close (line 208) | func (r *Route) Close() error { method Equal (line 227) | func (r *Route) Equal(other *Route, keys ...string) bool { method isInvalid (line 232) | func (r *Route) isInvalid() bool { method setInvalid (line 238) | func (r *Route) setInvalid(invalid bool) { method isConsuming (line 244) | func (r *Route) isConsuming() bool { method setConsuming (line 250) | func (r *Route) setConsuming(consuming bool) { method consume (line 258) | func (r *Route) consume() { method send (line 306) | func (r *Route) send(msg *protocol.Message) error { method invalidRecover (line 331) | func (r *Route) invalidRecover() error { method sendDirect (line 340) | func (r *Route) sendDirect(msg *protocol.Message, store bool) error { function NewRoute (line 45) | func NewRoute(config RouteConfig) *Route { FILE: server/router/route_config.go type Matcher (line 12) | type Matcher type RouteConfig (line 14) | type RouteConfig struct method Equal (line 39) | func (rc *RouteConfig) Equal(other RouteConfig, keys ...string) bool { method messageFilter (line 47) | func (rc *RouteConfig) messageFilter(m *protocol.Message) bool { method Filter (line 56) | func (rc *RouteConfig) Filter(filters map[string]string) bool { FILE: server/router/route_config_test.go type routeConfig (line 10) | type routeConfig struct function TestRouteConfig_Equal (line 15) | func TestRouteConfig_Equal(t *testing.T) { function TestRouteConfig_messageFilter (line 148) | func TestRouteConfig_messageFilter(t *testing.T) { FILE: server/router/route_params.go type RouteParams (line 9) | type RouteParams method String (line 11) | func (rp *RouteParams) String() string { method Key (line 19) | func (rp *RouteParams) Key() string { method orderedKeys (line 29) | func (rp *RouteParams) orderedKeys() []string { method Equal (line 43) | func (rp *RouteParams) Equal(other RouteParams, keys ...string) bool { method partialEqual (line 60) | func (rp *RouteParams) partialEqual(other RouteParams, fields []string... method Get (line 71) | func (rp *RouteParams) Get(key string) string { method Set (line 75) | func (rp *RouteParams) Set(key, value string) { method Copy (line 79) | func (rp *RouteParams) Copy() RouteParams { FILE: server/router/route_test.go function TestRouteDeliver_sendDirect (line 32) | func TestRouteDeliver_sendDirect(t *testing.T) { function TestRouteDeliver_Invalid (line 76) | func TestRouteDeliver_Invalid(t *testing.T) { function TestRouteDeliver_QueueSize (line 85) | func TestRouteDeliver_QueueSize(t *testing.T) { function TestRouteDeliver_WithTimeout (line 114) | func TestRouteDeliver_WithTimeout(t *testing.T) { function TestRoute_CloseTwice (line 147) | func TestRoute_CloseTwice(t *testing.T) { function TestQueue_ShiftEmpty (line 158) | func TestQueue_ShiftEmpty(t *testing.T) { function testRoute (line 164) | func testRoute() *Route { function TestRoute_messageFilter (line 176) | func TestRoute_messageFilter(t *testing.T) { function isMessageReceived (line 233) | func isMessageReceived(route *Route, msg *protocol.Message) bool { function TestRoute_Provide_ErrMissingFetchRequest (line 247) | func TestRoute_Provide_ErrMissingFetchRequest(t *testing.T) { function TestRoute_Provide_Fetch (line 262) | func TestRoute_Provide_Fetch(t *testing.T) { function TestRoute_Provide_WithSubscribe (line 319) | func TestRoute_Provide_WithSubscribe(t *testing.T) { type startable (line 391) | type startable interface type stopable (line 395) | type stopable interface function TestRoute_Provide_MultipleFetch (line 401) | func TestRoute_Provide_MultipleFetch(t *testing.T) { function TestRoute_Provide_EndIDSubscribe (line 486) | func TestRoute_Provide_EndIDSubscribe(t *testing.T) { FILE: server/router/router.go constant overloadedHandleChannelRatio (line 24) | overloadedHandleChannelRatio = 0.9 constant handleChannelCapacity (line 25) | handleChannelCapacity = 500 constant subscribeChannelCapacity (line 26) | subscribeChannelCapacity = 10 constant unsubscribeChannelCapacity (line 27) | unsubscribeChannelCapacity = 10 constant prefix (line 28) | prefix = "/admin/router" type Router (line 32) | type Router interface type subRequest (line 48) | type subRequest struct type router (line 53) | type router struct method Start (line 87) | func (router *router) Start() error { method Stop (line 127) | func (router *router) Stop() error { method Check (line 135) | func (router *router) Check() error { method HandleMessage (line 159) | func (router *router) HandleMessage(message *protocol.Message) error { method Subscribe (line 199) | func (router *router) Subscribe(r *Route) (*Route, error) { method Unsubscribe (line 227) | func (router *router) Unsubscribe(r *Route) { method GetSubscribers (line 241) | func (router *router) GetSubscribers(topicPath string) ([]byte, error) { method subscribe (line 256) | func (router *router) subscribe(r *Route) { method unsubscribe (line 281) | func (router *router) unsubscribe(r *Route) { method panicIfInternalDependenciesAreNil (line 305) | func (router *router) panicIfInternalDependenciesAreNil() { method channelsAreEmpty (line 312) | func (router *router) channelsAreEmpty() bool { method setStopping (line 316) | func (router *router) setStopping(v bool) { method Done (line 323) | func (router *router) Done() <-chan bool { method isStopping (line 327) | func (router *router) isStopping() error { method handleMessage (line 338) | func (router *router) handleMessage(message *protocol.Message) { method closeRoutes (line 366) | func (router *router) closeRoutes() { method handleOverloadedChannel (line 378) | func (router *router) handleOverloadedChannel() { method Fetch (line 413) | func (router *router) Fetch(req *store.FetchRequest) error { method AccessManager (line 423) | func (router *router) AccessManager() (auth.AccessManager, error) { method MessageStore (line 431) | func (router *router) MessageStore() (store.MessageStore, error) { method KVStore (line 439) | func (router *router) KVStore() (kvstore.KVStore, error) { method Cluster (line 447) | func (router *router) Cluster() *cluster.Cluster { method ServeHTTP (line 451) | func (router *router) ServeHTTP(w http.ResponseWriter, req *http.Reque... method GetPrefix (line 467) | func (router *router) GetPrefix() string { function New (line 71) | func New(accessManager auth.AccessManager, messageStore store.MessageSto... function matchesTopic (line 389) | func matchesTopic(messagePath, routePath protocol.Path) bool { function removeIfMatching (line 399) | func removeIfMatching(slice []*Route, route *Route) ([]*Route, bool) { FILE: server/router/router_metrics.go function resetRouterMetrics (line 28) | func resetRouterMetrics() { FILE: server/router/router_test.go type msChecker (line 21) | type msChecker struct function newMSChecker (line 26) | func newMSChecker() *msChecker { type kvsChecker (line 33) | type kvsChecker struct function newKVSChecker (line 38) | func newKVSChecker() *kvsChecker { function TestRouter_AddAndRemoveRoutes (line 45) | func TestRouter_AddAndRemoveRoutes(t *testing.T) { function TestRouter_SubscribeNotAllowed (line 97) | func TestRouter_SubscribeNotAllowed(t *testing.T) { function TestRouter_HandleMessageNotAllowed (line 137) | func TestRouter_HandleMessageNotAllowed(t *testing.T) { function TestRouter_ReplacingOfRoutesMatchingAppID (line 188) | func TestRouter_ReplacingOfRoutesMatchingAppID(t *testing.T) { function TestRouter_SimpleMessageSending (line 220) | func TestRouter_SimpleMessageSending(t *testing.T) { function TestRouter_RoutingWithSubTopics (line 247) | func TestRouter_RoutingWithSubTopics(t *testing.T) { function TestMatchesTopic (line 293) | func TestMatchesTopic(t *testing.T) { function TestRoute_IsRemovedIfChannelIsFull (line 312) | func TestRoute_IsRemovedIfChannelIsFull(t *testing.T) { function TestRouter_CleanShutdown (line 373) | func TestRouter_CleanShutdown(t *testing.T) { function TestRouter_Check (line 452) | func TestRouter_Check(t *testing.T) { function TestPanicOnInternalDependencies (line 511) | func TestPanicOnInternalDependencies(t *testing.T) { function aStartedRouter (line 517) | func aStartedRouter() (*router, auth.AccessManager, store.MessageStore, ... function aRouterRoute (line 526) | func aRouterRoute(unused int) (*router, *Route) { function assertChannelContainsMessage (line 538) | func assertChannelContainsMessage(a *assert.Assertions, c <-chan *protoc... FILE: server/service/mocks_checker_gen_test.go type MockChecker (line 11) | type MockChecker struct method EXPECT (line 27) | func (_m *MockChecker) EXPECT() *_MockCheckerRecorder { method Check (line 31) | func (_m *MockChecker) Check() error { type _MockCheckerRecorder (line 17) | type _MockCheckerRecorder struct method Check (line 37) | func (_mr *_MockCheckerRecorder) Check() *gomock.Call { function NewMockChecker (line 21) | func NewMockChecker(ctrl *gomock.Controller) *MockChecker { FILE: server/service/mocks_router_gen_test.go type MockRouter (line 17) | type MockRouter struct method EXPECT (line 33) | func (_m *MockRouter) EXPECT() *_MockRouterRecorder { method AccessManager (line 37) | func (_m *MockRouter) AccessManager() (auth.AccessManager, error) { method Cluster (line 48) | func (_m *MockRouter) Cluster() *cluster.Cluster { method Done (line 58) | func (_m *MockRouter) Done() <-chan bool { method Fetch (line 68) | func (_m *MockRouter) Fetch(_param0 *store.FetchRequest) error { method GetSubscribers (line 78) | func (_m *MockRouter) GetSubscribers(_param0 string) ([]byte, error) { method HandleMessage (line 89) | func (_m *MockRouter) HandleMessage(_param0 *protocol.Message) error { method KVStore (line 99) | func (_m *MockRouter) KVStore() (kvstore.KVStore, error) { method MessageStore (line 110) | func (_m *MockRouter) MessageStore() (store.MessageStore, error) { method Subscribe (line 121) | func (_m *MockRouter) Subscribe(_param0 *router.Route) (*router.Route,... method Unsubscribe (line 132) | func (_m *MockRouter) Unsubscribe(_param0 *router.Route) { type _MockRouterRecorder (line 23) | type _MockRouterRecorder struct method AccessManager (line 44) | func (_mr *_MockRouterRecorder) AccessManager() *gomock.Call { method Cluster (line 54) | func (_mr *_MockRouterRecorder) Cluster() *gomock.Call { method Done (line 64) | func (_mr *_MockRouterRecorder) Done() *gomock.Call { method Fetch (line 74) | func (_mr *_MockRouterRecorder) Fetch(arg0 interface{}) *gomock.Call { method GetSubscribers (line 85) | func (_mr *_MockRouterRecorder) GetSubscribers(arg0 interface{}) *gomo... method HandleMessage (line 95) | func (_mr *_MockRouterRecorder) HandleMessage(arg0 interface{}) *gomoc... method KVStore (line 106) | func (_mr *_MockRouterRecorder) KVStore() *gomock.Call { method MessageStore (line 117) | func (_mr *_MockRouterRecorder) MessageStore() *gomock.Call { method Subscribe (line 128) | func (_mr *_MockRouterRecorder) Subscribe(arg0 interface{}) *gomock.Ca... method Unsubscribe (line 136) | func (_mr *_MockRouterRecorder) Unsubscribe(arg0 interface{}) *gomock.... function NewMockRouter (line 27) | func NewMockRouter(ctrl *gomock.Controller) *MockRouter { FILE: server/service/module.go type Startable (line 9) | type Startable interface type Stopable (line 14) | type Stopable interface type Endpoint (line 19) | type Endpoint interface type module (line 24) | type module struct type by (line 30) | type by method sort (line 37) | func (criteria by) sort(modules []module) { type moduleSorter (line 32) | type moduleSorter struct method Len (line 47) | func (s *moduleSorter) Len() int { return len(s.modules) } method Swap (line 48) | func (s *moduleSorter) Swap(i, j int) { s.modules[i], s.modules[j... method Less (line 49) | func (s *moduleSorter) Less(i, j int) bool { return s.by(&s.modules[i]... FILE: server/service/service.go constant defaultHealthFrequency (line 18) | defaultHealthFrequency = time.Second * 60 constant defaultHealthThreshold (line 19) | defaultHealthThreshold = 1 type Service (line 23) | type Service struct method RegisterModules (line 55) | func (s *Service) RegisterModules(startOrder int, stopOrder int, iface... method HealthEndpoint (line 72) | func (s *Service) HealthEndpoint(endpointPrefix string) *Service { method MetricsEndpoint (line 78) | func (s *Service) MetricsEndpoint(endpointPrefix string) *Service { method Start (line 87) | func (s *Service) Start() error { method Stop (line 126) | func (s *Service) Stop() error { method WebServer (line 143) | func (s *Service) WebServer() *webserver.WebServer { method ModulesSortedByStartOrder (line 148) | func (s *Service) ModulesSortedByStartOrder() []interface{} { method modulesSortedBy (line 153) | func (s *Service) modulesSortedBy(criteria by) []interface{} { function New (line 36) | func New(router router.Router, webserver *webserver.WebServer) *Service { FILE: server/service/service_test.go function TestStartingOfModules (line 20) | func TestStartingOfModules(t *testing.T) { function TestStoppingOfModules (line 38) | func TestStoppingOfModules(t *testing.T) { function TestEndpointRegisterAndServing (line 54) | func TestEndpointRegisterAndServing(t *testing.T) { function TestHealthUp (line 79) | func TestHealthUp(t *testing.T) { function TestHealthDown (line 106) | func TestHealthDown(t *testing.T) { function TestMetricsEnabled (line 138) | func TestMetricsEnabled(t *testing.T) { function aMockedServiceWithMockedRouterStandalone (line 165) | func aMockedServiceWithMockedRouterStandalone() (*Service, kvstore.KVSto... type testEndpoint (line 174) | type testEndpoint struct method GetPrefix (line 177) | func (*testEndpoint) GetPrefix() string { method ServeHTTP (line 181) | func (*testEndpoint) ServeHTTP(w http.ResponseWriter, r *http.Request) { type testStartable (line 186) | type testStartable struct method Start (line 189) | func (*testStartable) Start() error { type testStopable (line 193) | type testStopable struct method Stop (line 196) | func (*testStopable) Stop() error { FILE: server/sms/mocks_router_gen_test.go type MockRouter (line 17) | type MockRouter struct method EXPECT (line 33) | func (_m *MockRouter) EXPECT() *_MockRouterRecorder { method AccessManager (line 37) | func (_m *MockRouter) AccessManager() (auth.AccessManager, error) { method Cluster (line 48) | func (_m *MockRouter) Cluster() *cluster.Cluster { method Done (line 58) | func (_m *MockRouter) Done() <-chan bool { method Fetch (line 68) | func (_m *MockRouter) Fetch(_param0 *store.FetchRequest) error { method GetSubscribers (line 78) | func (_m *MockRouter) GetSubscribers(_param0 string) ([]byte, error) { method HandleMessage (line 89) | func (_m *MockRouter) HandleMessage(_param0 *protocol.Message) error { method KVStore (line 99) | func (_m *MockRouter) KVStore() (kvstore.KVStore, error) { method MessageStore (line 110) | func (_m *MockRouter) MessageStore() (store.MessageStore, error) { method Subscribe (line 121) | func (_m *MockRouter) Subscribe(_param0 *router.Route) (*router.Route,... method Unsubscribe (line 132) | func (_m *MockRouter) Unsubscribe(_param0 *router.Route) { type _MockRouterRecorder (line 23) | type _MockRouterRecorder struct method AccessManager (line 44) | func (_mr *_MockRouterRecorder) AccessManager() *gomock.Call { method Cluster (line 54) | func (_mr *_MockRouterRecorder) Cluster() *gomock.Call { method Done (line 64) | func (_mr *_MockRouterRecorder) Done() *gomock.Call { method Fetch (line 74) | func (_mr *_MockRouterRecorder) Fetch(arg0 interface{}) *gomock.Call { method GetSubscribers (line 85) | func (_mr *_MockRouterRecorder) GetSubscribers(arg0 interface{}) *gomo... method HandleMessage (line 95) | func (_mr *_MockRouterRecorder) HandleMessage(arg0 interface{}) *gomoc... method KVStore (line 106) | func (_mr *_MockRouterRecorder) KVStore() *gomock.Call { method MessageStore (line 117) | func (_mr *_MockRouterRecorder) MessageStore() *gomock.Call { method Subscribe (line 128) | func (_mr *_MockRouterRecorder) Subscribe(arg0 interface{}) *gomock.Ca... method Unsubscribe (line 136) | func (_mr *_MockRouterRecorder) Unsubscribe(arg0 interface{}) *gomock.... function NewMockRouter (line 27) | func NewMockRouter(ctrl *gomock.Controller) *MockRouter { FILE: server/sms/mocks_sender_gen_test.go type MockSender (line 12) | type MockSender struct method EXPECT (line 28) | func (_m *MockSender) EXPECT() *_MockSenderRecorder { method Send (line 32) | func (_m *MockSender) Send(_param0 *protocol.Message) error { type _MockSenderRecorder (line 18) | type _MockSenderRecorder struct method Send (line 38) | func (_mr *_MockSenderRecorder) Send(arg0 interface{}) *gomock.Call { function NewMockSender (line 22) | func NewMockSender(ctrl *gomock.Controller) *MockSender { FILE: server/sms/mocks_store_gen_test.go type MockMessageStore (line 13) | type MockMessageStore struct method EXPECT (line 29) | func (_m *MockMessageStore) EXPECT() *_MockMessageStoreRecorder { method DoInTx (line 33) | func (_m *MockMessageStore) DoInTx(_param0 string, _param1 func(uint64... method Fetch (line 43) | func (_m *MockMessageStore) Fetch(_param0 *store.FetchRequest) { method GenerateNextMsgID (line 51) | func (_m *MockMessageStore) GenerateNextMsgID(_param0 string, _param1 ... method MaxMessageID (line 63) | func (_m *MockMessageStore) MaxMessageID(_param0 string) (uint64, erro... method Partition (line 74) | func (_m *MockMessageStore) Partition(_param0 string) (store.MessagePa... method Partitions (line 85) | func (_m *MockMessageStore) Partitions() ([]store.MessagePartition, er... method Store (line 96) | func (_m *MockMessageStore) Store(_param0 string, _param1 uint64, _par... method StoreMessage (line 106) | func (_m *MockMessageStore) StoreMessage(_param0 *protocol.Message, _p... type _MockMessageStoreRecorder (line 19) | type _MockMessageStoreRecorder struct method DoInTx (line 39) | func (_mr *_MockMessageStoreRecorder) DoInTx(arg0, arg1 interface{}) *... method Fetch (line 47) | func (_mr *_MockMessageStoreRecorder) Fetch(arg0 interface{}) *gomock.... method GenerateNextMsgID (line 59) | func (_mr *_MockMessageStoreRecorder) GenerateNextMsgID(arg0, arg1 int... method MaxMessageID (line 70) | func (_mr *_MockMessageStoreRecorder) MaxMessageID(arg0 interface{}) *... method Partition (line 81) | func (_mr *_MockMessageStoreRecorder) Partition(arg0 interface{}) *gom... method Partitions (line 92) | func (_mr *_MockMessageStoreRecorder) Partitions() *gomock.Call { method Store (line 102) | func (_mr *_MockMessageStoreRecorder) Store(arg0, arg1, arg2 interface... method StoreMessage (line 113) | func (_mr *_MockMessageStoreRecorder) StoreMessage(arg0, arg1 interfac... function NewMockMessageStore (line 23) | func NewMockMessageStore(ctrl *gomock.Controller) *MockMessageStore { FILE: server/sms/nexmo_sms.go type NexmoSms (line 5) | type NexmoSms struct method EncodeNexmoSms (line 13) | func (sms *NexmoSms) EncodeNexmoSms(apiKey, apiSecret string) ([]byte,... FILE: server/sms/nexmo_sms_sender.go type ResponseCode (line 22) | type ResponseCode method String (line 74) | func (c ResponseCode) String() string { constant ResponseSuccess (line 25) | ResponseSuccess ResponseCode = iota constant ResponseThrottled (line 26) | ResponseThrottled constant ResponseMissingParams (line 27) | ResponseMissingParams constant ResponseInvalidParams (line 28) | ResponseInvalidParams constant ResponseInvalidCredentials (line 29) | ResponseInvalidCredentials constant ResponseInternalError (line 30) | ResponseInternalError constant ResponseInvalidMessage (line 31) | ResponseInvalidMessage constant ResponseNumberBarred (line 32) | ResponseNumberBarred constant ResponsePartnerAcctBarred (line 33) | ResponsePartnerAcctBarred constant ResponsePartnerQuotaExceeded (line 34) | ResponsePartnerQuotaExceeded constant ResponseUnused (line 35) | ResponseUnused constant ResponseRESTNotEnabled (line 36) | ResponseRESTNotEnabled constant ResponseMessageTooLong (line 37) | ResponseMessageTooLong constant ResponseCommunicationFailed (line 38) | ResponseCommunicationFailed constant ResponseInvalidSignature (line 39) | ResponseInvalidSignature constant ResponseInvalidSenderAddress (line 40) | ResponseInvalidSenderAddress constant ResponseInvalidTTL (line 41) | ResponseInvalidTTL constant ResponseFacilityNotAllowed (line 42) | ResponseFacilityNotAllowed constant ResponseInvalidMessageClass (line 43) | ResponseInvalidMessageClass type NexmoMessageReport (line 79) | type NexmoMessageReport struct type NexmoMessageResponse (line 90) | type NexmoMessageResponse struct method Check (line 95) | func (nm NexmoMessageResponse) Check() error { type NexmoSender (line 115) | type NexmoSender struct method Send (line 133) | func (ns *NexmoSender) Send(msg *protocol.Message) error { method sendSms (line 150) | func (ns *NexmoSender) sendSms(sms *NexmoSms) (*NexmoMessageResponse, ... method createHttpClient (line 192) | func (ns *NexmoSender) createHttpClient() { function NewNexmoSender (line 123) | func NewNexmoSender(apiKey, apiSecret string) (*NexmoSender, error) { FILE: server/sms/nexmo_sms_sender_test.go constant KEY (line 14) | KEY = "ce40b46d" constant SECRET (line 15) | SECRET = "153d2b2c72985370" function TestNexmoSender_Send (line 18) | func TestNexmoSender_Send(t *testing.T) { function TestNexmoSender_SendWithError (line 35) | func TestNexmoSender_SendWithError(t *testing.T) { FILE: server/sms/sms_gateway.go constant SMSSchema (line 20) | SMSSchema = "sms_notifications" constant SMSDefaultTopic (line 21) | SMSDefaultTopic = "/sms" type Sender (line 28) | type Sender interface type Config (line 32) | type Config struct type gateway (line 44) | type gateway struct method Start (line 73) | func (g *gateway) Start() error { method initRoute (line 92) | func (g *gateway) initRoute() { method fetchRequest (line 100) | func (g *gateway) fetchRequest() (fr *store.FetchRequest) { method Run (line 111) | func (g *gateway) Run() { method proxyLoop (line 173) | func (g *gateway) proxyLoop() (*protocol.Message, error) { method retry (line 206) | func (g *gateway) retry(msg *protocol.Message) error { method send (line 226) | func (g *gateway) send(receivedMsg *protocol.Message) error { method Restart (line 238) | func (g *gateway) Restart() error { method Stop (line 257) | func (g *gateway) Stop() error { method SetLastSentID (line 264) | func (g *gateway) SetLastSentID(ID uint64) error { method ReadLastID (line 287) | func (g *gateway) ReadLastID() error { method Cancel (line 315) | func (g *gateway) Cancel() { method startMetrics (line 321) | func (g *gateway) startMetrics() { method startIntervalMetric (line 334) | func (g *gateway) startIntervalMetric(m metrics.Map, td time.Duration) { function New (line 59) | func New(router router.Router, sender Sender, config Config) (*gateway, ... function isRestartableErr (line 164) | func isRestartableErr(err error) bool { FILE: server/sms/sms_gateway_test.go function Test_StartStop (line 22) | func Test_StartStop(t *testing.T) { function Test_SendOneSms (line 64) | func Test_SendOneSms(t *testing.T) { function Test_Restart (line 134) | func Test_Restart(t *testing.T) { function TestReadLastID (line 200) | func TestReadLastID(t *testing.T) { FILE: server/sms/sms_metrics.go constant currentTotalMessagesLatenciesKey (line 20) | currentTotalMessagesLatenciesKey = "current_messages_total_latencies_nanos" constant currentTotalMessagesKey (line 21) | currentTotalMessagesKey = "current_messages_count" constant currentTotalErrorsLatenciesKey (line 22) | currentTotalErrorsLatenciesKey = "current_errors_total_latencies_nanos" constant currentTotalErrorsKey (line 23) | currentTotalErrorsKey = "current_errors_count" function processAndResetIntervalMetrics (line 26) | func processAndResetIntervalMetrics(m metrics.Map, td time.Duration, t t... function resetIntervalMetrics (line 42) | func resetIntervalMetrics(m metrics.Map, t time.Time) { FILE: server/store/dummystore/dummy_message_store.go constant topicSchema (line 14) | topicSchema = "topic_sequence" type DummyMessageStore (line 21) | type DummyMessageStore struct method Start (line 45) | func (dms *DummyMessageStore) Start() error { method Stop (line 52) | func (dms *DummyMessageStore) Stop() error { method StoreMessage (line 62) | func (dms *DummyMessageStore) StoreMessage(message *protocol.Message, ... method Store (line 79) | func (dms *DummyMessageStore) Store(partition string, msgID uint64, ms... method store (line 85) | func (dms *DummyMessageStore) store(partition string, msgId uint64, ms... method Fetch (line 100) | func (dms *DummyMessageStore) Fetch(req *store.FetchRequest) { method MaxMessageID (line 104) | func (dms *DummyMessageStore) MaxMessageID(partition string) (uint64, ... method DoInTx (line 111) | func (dms *DummyMessageStore) DoInTx(partition string, fnToExecute fun... method GenerateNextMsgID (line 122) | func (dms *DummyMessageStore) GenerateNextMsgID(partitionName string, ... method maxMessageID (line 135) | func (dms *DummyMessageStore) maxMessageID(partition string) (uint64, ... method setID (line 156) | func (dms *DummyMessageStore) setID(partition string, id uint64) { method startSequenceSync (line 160) | func (dms *DummyMessageStore) startSequenceSync() { method Check (line 193) | func (dms *DummyMessageStore) Check() error { method Partition (line 197) | func (dms *DummyMessageStore) Partition(name string) (store.MessagePar... method Partitions (line 201) | func (dms *DummyMessageStore) Partitions() ([]store.MessagePartition, ... function New (line 34) | func New(kvStore kvstore.KVStore) *DummyMessageStore { FILE: server/store/dummystore/dummy_message_store_test.go function Test_DummyMessageStore_IncreaseOnStore (line 12) | func Test_DummyMessageStore_IncreaseOnStore(t *testing.T) { function Test_DummyMessageStore_ErrorOnWrongMessageId (line 23) | func Test_DummyMessageStore_ErrorOnWrongMessageId(t *testing.T) { function Test_DummyMessageStore_InitIdsFromKvStore (line 32) | func Test_DummyMessageStore_InitIdsFromKvStore(t *testing.T) { function Test_DummyMessageStore_SyncIds (line 46) | func Test_DummyMessageStore_SyncIds(t *testing.T) { function Test_DummyMessageStore_SyncIdsOnStop (line 76) | func Test_DummyMessageStore_SyncIdsOnStop(t *testing.T) { function fne (line 108) | func fne(args ...interface{}) interface{} { FILE: server/store/fetch_request.go constant DirectionOneMessage (line 12) | DirectionOneMessage FetchDirection = 0 constant DirectionForward (line 13) | DirectionForward FetchDirection = 1 constant DirectionBackwards (line 14) | DirectionBackwards FetchDirection = -1 constant FetchBufferSize (line 17) | FetchBufferSize = 10 type FetchDirection (line 20) | type FetchDirection type FetchedMessage (line 23) | type FetchedMessage struct type FetchRequest (line 29) | type FetchRequest struct method Init (line 80) | func (fr *FetchRequest) Init() { method Ready (line 92) | func (fr *FetchRequest) Ready() int { method Messages (line 96) | func (fr *FetchRequest) Messages() <-chan *FetchedMessage { method Errors (line 100) | func (fr *FetchRequest) Errors() <-chan error { method Error (line 104) | func (fr *FetchRequest) Error(err error) { method Push (line 108) | func (fr *FetchRequest) Push(id uint64, message []byte) { method PushFetchMessage (line 112) | func (fr *FetchRequest) PushFetchMessage(fm *FetchedMessage) { method PushError (line 116) | func (fr *FetchRequest) PushError(err error) { method IsDone (line 120) | func (fr *FetchRequest) IsDone() bool { method Done (line 126) | func (fr *FetchRequest) Done() { function NewFetchRequest (line 66) | func NewFetchRequest(partition string, start, end uint64, direction Fetc... FILE: server/store/filestore/cache.go type cache (line 9) | type cache struct method length (line 21) | func (c *cache) length() int { method add (line 28) | func (c *cache) add(entry *cacheEntry) { function newCache (line 14) | func newCache() *cache { type cacheEntry (line 35) | type cacheEntry struct method Contains (line 41) | func (entry *cacheEntry) Contains(req *store.FetchRequest) bool { FILE: server/store/filestore/index_list.go type indexList (line 12) | type indexList struct method len (line 22) | func (l *indexList) len() int { method insertList (line 29) | func (l *indexList) insertList(other *indexList) { method insert (line 34) | func (l *indexList) insert(items ...*index) { method insertElem (line 40) | func (l *indexList) insertElem(elem *index) { method clear (line 71) | func (l *indexList) clear() { method search (line 83) | func (l *indexList) search(searchID uint64) (bool, int, int, *index) { method back (line 114) | func (l *indexList) back() *index { method front (line 126) | func (l *indexList) front() *index { method toSliceArray (line 137) | func (l *indexList) toSliceArray() []*index { method get (line 145) | func (l *indexList) get(pos int) *index { method mapWithPredicate (line 160) | func (l *indexList) mapWithPredicate(predicate func(elem *index, i int... method String (line 173) | func (l *indexList) String() string { method contains (line 185) | func (l *indexList) contains(id uint64) bool { method extract (line 201) | func (l *indexList) extract(req *store.FetchRequest) *indexList { function newIndexList (line 18) | func newIndexList(size int) *indexList { function abs (line 239) | func abs(m1, m2 uint64) uint64 { FILE: server/store/filestore/index_list_test.go function Test_SortedListSanity (line 11) | func Test_SortedListSanity(t *testing.T) { FILE: server/store/filestore/message_partition.go constant gubleNodeIdBits (line 28) | gubleNodeIdBits = 3 constant sequenceBits (line 29) | sequenceBits = 12 constant gubleNodeIdShift (line 30) | gubleNodeIdShift = sequenceBits constant timestampLeftShift (line 31) | timestampLeftShift = sequenceBits + gubleNodeIdBits constant gubleEpoch (line 32) | gubleEpoch = 1467714505012 type index (line 35) | type index struct type messagePartition (line 42) | type messagePartition struct method Name (line 68) | func (p *messagePartition) Name() string { method MaxMessageID (line 72) | func (p *messagePartition) MaxMessageID() uint64 { method Count (line 79) | func (p *messagePartition) Count() uint64 { method initialize (line 86) | func (p *messagePartition) initialize() error { method readIdxFiles (line 103) | func (p *messagePartition) readIdxFiles() error { method closeAppendFiles (line 174) | func (p *messagePartition) closeAppendFiles() error { method createNextAppendFiles (line 219) | func (p *messagePartition) createNextAppendFiles() error { method generateNextMsgID (line 261) | func (p *messagePartition) generateNextMsgID(nodeID uint8) (uint64, in... method Close (line 293) | func (p *messagePartition) Close() error { method DoInTx (line 300) | func (p *messagePartition) DoInTx(fnToExecute func(maxMessageId uint64... method Store (line 306) | func (p *messagePartition) Store(msgID uint64, msg []byte) error { method store (line 313) | func (p *messagePartition) store(messageID uint64, data []byte) error { method Fetch (line 407) | func (p *messagePartition) Fetch(req *store.FetchRequest) { method fetchByFetchlist (line 438) | func (p *messagePartition) fetchByFetchlist(fetchList *indexList, req ... method calculateFetchList (line 467) | func (p *messagePartition) calculateFetchList(req *store.FetchRequest)... method rewriteSortedIdxFile (line 512) | func (p *messagePartition) rewriteSortedIdxFile(filename string) error { method loadLastIndexList (line 603) | func (p *messagePartition) loadLastIndexList(filename string) error { method loadIndexList (line 619) | func (p *messagePartition) loadIndexList(fileID int) (*indexList, erro... method composeMsgFilenameForPosition (line 662) | func (p *messagePartition) composeMsgFilenameForPosition(value uint64)... method composeIdxFilenameForPosition (line 666) | func (p *messagePartition) composeIdxFilenameForPosition(value uint64)... function newMessagePartition (line 58) | func newMessagePartition(basedir string, storeName string) (*messagePart... function readCacheEntryFromIdxFile (line 194) | func readCacheEntryFromIdxFile(filename string) (entry *cacheEntry, err ... function readIndexEntry (line 554) | func readIndexEntry(file *os.File, position int64) (uint64, uint64, uint... function writeIndexEntry (line 572) | func writeIndexEntry(w io.WriterAt, id uint64, offset uint64, size uint3... function calculateNoEntries (line 592) | func calculateNoEntries(filename string) (uint64, error) { FILE: server/store/filestore/message_partition_robustness_test.go function Test_MessagePartition_forConcurrentWriteAndReads (line 16) | func Test_MessagePartition_forConcurrentWriteAndReads(t *testing.T) { function messagePartitionWriter (line 52) | func messagePartitionWriter(a *assert.Assertions, store *messagePartitio... function messagePartitionReader (line 60) | func messagePartitionReader(name string, a *assert.Assertions, mStore *m... FILE: server/store/filestore/message_partition_test.go function TestFileMessageStore_GenerateNextMsgId (line 18) | func TestFileMessageStore_GenerateNextMsgId(t *testing.T) { function TestFileMessageStore_GenerateNextMsgIdMultipleNodes (line 38) | func TestFileMessageStore_GenerateNextMsgIdMultipleNodes(t *testing.T) { function Test_MessagePartition_loadFiles (line 74) | func Test_MessagePartition_loadFiles(t *testing.T) { function Test_MessagePartition_correctIdAfterRestart (line 121) | func Test_MessagePartition_correctIdAfterRestart(t *testing.T) { function Benchmark_Storing_HelloWorld_Messages (line 139) | func Benchmark_Storing_HelloWorld_Messages(b *testing.B) { function Benchmark_Storing_1Kb_Messages (line 153) | func Benchmark_Storing_1Kb_Messages(b *testing.B) { function Benchmark_Storing_1MB_Messages (line 172) | func Benchmark_Storing_1MB_Messages(b *testing.B) { function Test_calculateFetchList (line 191) | func Test_calculateFetchList(t *testing.T) { function matchSortedList (line 330) | func matchSortedList(t *testing.T, expected, actual indexList) bool { function Test_Partition_Fetch (line 349) | func Test_Partition_Fetch(t *testing.T) { function TestFilenameGeneration (line 479) | func TestFilenameGeneration(t *testing.T) { FILE: server/store/filestore/message_store.go type FileMessageStore (line 20) | type FileMessageStore struct method MaxMessageID (line 35) | func (fms *FileMessageStore) MaxMessageID(partition string) (uint64, e... method Stop (line 45) | func (fms *FileMessageStore) Stop() error { method GenerateNextMsgID (line 66) | func (fms *FileMessageStore) GenerateNextMsgID(partitionName string, n... method StoreMessage (line 75) | func (fms *FileMessageStore) StoreMessage(message *protocol.Message, n... method Store (line 120) | func (fms *FileMessageStore) Store(partition string, msgID uint64, msg... method Fetch (line 130) | func (fms *FileMessageStore) Fetch(req *store.FetchRequest) { method DoInTx (line 140) | func (fms *FileMessageStore) DoInTx(partition string, fnToExecute func... method Partitions (line 151) | func (fms *FileMessageStore) Partitions() (partitions []store.MessageP... method Partition (line 171) | func (fms *FileMessageStore) Partition(partition string) (store.Messag... method Check (line 201) | func (fms *FileMessageStore) Check() error { function New (line 27) | func New(basedir string) *FileMessageStore { function extractPartitionName (line 227) | func extractPartitionName(p string) string { FILE: server/store/filestore/message_store_test.go function Test_Fetch (line 14) | func Test_Fetch(t *testing.T) { function Test_MessageStore_Close (line 78) | func Test_MessageStore_Close(t *testing.T) { function Test_MaxMessageId (line 95) | func Test_MaxMessageId(t *testing.T) { function Test_MaxMessageIdError (line 111) | func Test_MaxMessageIdError(t *testing.T) { function Test_MessagePartitionReturningError (line 119) | func Test_MessagePartitionReturningError(t *testing.T) { function Test_FetchWithError (line 132) | func Test_FetchWithError(t *testing.T) { function Test_StoreWithError (line 143) | func Test_StoreWithError(t *testing.T) { function Test_DoInTx (line 151) | func Test_DoInTx(t *testing.T) { function Test_DoInTxError (line 163) | func Test_DoInTxError(t *testing.T) { function Test_Check (line 171) | func Test_Check(t *testing.T) { FILE: server/store/store.go type MessageStore (line 6) | type MessageStore interface type MessagePartition (line 41) | type MessagePartition interface FILE: server/utils_test.go type testClusterNodeConfig (line 26) | type testClusterNodeConfig struct method parseConfig (line 36) | func (tnc *testClusterNodeConfig) parseConfig() error { type testClusterNode (line 84) | type testClusterNode struct method client (line 125) | func (tcn *testClusterNode) client(userID string, bufferSize int, auto... method Subscribe (line 133) | func (tcn *testClusterNode) Subscribe(topic, id string) { method Unsubscribe (line 137) | func (tcn *testClusterNode) Unsubscribe(topic, id string) { method cleanup (line 141) | func (tcn *testClusterNode) cleanup(removeDir bool) { function newTestClusterNode (line 91) | func newTestClusterNode(t *testing.T, nodeConfig testClusterNodeConfig) ... type TestFCM (line 152) | type TestFCM struct method setupRoundTripper (line 161) | func (tfcm *TestFCM) setupRoundTripper(timeout time.Duration, bufferSi... method subscribe (line 171) | func (tfcm *TestFCM) subscribe(addr, topic, id string) { method unsubscribe (line 188) | func (tfcm *TestFCM) unsubscribe(addr, topic, id string) { method wait (line 213) | func (tfcm *TestFCM) wait(count int) { method receive (line 219) | func (tfcm *TestFCM) receive() error { method checkReceived (line 237) | func (tfcm *TestFCM) checkReceived(expected int) { method reset (line 244) | func (tfcm *TestFCM) reset() { method cleanup (line 250) | func (tfcm *TestFCM) cleanup() { FILE: server/webserver/web_server.go type WebServer (line 11) | type WebServer struct method Start (line 27) | func (ws *WebServer) Start() (err error) { method Stop (line 47) | func (ws *WebServer) Stop() (err error) { method Handle (line 59) | func (ws *WebServer) Handle(prefix string, handler http.Handler) { method GetAddr (line 65) | func (ws *WebServer) GetAddr() string { function New (line 19) | func New(addr string) *WebServer { type tcpKeepAliveListener (line 77) | type tcpKeepAliveListener struct method Accept (line 81) | func (ln tcpKeepAliveListener) Accept() (c net.Conn, err error) { FILE: server/webserver/web_server_test.go function TestStartAndStopWebServer (line 12) | func TestStartAndStopWebServer(t *testing.T) { FILE: server/websocket/mocks_auth_gen_test.go type MockAccessManager (line 13) | type MockAccessManager struct method EXPECT (line 29) | func (_m *MockAccessManager) EXPECT() *_MockAccessManagerRecorder { method IsAllowed (line 33) | func (_m *MockAccessManager) IsAllowed(_param0 auth.AccessType, _param... type _MockAccessManagerRecorder (line 19) | type _MockAccessManagerRecorder struct method IsAllowed (line 39) | func (_mr *_MockAccessManagerRecorder) IsAllowed(arg0, arg1, arg2 inte... function NewMockAccessManager (line 23) | func NewMockAccessManager(ctrl *gomock.Controller) *MockAccessManager { FILE: server/websocket/mocks_router_gen_test.go type MockRouter (line 17) | type MockRouter struct method EXPECT (line 33) | func (_m *MockRouter) EXPECT() *_MockRouterRecorder { method AccessManager (line 37) | func (_m *MockRouter) AccessManager() (auth.AccessManager, error) { method Cluster (line 48) | func (_m *MockRouter) Cluster() *cluster.Cluster { method Done (line 58) | func (_m *MockRouter) Done() <-chan bool { method Fetch (line 68) | func (_m *MockRouter) Fetch(_param0 *store.FetchRequest) error { method GetSubscribers (line 78) | func (_m *MockRouter) GetSubscribers(_param0 string) ([]byte, error) { method HandleMessage (line 89) | func (_m *MockRouter) HandleMessage(_param0 *protocol.Message) error { method KVStore (line 99) | func (_m *MockRouter) KVStore() (kvstore.KVStore, error) { method MessageStore (line 110) | func (_m *MockRouter) MessageStore() (store.MessageStore, error) { method Subscribe (line 121) | func (_m *MockRouter) Subscribe(_param0 *router.Route) (*router.Route,... method Unsubscribe (line 132) | func (_m *MockRouter) Unsubscribe(_param0 *router.Route) { type _MockRouterRecorder (line 23) | type _MockRouterRecorder struct method AccessManager (line 44) | func (_mr *_MockRouterRecorder) AccessManager() *gomock.Call { method Cluster (line 54) | func (_mr *_MockRouterRecorder) Cluster() *gomock.Call { method Done (line 64) | func (_mr *_MockRouterRecorder) Done() *gomock.Call { method Fetch (line 74) | func (_mr *_MockRouterRecorder) Fetch(arg0 interface{}) *gomock.Call { method GetSubscribers (line 85) | func (_mr *_MockRouterRecorder) GetSubscribers(arg0 interface{}) *gomo... method HandleMessage (line 95) | func (_mr *_MockRouterRecorder) HandleMessage(arg0 interface{}) *gomoc... method KVStore (line 106) | func (_mr *_MockRouterRecorder) KVStore() *gomock.Call { method MessageStore (line 117) | func (_mr *_MockRouterRecorder) MessageStore() *gomock.Call { method Subscribe (line 128) | func (_mr *_MockRouterRecorder) Subscribe(arg0 interface{}) *gomock.Ca... method Unsubscribe (line 136) | func (_mr *_MockRouterRecorder) Unsubscribe(arg0 interface{}) *gomock.... function NewMockRouter (line 27) | func NewMockRouter(ctrl *gomock.Controller) *MockRouter { FILE: server/websocket/mocks_store_gen_test.go type MockMessageStore (line 13) | type MockMessageStore struct method EXPECT (line 29) | func (_m *MockMessageStore) EXPECT() *_MockMessageStoreRecorder { method DoInTx (line 33) | func (_m *MockMessageStore) DoInTx(_param0 string, _param1 func(uint64... method Fetch (line 43) | func (_m *MockMessageStore) Fetch(_param0 *store.FetchRequest) { method GenerateNextMsgID (line 51) | func (_m *MockMessageStore) GenerateNextMsgID(_param0 string, _param1 ... method MaxMessageID (line 63) | func (_m *MockMessageStore) MaxMessageID(_param0 string) (uint64, erro... method Partition (line 74) | func (_m *MockMessageStore) Partition(_param0 string) (store.MessagePa... method Partitions (line 85) | func (_m *MockMessageStore) Partitions() ([]store.MessagePartition, er... method Store (line 96) | func (_m *MockMessageStore) Store(_param0 string, _param1 uint64, _par... method StoreMessage (line 106) | func (_m *MockMessageStore) StoreMessage(_param0 *protocol.Message, _p... type _MockMessageStoreRecorder (line 19) | type _MockMessageStoreRecorder struct method DoInTx (line 39) | func (_mr *_MockMessageStoreRecorder) DoInTx(arg0, arg1 interface{}) *... method Fetch (line 47) | func (_mr *_MockMessageStoreRecorder) Fetch(arg0 interface{}) *gomock.... method GenerateNextMsgID (line 59) | func (_mr *_MockMessageStoreRecorder) GenerateNextMsgID(arg0, arg1 int... method MaxMessageID (line 70) | func (_mr *_MockMessageStoreRecorder) MaxMessageID(arg0 interface{}) *... method Partition (line 81) | func (_mr *_MockMessageStoreRecorder) Partition(arg0 interface{}) *gom... method Partitions (line 92) | func (_mr *_MockMessageStoreRecorder) Partitions() *gomock.Call { method Store (line 102) | func (_mr *_MockMessageStoreRecorder) Store(arg0, arg1, arg2 interface... method StoreMessage (line 113) | func (_mr *_MockMessageStoreRecorder) StoreMessage(arg0, arg1 interfac... function NewMockMessageStore (line 23) | func NewMockMessageStore(ctrl *gomock.Controller) *MockMessageStore { FILE: server/websocket/mocks_websocket_gen_test.go type MockWSConnection (line 11) | type MockWSConnection struct method EXPECT (line 27) | func (_m *MockWSConnection) EXPECT() *_MockWSConnectionRecorder { method Close (line 31) | func (_m *MockWSConnection) Close() { method Receive (line 39) | func (_m *MockWSConnection) Receive(_param0 *[]byte) error { method Send (line 49) | func (_m *MockWSConnection) Send(_param0 []byte) error { type _MockWSConnectionRecorder (line 17) | type _MockWSConnectionRecorder struct method Close (line 35) | func (_mr *_MockWSConnectionRecorder) Close() *gomock.Call { method Receive (line 45) | func (_mr *_MockWSConnectionRecorder) Receive(arg0 interface{}) *gomoc... method Send (line 55) | func (_mr *_MockWSConnectionRecorder) Send(arg0 interface{}) *gomock.C... function NewMockWSConnection (line 21) | func NewMockWSConnection(ctrl *gomock.Controller) *MockWSConnection { FILE: server/websocket/receiver.go type Receiver (line 21) | type Receiver struct method Start (line 89) | func (rec *Receiver) Start() error { method subscriptionLoop (line 99) | func (rec *Receiver) subscriptionLoop() { method subscribeIfNoUnreadMessagesAvailable (line 139) | func (rec *Receiver) subscribeIfNoUnreadMessagesAvailable(maxMessageID... method subscribe (line 147) | func (rec *Receiver) subscribe() { method receiveFromSubscription (line 164) | func (rec *Receiver) receiveFromSubscription() { method fetchOnlyLoop (line 199) | func (rec *Receiver) fetchOnlyLoop() { method fetch (line 207) | func (rec *Receiver) fetch() error { method Stop (line 266) | func (rec *Receiver) Stop() error { method sendError (line 271) | func (rec *Receiver) sendError(name string, argPattern string, params ... method sendOK (line 280) | func (rec *Receiver) sendOK(name string, argPattern string, params ...... function NewReceiverFromCmd (line 40) | func NewReceiverFromCmd( FILE: server/websocket/receiver_test.go function Test_Receiver_error_handling_on_create (line 18) | func Test_Receiver_error_handling_on_create(t *testing.T) { function Test_Receiver_Fetch_Subscribe_Fetch_Subscribe (line 32) | func Test_Receiver_Fetch_Subscribe_Fetch_Subscribe(t *testing.T) { function Test_Receiver_Fetch_Returns_Correct_Messages (line 155) | func Test_Receiver_Fetch_Returns_Correct_Messages(t *testing.T) { function Test_Receiver_Fetch_Produces_Correct_Fetch_Requests (line 192) | func Test_Receiver_Fetch_Produces_Correct_Fetch_Requests(t *testing.T) { function Test_Receiver_Fetch_Sends_error_on_failure (line 252) | func Test_Receiver_Fetch_Sends_error_on_failure(t *testing.T) { function Test_Receiver_Fetch_Sends_error_on_failure_in_MaxMessageId (line 276) | func Test_Receiver_Fetch_Sends_error_on_failure_in_MaxMessageId(t *testi... function aMockedReceiver (line 294) | func aMockedReceiver(arg string) (*Receiver, chan []byte, *MockRouter, *... function expectMessages (line 307) | func expectMessages(a *assert.Assertions, msgChannel chan []byte, messag... FILE: server/websocket/websocket_connector.go type WSHandler (line 23) | type WSHandler struct method GetPrefix (line 44) | func (handler *WSHandler) GetPrefix() string { method ServeHTTP (line 50) | func (handler *WSHandler) ServeHTTP(w http.ResponseWriter, r *http.Req... function NewWSHandler (line 30) | func NewWSHandler(router router.Router, prefix string) (*WSHandler, erro... type WSConnection (line 63) | type WSConnection interface type wsconn (line 71) | type wsconn struct method Close (line 76) | func (conn *wsconn) Close() { method Send (line 81) | func (conn *wsconn) Send(bytes []byte) error { method Receive (line 86) | func (conn *wsconn) Receive(bytes *[]byte) (err error) { type WebSocket (line 92) | type WebSocket struct method Start (line 115) | func (ws *WebSocket) Start() error { method sendLoop (line 122) | func (ws *WebSocket) sendLoop() { method checkAccess (line 140) | func (ws *WebSocket) checkAccess(raw []byte) bool { method receiveLoop (line 160) | func (ws *WebSocket) receiveLoop() { method sendConnectionMessage (line 193) | func (ws *WebSocket) sendConnectionMessage() { method handleReceiveCmd (line 202) | func (ws *WebSocket) handleReceiveCmd(cmd *protocol.Cmd) { method handleCancelCmd (line 219) | func (ws *WebSocket) handleCancelCmd(cmd *protocol.Cmd) { method handleSendCmd (line 232) | func (ws *WebSocket) handleSendCmd(cmd *protocol.Cmd) { method cleanAndClose (line 256) | func (ws *WebSocket) cleanAndClose() { method sendError (line 270) | func (ws *WebSocket) sendError(name string, argPattern string, params ... method sendOK (line 279) | func (ws *WebSocket) sendOK(name string, argPattern string, params ...... function NewWebSocket (line 102) | func NewWebSocket(handler *WSHandler, wsConn WSConnection, userID string... function getPathFromRawMessage (line 155) | func getPathFromRawMessage(raw []byte) protocol.Path { function extractUserID (line 292) | func extractUserID(uri string) string { FILE: server/websocket/websocket_connector_test.go function Test_WebSocket_SubscribeAndUnsubscribe (line 26) | func Test_WebSocket_SubscribeAndUnsubscribe(t *testing.T) { function Test_SendMessage (line 64) | func Test_SendMessage(t *testing.T) { function Test_AnIncomingMessageIsDelivered (line 77) | func Test_AnIncomingMessageIsDelivered(t *testing.T) { function Test_AnIncomingMessageIsNotAllowed (line 91) | func Test_AnIncomingMessageIsNotAllowed(t *testing.T) { function Test_BadCommands (line 124) | func Test_BadCommands(t *testing.T) { function TestExtractUserId (line 156) | func TestExtractUserId(t *testing.T) { function testWSHandler (line 162) | func testWSHandler( function runNewWebSocket (line 173) | func runNewWebSocket( function createDefaultMocks (line 196) | func createDefaultMocks(inputMessages []string) ( type routeMatcher (line 221) | type routeMatcher struct method Matches (line 225) | func (n routeMatcher) Matches(x interface{}) bool { method String (line 229) | func (n routeMatcher) String() string { type messageMatcher (line 234) | type messageMatcher struct method Matches (line 241) | func (n messageMatcher) Matches(x interface{}) bool { method String (line 248) | func (n messageMatcher) String() string { type connectedNotificationMatcher (line 253) | type connectedNotificationMatcher struct method Matches (line 256) | func (notify connectedNotificationMatcher) Matches(x interface{}) bool { method String (line 260) | func (notify connectedNotificationMatcher) String() string { FILE: testutil/testutil.go function init (line 21) | func init() { function NewMockCtrl (line 33) | func NewMockCtrl(t *testing.T) (*gomock.Controller, func()) { function NewMockBenchmarkCtrl (line 38) | func NewMockBenchmarkCtrl(b *testing.B) (*gomock.Controller, func()) { function EnableDebugForMethod (line 46) | func EnableDebugForMethod() func() { function EnableInfoForMethod (line 55) | func EnableInfoForMethod() func() { function ExpectDone (line 63) | func ExpectDone(a *assert.Assertions, doneChannel chan bool) { function ExpectPanic (line 73) | func ExpectPanic(t *testing.T) { function ResetDefaultRegistryHealthCheck (line 80) | func ResetDefaultRegistryHealthCheck() { function SkipIfShort (line 85) | func SkipIfShort(t *testing.T) { function SkipIfDisabled (line 92) | func SkipIfDisabled(t *testing.T) { function PprofDebug (line 98) | func PprofDebug() {