mocks

package
v0.0.0-...-80869bb Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2024 License: Apache-2.0 Imports: 4 Imported by: 16

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IWebSocketChannel

type IWebSocketChannel struct {
	mock.Mock
}

IWebSocketChannel is an autogenerated mock type for the IWebSocketChannel type

func NewIWebSocketChannel

func NewIWebSocketChannel(t interface {
	mock.TestingT
	Cleanup(func())
}) *IWebSocketChannel

NewIWebSocketChannel creates a new instance of IWebSocketChannel. 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 (*IWebSocketChannel) Close

func (_m *IWebSocketChannel) Close(_a0 log.T) error

Close provides a mock function with given fields: _a0

func (*IWebSocketChannel) GetChannelToken

func (_m *IWebSocketChannel) GetChannelToken() string

GetChannelToken provides a mock function with given fields:

func (*IWebSocketChannel) GetStreamUrl

func (_m *IWebSocketChannel) GetStreamUrl() string

GetStreamUrl provides a mock function with given fields:

func (*IWebSocketChannel) Initialize

func (_m *IWebSocketChannel) Initialize(_a0 log.T, channelUrl string, channelToken string, region string, signer *v4.Signer)

Initialize provides a mock function with given fields: _a0, channelUrl, channelToken, region, signer

func (*IWebSocketChannel) Open

func (_m *IWebSocketChannel) Open(_a0 log.T) error

Open provides a mock function with given fields: _a0

func (*IWebSocketChannel) SendMessage

func (_m *IWebSocketChannel) SendMessage(_a0 log.T, input []byte, inputType int) error

SendMessage provides a mock function with given fields: _a0, input, inputType

func (*IWebSocketChannel) SetChannelToken

func (_m *IWebSocketChannel) SetChannelToken(_a0 string)

SetChannelToken provides a mock function with given fields: _a0

func (*IWebSocketChannel) SetOnError

func (_m *IWebSocketChannel) SetOnError(onErrorHandler func(error))

SetOnError provides a mock function with given fields: onErrorHandler

func (*IWebSocketChannel) SetOnMessage

func (_m *IWebSocketChannel) SetOnMessage(onMessageHandler func([]byte))

SetOnMessage provides a mock function with given fields: onMessageHandler

func (*IWebSocketChannel) StartPings

func (_m *IWebSocketChannel) StartPings(_a0 log.T, pingInterval time.Duration)

StartPings provides a mock function with given fields: _a0, pingInterval

Jump to

Keyboard shortcuts

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