node_mocks

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SessionMatcher added in v1.4.0

func SessionMatcher(expected *node.Session) func(actual interface{}) bool

Types

type AppNode

type AppNode struct {
	mock.Mock
}

AppNode is an autogenerated mock type for the AppNode type

func NewAppNode added in v1.4.0

func NewAppNode(t mockConstructorTestingTNewAppNode) *AppNode

NewAppNode creates a new instance of AppNode. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*AppNode) Authenticate

func (_m *AppNode) Authenticate(s *node.Session, opts ...func(*node.AuthOptions)) (*common.ConnectResult, error)

Authenticate provides a mock function with given fields: s, opts

func (*AppNode) Authenticated added in v1.4.0

func (_m *AppNode) Authenticated(s *node.Session, identifiers string)

Authenticated provides a mock function with given fields: s, identifiers

func (*AppNode) Disconnect

func (_m *AppNode) Disconnect(s *node.Session) error

Disconnect provides a mock function with given fields: s

func (*AppNode) HandlePubSub

func (_m *AppNode) HandlePubSub(msg []byte)

HandlePubSub provides a mock function with given fields: msg

func (*AppNode) LookupSession added in v1.1.4

func (_m *AppNode) LookupSession(id string) *node.Session

LookupSession provides a mock function with given fields: id

func (*AppNode) Perform

func (_m *AppNode) Perform(s *node.Session, msg *common.Message) (*common.CommandResult, error)

Perform provides a mock function with given fields: s, msg

func (*AppNode) Subscribe

func (_m *AppNode) Subscribe(s *node.Session, msg *common.Message) (*common.CommandResult, error)

Subscribe provides a mock function with given fields: s, msg

func (*AppNode) Unsubscribe

func (_m *AppNode) Unsubscribe(s *node.Session, msg *common.Message) (*common.CommandResult, error)

Unsubscribe provides a mock function with given fields: s, msg

Jump to

Keyboard shortcuts

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