ratz/src/chatservers/common/mocks/ChatServer.go

type ChatServer

// ActiveUsers provides a mock function with given fields: window
func (_m *ChatServer) ActiveUsers(window common.TimeWindow) []common.UserRecord {}

// ActiveUsersInVoice provides a mock function with given fields:
func (_m *ChatServer) ActiveUsersInVoice() []common.UserRecord {}

// ActivityInAllChannels provides a mock function with given fields: window
func (_m *ChatServer) ActivityInAllChannels(window common.TimeWindow) int {}

// ApplyFunctionToChannelMessages provides a mock function with given fields: channelID, count, f
func (_m *ChatServer) ApplyFunctionToChannelMessages(channelID string, count int, f func(common.Message)) error {}

// ChannelMembers provides a mock function with given fields: channelId
func (_m *ChatServer) ChannelMembers(channelId string) []common.UserRecord {}

// Channels provides a mock function with given fields:
func (_m *ChatServer) Channels() map[string]common.Channel {}

// Config provides a mock function with given fields:
func (_m *ChatServer) Config() config.ModuleConfigurations {}

// CreateThread provides a mock function with given fields: inchannel, title
func (_m *ChatServer) CreateThread(inchannel common.Channel, title string) common.Thread {}

// DebugChannel provides a mock function with given fields: text
func (_m *ChatServer) DebugChannel(text string) {}

// Delete provides a mock function with given fields: message
func (_m *ChatServer) Delete(message common.Message) {}

// DeleteAfter provides a mock function with given fields: message, expire
func (_m *ChatServer) DeleteAfter(message common.Message, expire time.Duration) {}

// EventCount provides a mock function with given fields: eventkey, window
func (_m *ChatServer) EventCount(eventkey string, window common.TimeWindow) int {}

// FetchChannelMessages provides a mock function with given fields: channelID, count
func (_m *ChatServer) FetchChannelMessages(channelID string, count int) []common.Message {}

// FetchMessage provides a mock function with given fields: channelid, messageid
func (_m *ChatServer) FetchMessage(channelid string, messageid string) common.Message {}

// FetchUser provides a mock function with given fields: id
func (_m *ChatServer) FetchUser(id common.UserId) common.UserRecord {}

// GrantRoleToUser provides a mock function with given fields: u, r
func (_m *ChatServer) GrantRoleToUser(u common.UserRecord, r common.Role) {}

// Latency provides a mock function with given fields:
func (_m *ChatServer) Latency() time.Duration {}

// LogDebug provides a mock function with given fields: message
func (_m *ChatServer) LogDebug(message string) {}

// LogError provides a mock function with given fields: message, err
func (_m *ChatServer) LogError(message string, err error) {}

// LogInfo provides a mock function with given fields: message
func (_m *ChatServer) LogInfo(message string) {}

// OpenChannelToUser provides a mock function with given fields: user
func (_m *ChatServer) OpenChannelToUser(user common.UserRecord) common.Channel {}

// PostInChannel provides a mock function with given fields: channelID, message
func (_m *ChatServer) PostInChannel(channelID string, message string) common.Message {}

// PostInChannelWithAttachment provides a mock function with given fields: channelID, message, attachment
func (_m *ChatServer) PostInChannelWithAttachment(channelID string, message string, attachment common.MessageAttachment) common.Message {}

// PostInChannelWithEmbed provides a mock function with given fields: channelID, message, embed
func (_m *ChatServer) PostInChannelWithEmbed(channelID string, message string, embed common.MessageEmbed) common.Message {}

// PostInChannelWithEmbeds provides a mock function with given fields: channelID, message, embeds
func (_m *ChatServer) PostInChannelWithEmbeds(channelID string, message string, embeds []common.MessageEmbed) common.Message {}

// PostInChannelWithImage provides a mock function with given fields: channelID, message, attachment
func (_m *ChatServer) PostInChannelWithImage(channelID string, message string, attachment common.MessageImage) common.Message {}

// PostInChannelWithThumbnail provides a mock function with given fields: channelID, message, thumbnail
func (_m *ChatServer) PostInChannelWithThumbnail(channelID string, message string, thumbnail images.RemoteImage) common.Message {}

// PurgeEvent provides a mock function with given fields: event
func (_m *ChatServer) PurgeEvent(event string) {}

// Ratz provides a mock function with given fields:
func (_m *ChatServer) Ratz() common.ChatBot {}

// RemoveRoleFromUser provides a mock function with given fields: u, r
func (_m *ChatServer) RemoveRoleFromUser(u common.UserRecord, r common.Role) {}

// Roles provides a mock function with given fields:
func (_m *ChatServer) Roles() common.RolesCollection {}

// ServerID provides a mock function with given fields:
func (_m *ChatServer) ServerID() string {}

// ServerName provides a mock function with given fields:
func (_m *ChatServer) ServerName() string {}

// TrackEvent provides a mock function with given fields: eventkey
func (_m *ChatServer) TrackEvent(eventkey string) {}

// UserActivityInAllChannels provides a mock function with given fields: _a0, _a1
func (_m *ChatServer) UserActivityInAllChannels(_a0 common.UserId, _a1 common.TimeWindow) int {}

// UserEnabledVideo provides a mock function with given fields: _a0
func (_m *ChatServer) UserEnabledVideo(_a0 common.UserId) (bool, bool) {}

// UserHasRole provides a mock function with given fields: user, role
func (_m *ChatServer) UserHasRole(user common.UserRecord, role common.Role) bool {}

// Users provides a mock function with given fields:
func (_m *ChatServer) Users() *common.UserCollection {}

// UsersActiveInChannel provides a mock function with given fields: channelID, window
func (_m *ChatServer) UsersActiveInChannel(channelID string, window common.TimeWindow) []common.UserRecord {}

// VoiceStatus provides a mock function with given fields:
func (_m *ChatServer) VoiceStatus() map[string]common.VoiceChannelTracker {}

// NewChatServer creates a new instance of ChatServer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
// The first argument is typically a *testing.T value.
func NewChatServer(t interface {}