Documentation ¶
Index ¶
- func SessionMatcher(expected *node.Session) func(actual interface{}) bool
- type AppNode
- func (_m *AppNode) Authenticate(s *node.Session, opts ...func(*node.AuthOptions)) (*common.ConnectResult, error)
- func (_m *AppNode) Authenticated(s *node.Session, identifiers string)
- 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 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
Authenticated provides a mock function with given fields: s, identifiers
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.