mocks

package
v2.14.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 1, 2026 License: Apache-2.0 Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockClient

type MockClient struct {
	mock.Mock
}

MockClient is an autogenerated mock type for the Client type

func NewMockClient

func NewMockClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockClient

NewMockClient creates a new instance of MockClient. 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 (*MockClient) AddReaction

func (_mock *MockClient) AddReaction(reaction *model.Reaction) error

AddReaction provides a mock function for the type MockClient

func (*MockClient) CreatePost

func (_mock *MockClient) CreatePost(post *model.Post) error

CreatePost provides a mock function for the type MockClient

func (*MockClient) DM

func (_mock *MockClient) DM(senderID string, receiverID string, post *model.Post) error

DM provides a mock function for the type MockClient

func (*MockClient) EXPECT

func (_m *MockClient) EXPECT() *MockClient_Expecter

func (*MockClient) GetChannel

func (_mock *MockClient) GetChannel(channelID string) (*model.Channel, error)

GetChannel provides a mock function for the type MockClient

func (*MockClient) GetChannelByName

func (_mock *MockClient) GetChannelByName(teamID string, name string, includeDeleted bool) (*model.Channel, error)

GetChannelByName provides a mock function for the type MockClient

func (*MockClient) GetConfig

func (_mock *MockClient) GetConfig() *model.Config

GetConfig provides a mock function for the type MockClient

func (*MockClient) GetDirectChannel

func (_mock *MockClient) GetDirectChannel(userID1 string, userID2 string) (*model.Channel, error)

GetDirectChannel provides a mock function for the type MockClient

func (*MockClient) GetFile

func (_mock *MockClient) GetFile(fileID string) (io.ReadCloser, error)

GetFile provides a mock function for the type MockClient

func (*MockClient) GetFileInfo

func (_mock *MockClient) GetFileInfo(fileID string) (*model.FileInfo, error)

GetFileInfo provides a mock function for the type MockClient

func (*MockClient) GetPluginStatus

func (_mock *MockClient) GetPluginStatus(pluginID string) (*model.PluginStatus, error)

GetPluginStatus provides a mock function for the type MockClient

func (*MockClient) GetPost

func (_mock *MockClient) GetPost(postID string) (*model.Post, error)

GetPost provides a mock function for the type MockClient

func (*MockClient) GetPostThread

func (_mock *MockClient) GetPostThread(postID string) (*model.PostList, error)

GetPostThread provides a mock function for the type MockClient

func (*MockClient) GetPostsBefore

func (_mock *MockClient) GetPostsBefore(channelID string, postID string, page int, perPage int) (*model.PostList, error)

GetPostsBefore provides a mock function for the type MockClient

func (*MockClient) GetPostsSince

func (_mock *MockClient) GetPostsSince(channelID string, since int64) (*model.PostList, error)

GetPostsSince provides a mock function for the type MockClient

func (*MockClient) GetTeam

func (_mock *MockClient) GetTeam(teamID string) (*model.Team, error)

GetTeam provides a mock function for the type MockClient

func (*MockClient) GetUser

func (_mock *MockClient) GetUser(userID string) (*model.User, error)

GetUser provides a mock function for the type MockClient

func (*MockClient) GetUserByUsername

func (_mock *MockClient) GetUserByUsername(username string) (*model.User, error)

GetUserByUsername provides a mock function for the type MockClient

func (*MockClient) GetUserStatus

func (_mock *MockClient) GetUserStatus(userID string) (*model.Status, error)

GetUserStatus provides a mock function for the type MockClient

func (*MockClient) HasPermissionTo

func (_mock *MockClient) HasPermissionTo(userID string, permission *model.Permission) bool

HasPermissionTo provides a mock function for the type MockClient

func (*MockClient) HasPermissionToChannel

func (_mock *MockClient) HasPermissionToChannel(userID string, channelID string, permission *model.Permission) bool

HasPermissionToChannel provides a mock function for the type MockClient

func (*MockClient) HasPermissionToFileAction added in v2.5.4

func (_mock *MockClient) HasPermissionToFileAction(sessionID string, fileID string, action string) bool

HasPermissionToFileAction provides a mock function for the type MockClient

func (*MockClient) KVCompareAndSet

func (_mock *MockClient) KVCompareAndSet(key string, oldValue any, newValue any) (bool, error)

KVCompareAndSet provides a mock function for the type MockClient

