Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ambelovsky/gosf
/ functions
Functions
65 in github.com/ambelovsky/gosf
⨍
Functions
65
◇
Types & classes
9
↓ 10 callers
Function
emit
(event string, args ...interface{})
hooks.go:107
↓ 10 callers
Function
on
(event string, callback func(...interface{}))
hooks.go:99
↓ 4 callers
Function
NewSuccessMessage
NewSuccessMessage generates a success message
message.go:29
↓ 2 callers
Method
Call
Call sends a request to the microservice
microservice.go:121
↓ 2 callers
Method
Connected
Connected tells whether or not this microservice's connection is still active and alive
microservice.go:45
↓ 2 callers
Method
Disconnect
Disconnect manually terminates the connection to the microservice
microservice.go:91
↓ 2 callers
Function
GetMicroservice
GetMicroservice retrieves a microservice reference from App.Microservices
microservice.go:182
↓ 2 callers
Method
getNextClient
()
microservice.go:108
↓ 1 callers
Method
Activate
(app *AppSettings)
plugin.go:5
↓ 1 callers
Function
ArrayContainsString
ArrayContainsString checks to see if a value exists in the array
utils-array.go:4
↓ 1 callers
Method
Connect
Connect manually connects or reconnects to the microservice
microservice.go:62
↓ 1 callers
Method
Deactivate
(app *AppSettings)
plugin.go:6
↓ 1 callers
Method
Go
Go sends a request to the microservice returning channels
microservice.go:140
↓ 1 callers
Method
Leave
Leave removes a user from a broadcast room
client.go:29
↓ 1 callers
Function
Listen
Listen creates a listener on an endpoint
request.go:25
↓ 1 callers
Method
Lob
Lob sends a request to the microservice that does not require a response
microservice.go:156
↓ 1 callers
Function
ReadGoMessage
ReadGoMessage reads from a microservice Go channel of type *GoMessage
microservice.go:162
↓ 1 callers
Function
RegisterMicroservice
RegisterMicroservice configures, automatically connects, and adds the microservice to App.Microservices
microservice.go:168
↓ 1 callers
Function
RegisterPlugin
RegisterPlugin is used by the plugin to register itself for later activation
plugin.go:14
↓ 1 callers
Function
Startup
Startup activates the framework and starts the server
main.go:27
↓ 1 callers
Method
configure
(host string, port int, secure bool)
microservice.go:35
↓ 1 callers
Method
respond
Respond sends a message back to the client
request.go:44
↓ 1 callers
Function
startConnectionHandlers
()
main.go:88
↓ 1 callers
Function
startHTTPServer
(config map[string]interface{}, secure bool, address string, port int, path string)
main.go:112
Method
Activate
Activate is an aspect-oriented modular plugin requirement
main_test.go:14
Function
Broadcast
Broadcast sends a message to connected clients joined to the same room
request.go:14
Method
Broadcast
Broadcast sends a message to connected clients joined to the same room with the exception of the "client"
client.go:56
Method
Deactivate
Deactivate is an aspect-oriented modular plugin requirement
main_test.go:17
Function
DeregisterMicroservice
DeregisterMicroservice disconnects and removes a microservice from App.Microservices
microservice.go:176
Method
Disconnect
Disconnect forces a client to be disconnected from the server
client.go:50
Function
GetConfig
GetConfig returns a configuration from App.Config
config.go:31
Method
Join
Join joins a user to a broadcast room
client.go:12
Method
LeaveAll
LeaveAll removes a user from all broadcast rooms they are currently joined to
client.go:41
Method
Listen
Listen registers and event handler for a microservice endpoint
microservice.go:102
Function
LoadConfig
LoadConfig loads a JSON configuration file into the global Config map
config.go:15
Function
MapToStruct
MapToStruct converts the given map[string]interface{} into a struct
encoder.go:16
Function
NewFailureMessage
NewFailureMessage generates a failure message
message.go:63
Function
OnAfterBroadcast
OnAfterBroadcast registers an event handler that fires after a global broadcast is sent to all clients
hooks.go:85
Function
OnAfterClientBroadcast
OnAfterClientBroadcast registers an event handler that fires after a client broadcast is sent to other clients
hooks.go:67
Function
OnAfterRequest
OnAfterRequest registers an event handler that fires after a request is processed by the controller
hooks.go:31
Function
OnAfterResponse
OnAfterResponse registers an event handler that fires after a response is processed by the controller
hooks.go:49
Function
OnBeforeBroadcast
OnBeforeBroadcast registers an event handler that fires before a global broadcast is sent to all clients
hooks.go:76
Function
OnBeforeClientBroadcast
OnBeforeClientBroadcast registers an event handler that fires before a client broadcast is sent to other clients
hooks.go:58
Function
OnBeforeRequest
OnBeforeRequest registers an event handler that fires before a request is processed by the controller
hooks.go:22
Function
OnBeforeResponse
OnBeforeResponse registers an event handler that fires before a response is processed by the controller
hooks.go:40
Function
OnConnect
OnConnect registers an event handler that fires when a client connects
hooks.go:4
Function
OnDisconnect
OnDisconnect registers an event handler that fires when a client disconnects
hooks.go:13
Function
Shutdown
Shutdown cleanly terminates the framework and its plugins
main.go:81
Function
StructToMap
StructToMap converts the given structure into a map[string]interface{}
encoder.go:9
Function
TestCallMicroserviceMessage
(t *testing.T)
main_test.go:78
Function
TestGoMicroserviceMessage
(t *testing.T)
main_test.go:115
Function
TestLobMicroserviceMessage
(t *testing.T)
main_test.go:158
Function
TestRegisterEndpoint
(t *testing.T)
main_test.go:34
Function
TestRegisterMicroservice
(t *testing.T)
main_test.go:62
Function
TestRegisterPlugin
(t *testing.T)
main_test.go:19
Function
TestStartServer
(t *testing.T)
main_test.go:46
Method
WithoutMeta
WithoutMeta removes meta information before returning a copy of the message
message.go:17
Function
endpointEcho
(client *Client, request *Request)
main_test.go:30
Function
init
()
plugin.go:11
Function
init
()
platform-support.go:11
Function
init
()
microservice.go:19
Function
init
()
hooks.go:95
Function
init
()
app.go:18
Function
init
()
config.go:10
Function
init
()
main.go:17