Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/RocketChat/Rocket.Chat.Go.SDK
/ functions
Functions
140 in github.com/RocketChat/Rocket.Chat.Go.SDK
⨍
Functions
140
◇
Types & classes
71
↓ 28 callers
Method
Get
Get call Get
rest/client.go:99
↓ 28 callers
Function
stringOrZero
(i interface{})
realtime/messages.go:261
↓ 19 callers
Function
getDefaultClient
(t *testing.T)
rest/client_test.go:20
↓ 14 callers
Method
Post
Post call as JSON
rest/client.go:104
↓ 8 callers
Function
GetRandomString
()
common_testing/testing.go:15
↓ 8 callers
Method
PostMessage
PostMessage send a message to a channel. The channel or roomId has to be not nil. The message will be json encode. https://rocket.chat/docs/developer
rest/messages.go:42
↓ 4 callers
Function
GetRandomEmail
()
common_testing/testing.go:25
↓ 4 callers
Function
findMessage
(messages []models.Message, user string, msg string)
rest/client_test.go:46
↓ 3 callers
Method
doRequest
(method, api string, params url.Values, body io.Reader, response Response)
rest/client.go:113
↓ 3 callers
Function
getAuthenticatedClient
(t *testing.T, name, email, password string)
rest/client_test.go:31
↓ 3 callers
Function
getMessageFromDocument
(arg *gabs.Container)
realtime/messages.go:238
↓ 2 callers
Method
DeleteMessage
DeleteMessage deletes a specific message. https://developer.rocket.chat/reference/api/rest-api/endpoints/core-endpoints/chat-endpoints/delete
rest/messages.go:131
↓ 2 callers
Method
GetChannelMembers
GetChannelMembers lists all channel users. https://developer.rocket.chat/reference/api/rest-api/endpoints/core-endpoints/channels-endpoints/members
rest/channels.go:161
↓ 2 callers
Method
GetMessages
Get messages from a channel. The channel id has to be not nil. Optionally a count can be specified to limit the size of the returned messages. https:
rest/messages.go:73
↓ 2 callers
Function
NewClient
NewClient creates a new instance and connects to the websocket.
realtime/client.go:21
↓ 2 callers
Method
OK
()
rest/client.go:21
↓ 2 callers
Method
PostForm
PostForm call as Form Data
rest/client.go:109
↓ 2 callers
Method
RegisterUser
RegisterUser a new user on the server. This function does not need a logged in user. The registered user gets logged in to set its username.
realtime/users.go:32
↓ 2 callers
Method
Sub
Subscribes to stream-notify-logged Returns a buffered channel https://rocket.chat/docs/developer-guides/realtime-api/subscriptions/stream-room-messag
realtime/subscriptions.go:14
↓ 2 callers
Method
SubscribeToMessageStream
SubscribeToMessageStream Subscribes to the message updates of a channel Returns a buffered channel https://rocket.chat/docs/developer-guides/realtime
realtime/messages.go:186
↓ 2 callers
Method
UserInfo
UserInfo retrieves information about a user. The result is only limited to what the callee has access to view. https://developer.rocket.chat/referenc
rest/users.go:191
↓ 2 callers
Function
getLoggedInClient
(t *testing.T)
realtime/client_test.go:16
↓ 1 callers
Method
Close
Close closes the ddp session
realtime/client.go:99
↓ 1 callers
Method
CreateChannel
CreateChannel creates a new public channel, optionally including specified users. The channel creator is always included. https://developer.rocket.ch
rest/channels.go:106
↓ 1 callers
Method
ExecuteSlashCommand
ExecuteSlashCommand Execute a slash command in a room in the Rocket.Chat server command and roomId are required params is optional it depends upon com
rest/slashCommand.go:39
↓ 1 callers
Method
GetChannelInfo
GetChannelInfo get information about a channel. That might be useful to update the usernames. https://rocket.chat/docs/developer-guides/rest-api/chan
rest/channels.go:86
↓ 1 callers
Method
GetDirectory
GetDirectory a method, that searches by users or channels on all users and channels available on server. It supports the Offset, Count, and Sort Query
rest/information.go:36
↓ 1 callers
Method
GetJoinedChannels
GetJoinedChannels returns all channels that the user has joined. https://rocket.chat/docs/developer-guides/rest-api/channels/list-joined
rest/channels.go:66
↓ 1 callers
Method
GetMentionedMessages
GetMentionedMessages retrieves mentioned messages. It supports the Offset and Count Query Parameters. https://developer.rocket.chat/reference/api/res
rest/messages.go:95
↓ 1 callers
Method
GetMessage
GetMessage retrieves a single chat message by the provided id. Callee must have permission to access the room where the message resides. https://deve
rest/messages.go:58
↓ 1 callers
Method
GetPublicChannels
GetPublicChannels returns all channels that can be seen by the logged in user. https://rocket.chat/docs/developer-guides/rest-api/channels/list
rest/channels.go:54
↓ 1 callers
Method
GetServerInfo
GetServerInfo a simple method, requires no authentication, that returns information about the server including version information. https://rocket.ch
rest/information.go:18
↓ 1 callers
Method
GetSlashCommandsList
GetSlashCommandsList Slash Commands available in the Rocket.Chat server. It supports the offset, count and Sort Query Parameters along with just the F
rest/slashCommand.go:26
↓ 1 callers
Method
GetSpotlight
GetSpotlight searches for users or rooms that are visible to the user. WARNING: It will only return rooms that user didn’t join yet. https://rocket.c
rest/information.go:54
↓ 1 callers
Method
GetStatistics
GetStatistics Statistics about the Rocket.Chat server. https://rocket.chat/docs/developer-guides/rest-api/miscellaneous/statistics
rest/information.go:72
↓ 1 callers
Method
GetStatisticsList
GetStatisticsList Selectable statistics about the Rocket.Chat server. It supports the Offset, Count and Sort Query Parameters along with just the Fiel
rest/information.go:91
↓ 1 callers
Method
InviteChannel
InviteChannel adds users to the channel. https://developer.rocket.chat/reference/api/rest-api/endpoints/core-endpoints/channels-endpoints/invite
rest/channels.go:125
↓ 1 callers
Method
JoinChannel
JoinChannel joins yourself to the channel. joinCode isn't needed if the user has the permission "join-without-join-code" An empty string should be pas
rest/channels.go:146
↓ 1 callers
Method
LeaveChannel
LeaveChannel leaves a channel. The id of the channel has to be not nil. https://rocket.chat/docs/developer-guides/rest-api/channels/leave
rest/channels.go:78
↓ 1 callers
Method
Login
Login a user. token shouldn't be nil, otherwise the password and the email are not allowed to be nil. https://rocket.chat/docs/developer-guides/realt
realtime/users.go:54
↓ 1 callers
Method
Login
Login a user. The Email and the Password are mandatory. The auth token of the user is stored in the Client instance. https://rocket.chat/docs/develop
rest/users.go:86
↓ 1 callers
Method
Logout
Logout a user. The function returns the response message of the server. https://rocket.chat/docs/developer-guides/rest-api/authentication/logout
rest/users.go:124
↓ 1 callers
Method
NewMessage
NewMessage creates basic message with an ID, a RoomID, and a Msg Takes channel and text
realtime/messages.go:24
↓ 1 callers
Method
SearchMessages
SearchMessages searches for messages in a channel by id and text message https://developer.rocket.chat/reference/api/rest-api/endpoints/core-endpoint
rest/messages.go:146
↓ 1 callers
Method
Send
Sends a message to a channel. The name of the channel has to be not nil. The message will be html escaped. https://rocket.chat/docs/developer-guides/
rest/messages.go:33
↓ 1 callers
Method
SendMessage
SendMessage sends message to channel takes message https://rocket.chat/docs/developer-guides/realtime-api/method-calls/send-message
realtime/messages.go:67
↓ 1 callers
Method
UpdateMessage
UpdateMessage updates a specific message. https://developer.rocket.chat/reference/api/rest-api/endpoints/core-endpoints/chat-endpoints/message-update
rest/messages.go:116
↓ 1 callers
Method
UpdatePermissions
UpdatePermissions updates permissions https://rocket.chat/docs/developer-guides/rest-api/permissions/update/
rest/permissions.go:21
↓ 1 callers
Function
assertMessage
(t *testing.T, message models.Message)
realtime/messages_test.go:44
↓ 1 callers
Function
getMessageFromData
(data interface{})
realtime/messages.go:232
↓ 1 callers
Function
getMessagesFromUpdateEvent
(update ddp.Update)
realtime/messages.go:214
↓ 1 callers
Method
getUrl
()
rest/client.go:91
↓ 1 callers
Function
getUserFromData
(data interface{})
realtime/users.go:84
↓ 1 callers
Method
newRandomId
Some of the rocketchat objects need unique IDs specified by the client
realtime/client.go:104
↓ 1 callers
Function
sendAndAssertNoError
(t *testing.T, c *Client, message *models.Message)
realtime/messages_test.go:52
Method
AddStatusListener
(listener func(int))
realtime/client.go:70
Method
ArchiveChannel
ArchiveChannel archives the channel Takes roomId https://rocket.chat/docs/developer-guides/realtime-api/method-calls/archive-rooms
realtime/channels.go:168
Method
ChannelHistory
Get messages from a channel. The channel id has to be not nil. Optionally a count can be specified to limit the size of the returned messages. https:
rest/channels.go:181
Method
CollectionUpdate
(collection, operation, id string, doc ddp.Update)
realtime/subscriptions.go:38
Method
CollectionUpdate
(collection, operation, id string, doc ddp.Update)
realtime/messages.go:281
Method
ConnectionAway
ConnectionAway sets connection status to away
realtime/client.go:79
Method
ConnectionOnline
ConnectionOnline sets connection status to online
realtime/client.go:89
Method
CreateChannel
CreateChannel creates a channel Takes name and users array https://rocket.chat/docs/developer-guides/realtime-api/method-calls/create-channels
realtime/channels.go:116
Method
CreateDirectMessage
Creates a DirectMessage https://developer.rocket.chat/api/rest-api/methods/im/create
rest/dm.go:29
Method
CreateGroup
CreateGroup creates a private group Takes group name and array of users https://rocket.chat/docs/developer-guides/realtime-api/method-calls/create-pr
realtime/channels.go:129
Method
CreateToken
CreateToken creates an access token for a user https://rocket.chat/docs/developer-guides/rest-api/users/createtoken/
rest/users.go:110
Method
CreateUser
CreateUser being logged in with a user that has permission to do so. https://rocket.chat/docs/developer-guides/rest-api/users/create
rest/users.go:141
Method
DDP
()
realtime/client.go:66
Method
DMHistory
Get messages from a dm. The channel id has to be not nil. Optionally a count can be specified to limit the size of the returned messages. https://roc
rest/dm.go:46
Method
DeleteChannel
DeleteChannel deletes the channel Takes roomId https://rocket.chat/docs/developer-guides/realtime-api/method-calls/delete-rooms
realtime/channels.go:194
Method
DeleteMessage
DeleteMessage deletes a message takes a message object https://rocket.chat/docs/developer-guides/realtime-api/method-calls/delete-message
realtime/messages.go:94
Method
EditMessage
EditMessage edits a message takes message object https://rocket.chat/docs/developer-guides/realtime-api/method-calls/update-message
realtime/messages.go:81
Method
GetChannelId
(name string)
realtime/channels.go:10
Method
GetChannelRoles
GetChannelRoles returns room roles https://rocket.chat/docs/developer-guides/realtime-api/method-calls/get-room-roles
realtime/channels.go:103
Method
GetChannelSubscriptions
GetChannelSubscriptions gets users channel subscriptions Optionally includes date to get all since last check or 0 to get all https://rocket.chat/doc
realtime/channels.go:55
Method
GetChannelsIn
GetChannelsIn returns list of channels Optionally includes date to get all since last check or 0 to get all https://rocket.chat/docs/developer-guides
realtime/channels.go:25
Method
GetGroupInfo
GetGroupInfo get information about a group. That might be useful to update the usernames. https://rocket.chat/docs/developer-guides/rest-api/groups/i
rest/groups.go:35
Method
GetGroupMembers
GetChannelMembers lists all channel users. https://developer.rocket.chat/reference/api/rest-api/endpoints/core-endpoints/channels-endpoints/members
rest/group.go:45
Method
GetPermissions
GetPermissions gets permissions https://rocket.chat/docs/developer-guides/realtime-api/method-calls/get-permissions
realtime/permissions.go:13
Method
GetPrivateGroups
GetPrivateGroups returns all channels that can be seen by the logged in user. https://rocket.chat/docs/developer-guides/rest-api/groups/list
rest/groups.go:23
Method
GetPublicSettings
GetPublicSettings gets public settings https://rocket.chat/docs/developer-guides/realtime-api/method-calls/get-public-settings
realtime/settings.go:13
Method
GetUserRoles
GetUserRoles gets current users roles https://rocket.chat/docs/developer-guides/realtime-api/method-calls/get-user-roles
realtime/permissions.go:43
Method
GetUserStatus
(username string)
rest/users.go:177
Method
GroupHistory
Get messages from a dm. The channel id has to be not nil. Optionally a count can be specified to limit the size of the returned messages. https://roc
rest/group.go:21
Method
JoinChannel
JoinChannel joins a channel Takes roomId https://rocket.chat/docs/developer-guides/realtime-api/method-calls/joining-channels
realtime/channels.go:142
Method
LeaveChannel
LeaveChannel leaves a channel Takes roomId https://rocket.chat/docs/developer-guides/realtime-api/method-calls/leaving-rooms
realtime/channels.go:155
Method
LoadHistory
LoadHistory loads history Takes roomID https://rocket.chat/docs/developer-guides/realtime-api/method-calls/load-history
realtime/messages.go:36
Function
NewClient
(serverUrl *url.URL, debug bool)
rest/client.go:75
Method
OK
()
rest/users.go:62
Method
OK
()
rest/client.go:50
Method
PinMessage
PinMessage pins a message takes a message object https://rocket.chat/docs/developer-guides/realtime-api/method-calls/pin-message
realtime/messages.go:158
Method
ReactToMessage
ReactToMessage adds a reaction to a message takes a message and emoji https://rocket.chat/docs/developer-guides/realtime-api/method-calls/set-reactio
realtime/messages.go:109
Method
Reconnect
()
realtime/client.go:74
Method
SearchUsersOrRooms
Searches for users or rooms that are visible to the user. WARNING: It will only return rooms that user didn't join yet. https://developer.rocket.chat
rest/search.go:19
Method
SetChannelDescription
SetChannelDescription sets channels description takes roomId and description https://rocket.chat/docs/developer-guides/realtime-api/method-calls/save
realtime/channels.go:259
Method
SetChannelJoinCode
SetChannelJoinCode sets channel join code takes roomId and joinCode https://rocket.chat/docs/developer-guides/realtime-api/method-calls/save-room-set
realtime/channels.go:233
Method
SetChannelReadOnly
SetChannelReadOnly sets channel as read only takes roomId and boolean https://rocket.chat/docs/developer-guides/realtime-api/method-calls/save-room-s
realtime/channels.go:246
Method
SetChannelTopic
SetChannelTopic sets channel topic takes roomId and topic https://rocket.chat/docs/developer-guides/realtime-api/method-calls/save-room-settings
realtime/channels.go:207
Method
SetChannelType
SetChannelType sets the channel type takes roomId and roomType https://rocket.chat/docs/developer-guides/realtime-api/method-calls/save-room-settings
realtime/channels.go:220
Method
SetPresence
SetPresence set user presence
realtime/users.go:96
next →
1–100 of 140, ranked by callers