func (*MockClient) KVCompareAndSetWithExpiry added in v2.6.0

func (_mock *MockClient) KVCompareAndSetWithExpiry(key string, oldValue any, newValue any, ttl time.Duration) (bool, error)

KVCompareAndSetWithExpiry provides a mock function for the type MockClient

func (*MockClient) KVDelete

func (_mock *MockClient) KVDelete(key string) error

KVDelete provides a mock function for the type MockClient

func (*MockClient) KVGet

func (_mock *MockClient) KVGet(key string, value any) error

KVGet provides a mock function for the type MockClient

func (*MockClient) KVSet

func (_mock *MockClient) KVSet(key string, value any) error

KVSet provides a mock function for the type MockClient

func (*MockClient) KVSetWithExpiry

func (_mock *MockClient) KVSetWithExpiry(key string, value any, ttl time.Duration) error

KVSetWithExpiry provides a mock function for the type MockClient

func (*MockClient) LogDebug

func (_mock *MockClient) LogDebug(msg string, keyValuePairs ...any)

LogDebug provides a mock function for the type MockClient

func (*MockClient) LogError

func (_mock *MockClient) LogError(msg string, keyValuePairs ...any)

LogError provides a mock function for the type MockClient

func (*MockClient) LogWarn

func (_mock *MockClient) LogWarn(msg string, keyValuePairs ...any)

LogWarn provides a mock function for the type MockClient

func (*MockClient) PluginHTTP

func (_mock *MockClient) PluginHTTP(req *http.Request) *http.Response

PluginHTTP provides a mock function for the type MockClient

func (*MockClient) PublishWebSocketEvent

func (_mock *MockClient) PublishWebSocketEvent(event string, payload map[string]any, broadcast *model.WebsocketBroadcast)

PublishWebSocketEvent provides a mock function for the type MockClient

func (*MockClient) SendEphemeralPost

func (_mock *MockClient) SendEphemeralPost(userID string, post *model.Post)

SendEphemeralPost provides a mock function for the type MockClient

func (*MockClient) UpdatePost

func (_mock *MockClient) UpdatePost(post *model.Post) error

UpdatePost provides a mock function for the type MockClient

func (*MockClient) UploadFile added in v2.6.0

func (_mock *MockClient) UploadFile(content io.Reader, fileName string, channelID string) (*model.FileInfo, error)

UploadFile provides a mock function for the type MockClient

type MockClient_AddReaction_Call

type MockClient_AddReaction_Call struct {
	*mock.Call
}

MockClient_AddReaction_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddReaction'

func (*MockClient_AddReaction_Call) Return

func (*MockClient_AddReaction_Call) Run

func (*MockClient_AddReaction_Call) RunAndReturn

func (_c *MockClient_AddReaction_Call) RunAndReturn(run func(reaction *model.Reaction) error) *MockClient_AddReaction_Call

type MockClient_CreatePost_Call

type MockClient_CreatePost_Call struct {
	*mock.Call
}

MockClient_CreatePost_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreatePost'

func (*MockClient_CreatePost_Call) Return

func (*MockClient_CreatePost_Call) Run

func (*MockClient_CreatePost_Call) RunAndReturn

func (_c *MockClient_CreatePost_Call) RunAndReturn(run func(post *model.Post) error) *MockClient_CreatePost_Call

type MockClient_DM_Call

type MockClient_DM_Call struct {
	*mock.Call
}

MockClient_DM_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DM'

func (*MockClient_DM_Call) Return

func (_c *MockClient_DM_Call) Return(err error) *MockClient_DM_Call

func (*MockClient_DM_Call) Run

func (_c *MockClient_DM_Call) Run(run func(senderID string, receiverID string, post *model.Post)) *MockClient_DM_Call

func (*MockClient_DM_Call) RunAndReturn

func (_c *MockClient_DM_Call) RunAndReturn(run func(senderID string, receiverID string, post *model.Post) error) *MockClient_DM_Call

type MockClient_Expecter

type MockClient_Expecter struct {
	// contains filtered or unexported fields
}

func (*MockClient_Expecter) AddReaction

func (_e *MockClient_Expecter) AddReaction(reaction any) *MockClient_AddReaction_Call

AddReaction is a helper method to define mock.On call

  • reaction *model.Reaction

func (*MockClient_Expecter) CreatePost

func (_e *MockClient_Expecter) CreatePost(post any) *MockClient_CreatePost_Call

