Documentation
¶
Index ¶
- type TestSecurityModule
- func (sm *TestSecurityModule) AuthEventStreams(authCtx interface{}) error
- func (sm *TestSecurityModule) AuthListAsyncReplies(authCtx interface{}) error
- func (sm *TestSecurityModule) AuthRPC(authCtx interface{}, method string, args ...interface{}) error
- func (sm *TestSecurityModule) AuthRPCSubscribe(authCtx interface{}, namespace string, channel interface{}, ...) error
- func (sm *TestSecurityModule) AuthReadAsyncReplyByUUID(authCtx interface{}) error
- func (sm *TestSecurityModule) VerifyToken(tok string) (interface{}, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TestSecurityModule ¶
type TestSecurityModule struct{}
TestSecurityModule designed for unit testing - does not implement security
func (*TestSecurityModule) AuthEventStreams ¶
func (sm *TestSecurityModule) AuthEventStreams(authCtx interface{}) error
AuthEventStreams of TEST MODULE returns true if there is an auth context
func (*TestSecurityModule) AuthListAsyncReplies ¶
func (sm *TestSecurityModule) AuthListAsyncReplies(authCtx interface{}) error
AuthListAsyncReplies of TEST MODULE returns true if there is an auth context
func (*TestSecurityModule) AuthRPC ¶
func (sm *TestSecurityModule) AuthRPC(authCtx interface{}, method string, args ...interface{}) error
AuthRPC of TEST MODULE checks if a token matches a fixed string
func (*TestSecurityModule) AuthRPCSubscribe ¶
func (sm *TestSecurityModule) AuthRPCSubscribe(authCtx interface{}, namespace string, channel interface{}, args ...interface{}) error
AuthRPCSubscribe of TEST MODULE checks if a namespace matches a fixed string
func (*TestSecurityModule) AuthReadAsyncReplyByUUID ¶
func (sm *TestSecurityModule) AuthReadAsyncReplyByUUID(authCtx interface{}) error
AuthReadAsyncReplyByUUID of TEST MODULE returns true if there is an auth context
func (*TestSecurityModule) VerifyToken ¶
func (sm *TestSecurityModule) VerifyToken(tok string) (interface{}, error)
VerifyToken of TEST MODULE checks if a token matches a fixed string
Click to show internal directories.
Click to hide internal directories.