MCPcopy Create free account

hub / github.com/ambelovsky/gosf / functions

Functions65 in github.com/ambelovsky/gosf

↓ 10 callersFunctionemit
(event string, args ...interface{})
hooks.go:107
↓ 10 callersFunctionon
(event string, callback func(...interface{}))
hooks.go:99
↓ 4 callersFunctionNewSuccessMessage
NewSuccessMessage generates a success message
message.go:29
↓ 2 callersMethodCall
Call sends a request to the microservice
microservice.go:121
↓ 2 callersMethodConnected
Connected tells whether or not this microservice's connection is still active and alive
microservice.go:45
↓ 2 callersMethodDisconnect
Disconnect manually terminates the connection to the microservice
microservice.go:91
↓ 2 callersFunctionGetMicroservice
GetMicroservice retrieves a microservice reference from App.Microservices
microservice.go:182
↓ 2 callersMethodgetNextClient
()
microservice.go:108
↓ 1 callersMethodActivate
(app *AppSettings)
plugin.go:5
↓ 1 callersFunctionArrayContainsString
ArrayContainsString checks to see if a value exists in the array
utils-array.go:4
↓ 1 callersMethodConnect
Connect manually connects or reconnects to the microservice
microservice.go:62
↓ 1 callersMethodDeactivate
(app *AppSettings)
plugin.go:6
↓ 1 callersMethodGo
Go sends a request to the microservice returning channels
microservice.go:140
↓ 1 callersMethodLeave
Leave removes a user from a broadcast room
client.go:29
↓ 1 callersFunctionListen
Listen creates a listener on an endpoint
request.go:25
↓ 1 callersMethodLob
Lob sends a request to the microservice that does not require a response
microservice.go:156
↓ 1 callersFunctionReadGoMessage
ReadGoMessage reads from a microservice Go channel of type *GoMessage
microservice.go:162
↓ 1 callersFunctionRegisterMicroservice
RegisterMicroservice configures, automatically connects, and adds the microservice to App.Microservices
microservice.go:168
↓ 1 callersFunctionRegisterPlugin
RegisterPlugin is used by the plugin to register itself for later activation
plugin.go:14
↓ 1 callersFunctionStartup
Startup activates the framework and starts the server
main.go:27
↓ 1 callersMethodconfigure
(host string, port int, secure bool)
microservice.go:35
↓ 1 callersMethodrespond
Respond sends a message back to the client
request.go:44
↓ 1 callersFunctionstartConnectionHandlers
()
main.go:88
↓ 1 callersFunctionstartHTTPServer
(config map[string]interface{}, secure bool, address string, port int, path string)
main.go:112
MethodActivate
Activate is an aspect-oriented modular plugin requirement
main_test.go:14
FunctionBroadcast
Broadcast sends a message to connected clients joined to the same room
request.go:14
MethodBroadcast
Broadcast sends a message to connected clients joined to the same room with the exception of the "client"
client.go:56
MethodDeactivate
Deactivate is an aspect-oriented modular plugin requirement
main_test.go:17
FunctionDeregisterMicroservice
DeregisterMicroservice disconnects and removes a microservice from App.Microservices
microservice.go:176
MethodDisconnect
Disconnect forces a client to be disconnected from the server
client.go:50
FunctionGetConfig
GetConfig returns a configuration from App.Config
config.go:31
MethodJoin
Join joins a user to a broadcast room
client.go:12
MethodLeaveAll
LeaveAll removes a user from all broadcast rooms they are currently joined to
client.go:41
MethodListen
Listen registers and event handler for a microservice endpoint
microservice.go:102
FunctionLoadConfig
LoadConfig loads a JSON configuration file into the global Config map
config.go:15
FunctionMapToStruct
MapToStruct converts the given map[string]interface{} into a struct
encoder.go:16
FunctionNewFailureMessage
NewFailureMessage generates a failure message
message.go:63
FunctionOnAfterBroadcast
OnAfterBroadcast registers an event handler that fires after a global broadcast is sent to all clients
hooks.go:85
FunctionOnAfterClientBroadcast
OnAfterClientBroadcast registers an event handler that fires after a client broadcast is sent to other clients
hooks.go:67
FunctionOnAfterRequest
OnAfterRequest registers an event handler that fires after a request is processed by the controller
hooks.go:31
FunctionOnAfterResponse
OnAfterResponse registers an event handler that fires after a response is processed by the controller
hooks.go:49
FunctionOnBeforeBroadcast
OnBeforeBroadcast registers an event handler that fires before a global broadcast is sent to all clients
hooks.go:76
FunctionOnBeforeClientBroadcast
OnBeforeClientBroadcast registers an event handler that fires before a client broadcast is sent to other clients
hooks.go:58
FunctionOnBeforeRequest
OnBeforeRequest registers an event handler that fires before a request is processed by the controller
hooks.go:22
FunctionOnBeforeResponse
OnBeforeResponse registers an event handler that fires before a response is processed by the controller
hooks.go:40
FunctionOnConnect
OnConnect registers an event handler that fires when a client connects
hooks.go:4
FunctionOnDisconnect
OnDisconnect registers an event handler that fires when a client disconnects
hooks.go:13
FunctionShutdown
Shutdown cleanly terminates the framework and its plugins
main.go:81
FunctionStructToMap
StructToMap converts the given structure into a map[string]interface{}
encoder.go:9
FunctionTestCallMicroserviceMessage
(t *testing.T)
main_test.go:78
FunctionTestGoMicroserviceMessage
(t *testing.T)
main_test.go:115
FunctionTestLobMicroserviceMessage
(t *testing.T)
main_test.go:158
FunctionTestRegisterEndpoint
(t *testing.T)
main_test.go:34
FunctionTestRegisterMicroservice
(t *testing.T)
main_test.go:62
FunctionTestRegisterPlugin
(t *testing.T)
main_test.go:19
FunctionTestStartServer
(t *testing.T)
main_test.go:46
MethodWithoutMeta
WithoutMeta removes meta information before returning a copy of the message
message.go:17
FunctionendpointEcho
(client *Client, request *Request)
main_test.go:30
Functioninit
()
plugin.go:11
Functioninit
()
platform-support.go:11
Functioninit
()
microservice.go:19
Functioninit
()
hooks.go:95
Functioninit
()
app.go:18
Functioninit
()
config.go:10
Functioninit
()
main.go:17