CreatePost is a helper method to define mock.On call

  • post *model.Post

func (*MockClient_Expecter) DM

func (_e *MockClient_Expecter) DM(senderID any, receiverID any, post any) *MockClient_DM_Call

DM is a helper method to define mock.On call

  • senderID string
  • receiverID string
  • post *model.Post

func (*MockClient_Expecter) GetChannel

func (_e *MockClient_Expecter) GetChannel(channelID any) *MockClient_GetChannel_Call

GetChannel is a helper method to define mock.On call

  • channelID string

func (*MockClient_Expecter) GetChannelByName

func (_e *MockClient_Expecter) GetChannelByName(teamID any, name any, includeDeleted any) *MockClient_GetChannelByName_Call

GetChannelByName is a helper method to define mock.On call

  • teamID string
  • name string
  • includeDeleted bool

func (*MockClient_Expecter) GetConfig

GetConfig is a helper method to define mock.On call

func (*MockClient_Expecter) GetDirectChannel

func (_e *MockClient_Expecter) GetDirectChannel(userID1 any, userID2 any) *MockClient_GetDirectChannel_Call

GetDirectChannel is a helper method to define mock.On call

  • userID1 string
  • userID2 string

func (*MockClient_Expecter) GetFile

func (_e *MockClient_Expecter) GetFile(fileID any) *MockClient_GetFile_Call

GetFile is a helper method to define mock.On call

  • fileID string

func (*MockClient_Expecter) GetFileInfo

func (_e *MockClient_Expecter) GetFileInfo(fileID any) *MockClient_GetFileInfo_Call

GetFileInfo is a helper method to define mock.On call

  • fileID string

func (*MockClient_Expecter) GetPluginStatus

func (_e *MockClient_Expecter) GetPluginStatus(pluginID any) *MockClient_GetPluginStatus_Call

GetPluginStatus is a helper method to define mock.On call

  • pluginID string

func (*MockClient_Expecter) GetPost

func (_e *MockClient_Expecter) GetPost(postID any) *MockClient_GetPost_Call

GetPost is a helper method to define mock.On call

  • postID string

func (*MockClient_Expecter) GetPostThread

func (_e *MockClient_Expecter) GetPostThread(postID any) *MockClient_GetPostThread_Call

GetPostThread is a helper method to define mock.On call

  • postID string

func (*MockClient_Expecter) GetPostsBefore

func (_e *MockClient_Expecter) GetPostsBefore(channelID any, postID any, page any, perPage any) *MockClient_GetPostsBefore_Call

GetPostsBefore is a helper method to define mock.On call

  • channelID string
  • postID string
  • page int
  • perPage int

func (*MockClient_Expecter) GetPostsSince

func (_e *MockClient_Expecter) GetPostsSince(channelID any, since any) *MockClient_GetPostsSince_Call

GetPostsSince is a helper method to define mock.On call

  • channelID string
  • since int64

func (*MockClient_Expecter) GetTeam

func (_e *MockClient_Expecter) GetTeam(teamID any) *MockClient_GetTeam_Call

GetTeam is a helper method to define mock.On call

  • teamID string

func (*MockClient_Expecter) GetUser

func (_e *MockClient_Expecter) GetUser(userID any) *MockClient_GetUser_Call

GetUser is a helper method to define mock.On call

  • userID string

func (*MockClient_Expecter) GetUserByUsername

func (_e *MockClient_Expecter) GetUserByUsername(username any) *MockClient_GetUserByUsername_Call

GetUserByUsername is a helper method to define mock.On call

  • username string

func (*MockClient_Expecter) GetUserStatus

func (_e *MockClient_Expecter) GetUserStatus(userID any) *MockClient_GetUserStatus_Call

GetUserStatus is a helper method to define mock.On call

  • userID string

func (*MockClient_Expecter) HasPermissionTo

func (_e *MockClient_Expecter) HasPermissionTo(userID any, permission any) *MockClient_HasPermissionTo_Call

HasPermissionTo is a helper method to define mock.On call

  • userID string
  • permission *model.Permission

func (*MockClient_Expecter) HasPermissionToChannel

func (_e *MockClient_Expecter) HasPermissionToChannel(userID any, channelID any, permission any) *MockClient_HasPermissionToChannel_Call

HasPermissionToChannel is a helper method to define mock.On call

  • userID string
  • channelID string
  • permission *model.Permission

func (*MockClient_Expecter) HasPermissionToFileAction added in v2.5.4

