Documentation
¶
Index ¶
- func SessionMatcher(expected *node.Session) func(actual interface{}) bool
- type AppNode
- func (_m *AppNode) Authenticate(s *node.Session) (*common.ConnectResult, error)
- func (_m *AppNode) AuthenticateWithOptions(s *node.Session, opts ...node.AuthOption) (*common.ConnectResult, error)
- func (_m *AppNode) Disconnect(s *node.Session) error
- func (_m *AppNode) HandlePubSub(msg []byte)
- func (_m *AppNode) LookupSession(id string) *node.Session
- func (_m *AppNode) Perform(s *node.Session, msg *common.Message) (*common.CommandResult, error)
- func (_m *AppNode) Subscribe(s *node.Session, msg *common.Message) (*common.CommandResult, error)
- func (_m *AppNode) Unsubscribe(s *node.Session, msg *common.Message) (*common.CommandResult, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SessionMatcher ¶ added in v1.4.0
Types ¶
type AppNode ¶
AppNode is an autogenerated mock type for the AppNode type
func (*AppNode) Authenticate ¶
Authenticate provides a mock function with given fields: s
func (*AppNode) AuthenticateWithOptions ¶
func (_m *AppNode) AuthenticateWithOptions(s *node.Session, opts ...node.AuthOption) (*common.ConnectResult, error)
AuthenticateWithOptions provides a mock function with given fields: s, options
func (*AppNode) Disconnect ¶
Disconnect provides a mock function with given fields: s
func (*AppNode) HandlePubSub ¶
HandlePubSub provides a mock function with given fields: msg
func (*AppNode) LookupSession ¶ added in v1.1.4
LookupSession provides a mock function with given fields: id
func (*AppNode) Unsubscribe ¶
Unsubscribe provides a mock function with given fields: s, msg
Click to show internal directories.
Click to hide internal directories.