func (_e *MockClient_Expecter) HasPermissionToFileAction(sessionID any, fileID any, action any) *MockClient_HasPermissionToFileAction_Call

HasPermissionToFileAction is a helper method to define mock.On call

  • sessionID string
  • fileID string
  • action string

func (*MockClient_Expecter) KVCompareAndSet

func (_e *MockClient_Expecter) KVCompareAndSet(key any, oldValue any, newValue any) *MockClient_KVCompareAndSet_Call

KVCompareAndSet is a helper method to define mock.On call

  • key string
  • oldValue any
  • newValue any

func (*MockClient_Expecter) KVCompareAndSetWithExpiry added in v2.6.0

func (_e *MockClient_Expecter) KVCompareAndSetWithExpiry(key any, oldValue any, newValue any, ttl any) *MockClient_KVCompareAndSetWithExpiry_Call

KVCompareAndSetWithExpiry is a helper method to define mock.On call

  • key string
  • oldValue any
  • newValue any
  • ttl time.Duration

func (*MockClient_Expecter) KVDelete

KVDelete is a helper method to define mock.On call

  • key string

func (*MockClient_Expecter) KVGet

func (_e *MockClient_Expecter) KVGet(key any, value any) *MockClient_KVGet_Call

KVGet is a helper method to define mock.On call

  • key string
  • value any

func (*MockClient_Expecter) KVSet

func (_e *MockClient_Expecter) KVSet(key any, value any) *MockClient_KVSet_Call

KVSet is a helper method to define mock.On call

  • key string
  • value any

func (*MockClient_Expecter) KVSetWithExpiry

func (_e *MockClient_Expecter) KVSetWithExpiry(key any, value any, ttl any) *MockClient_KVSetWithExpiry_Call

KVSetWithExpiry is a helper method to define mock.On call

  • key string
  • value any
  • ttl time.Duration

func (*MockClient_Expecter) LogDebug

func (_e *MockClient_Expecter) LogDebug(msg any, keyValuePairs ...any) *MockClient_LogDebug_Call

LogDebug is a helper method to define mock.On call

  • msg string
  • keyValuePairs ...any

func (*MockClient_Expecter) LogError

func (_e *MockClient_Expecter) LogError(msg any, keyValuePairs ...any) *MockClient_LogError_Call

LogError is a helper method to define mock.On call

  • msg string
  • keyValuePairs ...any

func (*MockClient_Expecter) LogWarn

func (_e *MockClient_Expecter) LogWarn(msg any, keyValuePairs ...any) *MockClient_LogWarn_Call

LogWarn is a helper method to define mock.On call

  • msg string
  • keyValuePairs ...any

func (*MockClient_Expecter) PluginHTTP

func (_e *MockClient_Expecter) PluginHTTP(req any) *MockClient_PluginHTTP_Call

PluginHTTP is a helper method to define mock.On call

  • req *http.Request

func (*MockClient_Expecter) PublishWebSocketEvent

func (_e *MockClient_Expecter) PublishWebSocketEvent(event any, payload any, broadcast any) *MockClient_PublishWebSocketEvent_Call

PublishWebSocketEvent is a helper method to define mock.On call

  • event string
  • payload map[string]any
  • broadcast *model.WebsocketBroadcast

func (*MockClient_Expecter) SendEphemeralPost

func (_e *MockClient_Expecter) SendEphemeralPost(userID any, post any) *MockClient_SendEphemeralPost_Call

SendEphemeralPost is a helper method to define mock.On call

  • userID string
  • post *model.Post

func (*MockClient_Expecter) UpdatePost

func (_e *MockClient_Expecter) UpdatePost(post any) *MockClient_UpdatePost_Call

UpdatePost is a helper method to define mock.On call

  • post *model.Post

func (*MockClient_Expecter) UploadFile added in v2.6.0

func (_e *MockClient_Expecter) UploadFile(content any, fileName any, channelID any) *MockClient_UploadFile_Call

UploadFile is a helper method to define mock.On call

  • content io.Reader
  • fileName string
  • channelID string

type MockClient_GetChannelByName_Call

type MockClient_GetChannelByName_Call struct {
	*mock.Call
}

MockClient_GetChannelByName_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetChannelByName'

func (*MockClient_GetChannelByName_Call) Return

func (*MockClient_GetChannelByName_Call) Run

func (_c *MockClient_GetChannelByName_Call) Run(run func(teamID string, name string, includeDeleted bool)) *MockClient_GetChannelByName_Call

func (*MockClient_GetChannelByName_Call) RunAndReturn

func (_c *MockClient_GetChannelByName_Call) RunAndReturn(run func(teamID string, name string, includeDeleted bool) (*model.Channel, error)) *MockClient_GetChannelByName_Call

type MockClient_GetChannel_Call

type MockClient_GetChannel_Call struct {
	*mock.Call
}

MockClient_GetChannel_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetChannel'

func (*MockClient_GetChannel_Call) Return

func (*MockClient_GetChannel_Call) Run

func (_c *MockClient_GetChannel_Call) Run(run func(channelID string)) *MockClient_GetChannel_Call

func (*MockClient_GetChannel_Call) RunAndReturn

func (_c *MockClient_GetChannel_Call) RunAndReturn(run func(channelID string) (*model.Channel, error)) *MockClient_GetChannel_Call

type MockClient_GetConfig_Call

type MockClient_GetConfig_Call struct {
	*mock.Call
}

MockClient_GetConfig_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetConfig'

func (*MockClient_GetConfig_Call) Return

func (*MockClient_GetConfig_Call) Run

func (*MockClient_GetConfig_Call) RunAndReturn

func (_c *MockClient_GetConfig_Call) RunAndReturn(run func() *model.Config) *MockClient_GetConfig_Call

type MockClient_GetDirectChannel_Call

type MockClient_GetDirectChannel_Call struct {
	*mock.Call
}

MockClient_GetDirectChannel_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDirectChannel'

func (*MockClient_GetDirectChannel_Call) Return

func (*MockClient_GetDirectChannel_Call) Run

func (*MockClient_GetDirectChannel_Call) RunAndReturn

func (_c *MockClient_GetDirectChannel_Call) RunAndReturn(run func(userID1 string, userID2 string) (*model.Channel, error)) *MockClient_GetDirectChannel_Call

type MockClient_GetFileInfo_Call

type MockClient_GetFileInfo_Call struct {
	*mock.Call
}

MockClient_GetFileInfo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetFileInfo'

func (*MockClient_GetFileInfo_Call) Return

func (*MockClient_GetFileInfo_Call) Run

func (*MockClient_GetFileInfo_Call) RunAndReturn

func (_c *MockClient_GetFileInfo_Call) RunAndReturn(run func(fileID string) (*model.FileInfo, error)) *MockClient_GetFileInfo_Call

type MockClient_GetFile_Call

type MockClient_GetFile_Call struct {
	*mock.Call
}

MockClient_GetFile_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetFile'

func (*MockClient_GetFile_Call) Return

func (_c *MockClient_GetFile_Call) Return(readCloser io.ReadCloser, err error) *MockClient_GetFile_Call

func (*MockClient_GetFile_Call) Run

func (_c *MockClient_GetFile_Call) Run(run func(fileID string)) *MockClient_GetFile_Call

func (*MockClient_GetFile_Call) RunAndReturn

func (_c *MockClient_GetFile_Call) RunAndReturn(run func(fileID string) (io.ReadCloser, error)) *MockClient_GetFile_Call

type MockClient_GetPluginStatus_Call

type MockClient_GetPluginStatus_Call struct {
	*mock.Call
}

MockClient_GetPluginStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPluginStatus'

func (*MockClient_GetPluginStatus_Call) Return

func (*MockClient_GetPluginStatus_Call) Run

func (*MockClient_GetPluginStatus_Call) RunAndReturn

type MockClient_GetPostThread_Call

type MockClient_GetPostThread_Call struct {
	*mock.Call
}

MockClient_GetPostThread_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPostThread'

func (*MockClient_GetPostThread_Call) Return

func (*MockClient_GetPostThread_Call) Run

func (*MockClient_GetPostThread_Call) RunAndReturn

type MockClient_GetPost_Call

type MockClient_GetPost_Call struct {
	*mock.Call
}

MockClient_GetPost_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPost'

func (*MockClient_GetPost_Call) Return

func (*MockClient_GetPost_Call) Run

func (_c *MockClient_GetPost_Call) Run(run func(postID string)) *MockClient_GetPost_Call

func (*MockClient_GetPost_Call) RunAndReturn

func (_c *MockClient_GetPost_Call) RunAndReturn(run func(postID string) (*model.Post, error)) *MockClient_GetPost_Call

type MockClient_GetPostsBefore_Call

type MockClient_GetPostsBefore_Call struct {
	*mock.Call
}

MockClient_GetPostsBefore_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPostsBefore'

func (*MockClient_GetPostsBefore_Call) Return

func (*MockClient_GetPostsBefore_Call) Run

func (_c *MockClient_GetPostsBefore_Call) Run(run func(channelID string, postID string, page int, perPage int)) *MockClient_GetPostsBefore_Call

func (*MockClient_GetPostsBefore_Call) RunAndReturn

func (_c *MockClient_GetPostsBefore_Call) RunAndReturn(run func(channelID string, postID string, page int, perPage int) (*model.PostList, error)) *MockClient_GetPostsBefore_Call

type MockClient_GetPostsSince_Call

type MockClient_GetPostsSince_Call struct {
	*mock.Call
}

MockClient_GetPostsSince_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPostsSince'

func (*MockClient_GetPostsSince_Call) Return

func (*MockClient_GetPostsSince_Call) Run

func (_c *MockClient_GetPostsSince_Call) Run(run func(channelID string, since int64)) *MockClient_GetPostsSince_Call

func (*MockClient_GetPostsSince_Call) RunAndReturn

func (_c *MockClient_GetPostsSince_Call) RunAndReturn(run func(channelID string, since int64) (*model.PostList, error)) *MockClient_GetPostsSince_Call

type MockClient_GetTeam_Call

type MockClient_GetTeam_Call struct {
	*mock.Call
}

MockClient_GetTeam_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetTeam'

func (*MockClient_GetTeam_Call) Return

func (*MockClient_GetTeam_Call) Run

func (_c *MockClient_GetTeam_Call) Run(run func(teamID string)) *MockClient_GetTeam_Call

func (*MockClient_GetTeam_Call) RunAndReturn

func (_c *MockClient_GetTeam_Call) RunAndReturn(run func(teamID string) (*model.Team, error)) *MockClient_GetTeam_Call

type MockClient_GetUserByUsername_Call

type MockClient_GetUserByUsername_Call struct {
	*mock.Call
}

MockClient_GetUserByUsername_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetUserByUsername'

func (*MockClient_GetUserByUsername_Call) Return

func (*MockClient_GetUserByUsername_Call) Run

func (*MockClient_GetUserByUsername_Call) RunAndReturn

type MockClient_GetUserStatus_Call

type MockClient_GetUserStatus_Call struct {
	*mock.Call
}

MockClient_GetUserStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetUserStatus'

func (*MockClient_GetUserStatus_Call) Return

func (*MockClient_GetUserStatus_Call) Run

func (*MockClient_GetUserStatus_Call) RunAndReturn

func (_c *MockClient_GetUserStatus_Call) RunAndReturn(run func(userID string) (*model.Status, error)) *MockClient_GetUserStatus_Call

type MockClient_GetUser_Call

type MockClient_GetUser_Call struct {
	*mock.Call
}

MockClient_GetUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetUser'

func (*MockClient_GetUser_Call) Return

func (*MockClient_GetUser_Call) Run

func (_c *MockClient_GetUser_Call) Run(run func(userID string)) *MockClient_GetUser_Call

func (*MockClient_GetUser_Call) RunAndReturn

func (_c *MockClient_GetUser_Call) RunAndReturn(run func(userID string) (*model.User, error)) *MockClient_GetUser_Call

type MockClient_HasPermissionToChannel_Call

type MockClient_HasPermissionToChannel_Call struct {
	*mock.Call
}

MockClient_HasPermissionToChannel_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HasPermissionToChannel'

func (*MockClient_HasPermissionToChannel_Call) Return

func (*MockClient_HasPermissionToChannel_Call) Run

func (*MockClient_HasPermissionToChannel_Call) RunAndReturn

func (_c *MockClient_HasPermissionToChannel_Call) RunAndReturn(run func(userID string, channelID string, permission *model.Permission) bool) *MockClient_HasPermissionToChannel_Call

type MockClient_HasPermissionToFileAction_Call added in v2.5.4

type MockClient_HasPermissionToFileAction_Call struct {
	*mock.Call
}

MockClient_HasPermissionToFileAction_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HasPermissionToFileAction'

func (*MockClient_HasPermissionToFileAction_Call) Return added in v2.5.4

func (*MockClient_HasPermissionToFileAction_Call) Run added in v2.5.4

func (*MockClient_HasPermissionToFileAction_Call) RunAndReturn added in v2.5.4

type MockClient_HasPermissionTo_Call

type MockClient_HasPermissionTo_Call struct {
	*mock.Call
}

MockClient_HasPermissionTo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HasPermissionTo'

func (*MockClient_HasPermissionTo_Call) Return

func (*MockClient_HasPermissionTo_Call) Run

func (*MockClient_HasPermissionTo_Call) RunAndReturn

func (_c *MockClient_HasPermissionTo_Call) RunAndReturn(run func(userID string, permission *model.Permission) bool) *MockClient_HasPermissionTo_Call

type MockClient_KVCompareAndSetWithExpiry_Call added in v2.6.0

type MockClient_KVCompareAndSetWithExpiry_Call struct {
	*mock.Call
}

MockClient_KVCompareAndSetWithExpiry_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'KVCompareAndSetWithExpiry'

func (*MockClient_KVCompareAndSetWithExpiry_Call) Return added in v2.6.0

func (*MockClient_KVCompareAndSetWithExpiry_Call) Run added in v2.6.0

func (*MockClient_KVCompareAndSetWithExpiry_Call) RunAndReturn added in v2.6.0

func (_c *MockClient_KVCompareAndSetWithExpiry_Call) RunAndReturn(run func(key string, oldValue any, newValue any, ttl time.Duration) (bool, error)) *MockClient_KVCompareAndSetWithExpiry_Call

type MockClient_KVCompareAndSet_Call

type MockClient_KVCompareAndSet_Call struct {
	*mock.Call
}

MockClient_KVCompareAndSet_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'KVCompareAndSet'

func (*MockClient_KVCompareAndSet_Call) Return

func (*MockClient_KVCompareAndSet_Call) Run

func (_c *MockClient_KVCompareAndSet_Call) Run(run func(key string, oldValue any, newValue any)) *MockClient_KVCompareAndSet_Call

func (*MockClient_KVCompareAndSet_Call) RunAndReturn

func (_c *MockClient_KVCompareAndSet_Call) RunAndReturn(run func(key string, oldValue any, newValue any) (bool, error)) *MockClient_KVCompareAndSet_Call

type MockClient_KVDelete_Call

type MockClient_KVDelete_Call struct {
	*mock.Call
}

MockClient_KVDelete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'KVDelete'

func (*MockClient_KVDelete_Call) Return

func (*MockClient_KVDelete_Call) Run

func (*MockClient_KVDelete_Call) RunAndReturn

func (_c *MockClient_KVDelete_Call) RunAndReturn(run func(key string) error) *MockClient_KVDelete_Call

type MockClient_KVGet_Call

type MockClient_KVGet_Call struct {
	*mock.Call
}

MockClient_KVGet_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'KVGet'

func (*MockClient_KVGet_Call) Return

func (*MockClient_KVGet_Call) Run

func (_c *MockClient_KVGet_Call) Run(run func(key string, value any)) *MockClient_KVGet_Call

func (*MockClient_KVGet_Call) RunAndReturn

func (_c *MockClient_KVGet_Call) RunAndReturn(run func(key string, value any) error) *MockClient_KVGet_Call

type MockClient_KVSetWithExpiry_Call

type MockClient_KVSetWithExpiry_Call struct {
	*mock.Call
}

MockClient_KVSetWithExpiry_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'KVSetWithExpiry'

func (*MockClient_KVSetWithExpiry_Call) Return

func (*MockClient_KVSetWithExpiry_Call) Run

func (*MockClient_KVSetWithExpiry_Call) RunAndReturn

func (_c *MockClient_KVSetWithExpiry_Call) RunAndReturn(run func(key string, value any, ttl time.Duration) error) *MockClient_KVSetWithExpiry_Call

type MockClient_KVSet_Call

type MockClient_KVSet_Call struct {
	*mock.Call
}

MockClient_KVSet_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'KVSet'

func (*MockClient_KVSet_Call) Return

func (*MockClient_KVSet_Call) Run

func (_c *MockClient_KVSet_Call) Run(run func(key string, value any)) *MockClient_KVSet_Call

func (*MockClient_KVSet_Call) RunAndReturn

func (_c *MockClient_KVSet_Call) RunAndReturn(run func(key string, value any) error) *MockClient_KVSet_Call

type MockClient_LogDebug_Call

type MockClient_LogDebug_Call struct {
	*mock.Call
}

MockClient_LogDebug_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LogDebug'

func (*MockClient_LogDebug_Call) Return

func (*MockClient_LogDebug_Call) Run

func (_c *MockClient_LogDebug_Call) Run(run func(msg string, keyValuePairs ...any)) *MockClient_LogDebug_Call

func (*MockClient_LogDebug_Call) RunAndReturn

func (_c *MockClient_LogDebug_Call) RunAndReturn(run func(msg string, keyValuePairs ...any)) *MockClient_LogDebug_Call

type MockClient_LogError_Call

type MockClient_LogError_Call struct {
	*mock.Call
}

MockClient_LogError_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LogError'

func (*MockClient_LogError_Call) Return

func (*MockClient_LogError_Call) Run

func (_c *MockClient_LogError_Call) Run(run func(msg string, keyValuePairs ...any)) *MockClient_LogError_Call

func (*MockClient_LogError_Call) RunAndReturn

func (_c *MockClient_LogError_Call) RunAndReturn(run func(msg string, keyValuePairs ...any)) *MockClient_LogError_Call

type MockClient_LogWarn_Call

type MockClient_LogWarn_Call struct {
	*mock.Call
}

MockClient_LogWarn_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LogWarn'

func (*MockClient_LogWarn_Call) Return

func (*MockClient_LogWarn_Call) Run

func (_c *MockClient_LogWarn_Call) Run(run func(msg string, keyValuePairs ...any)) *MockClient_LogWarn_Call

func (*MockClient_LogWarn_Call) RunAndReturn

func (_c *MockClient_LogWarn_Call) RunAndReturn(run func(msg string, keyValuePairs ...any)) *MockClient_LogWarn_Call

type MockClient_PluginHTTP_Call

type MockClient_PluginHTTP_Call struct {
	*mock.Call
}

MockClient_PluginHTTP_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PluginHTTP'

func (*MockClient_PluginHTTP_Call) Return

func (*MockClient_PluginHTTP_Call) Run

func (*MockClient_PluginHTTP_Call) RunAndReturn

type MockClient_PublishWebSocketEvent_Call

type MockClient_PublishWebSocketEvent_Call struct {
	*mock.Call
}

MockClient_PublishWebSocketEvent_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PublishWebSocketEvent'

func (*MockClient_PublishWebSocketEvent_Call) Return

func (*MockClient_PublishWebSocketEvent_Call) Run

func (*MockClient_PublishWebSocketEvent_Call) RunAndReturn

func (_c *MockClient_PublishWebSocketEvent_Call) RunAndReturn(run func(event string, payload map[string]any, broadcast *model.WebsocketBroadcast)) *MockClient_PublishWebSocketEvent_Call

type MockClient_SendEphemeralPost_Call

type MockClient_SendEphemeralPost_Call struct {
	*mock.Call
}

MockClient_SendEphemeralPost_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SendEphemeralPost'

func (*MockClient_SendEphemeralPost_Call) Return

func (*MockClient_SendEphemeralPost_Call) Run

func (*MockClient_SendEphemeralPost_Call) RunAndReturn

func (_c *MockClient_SendEphemeralPost_Call) RunAndReturn(run func(userID string, post *model.Post)) *MockClient_SendEphemeralPost_Call

type MockClient_UpdatePost_Call

type MockClient_UpdatePost_Call struct {
	*mock.Call
}

MockClient_UpdatePost_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdatePost'

func (*MockClient_UpdatePost_Call) Return

func (*MockClient_UpdatePost_Call) Run

func (*MockClient_UpdatePost_Call) RunAndReturn

func (_c *MockClient_UpdatePost_Call) RunAndReturn(run func(post *model.Post) error) *MockClient_UpdatePost_Call

type MockClient_UploadFile_Call added in v2.6.0

type MockClient_UploadFile_Call struct {
	*mock.Call
}

MockClient_UploadFile_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UploadFile'

func (*MockClient_UploadFile_Call) Return added in v2.6.0

func (*MockClient_UploadFile_Call) Run added in v2.6.0

func (_c *MockClient_UploadFile_Call) Run(run func(content io.Reader, fileName string, channelID string)) *MockClient_UploadFile_Call

func (*MockClient_UploadFile_Call) RunAndReturn added in v2.6.0

func (_c *MockClient_UploadFile_Call) RunAndReturn(run func(content io.Reader, fileName string, channelID string) (*model.FileInfo, error)) *MockClient_UploadFile_Call

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL