Documentation ¶
Index ¶
- type SessionMock
- func (*SessionMock) ApprovePresenceSubscription(string, string) error
- func (*SessionMock) AutoApprove(string)
- func (*SessionMock) AwaitVersionReply(<-chan data.Stanza, string)
- func (*SessionMock) Close()
- func (*SessionMock) CommandManager() client.CommandManager
- func (*SessionMock) Config() *config.ApplicationConfig
- func (*SessionMock) Conn() xi.Conn
- func (*SessionMock) Connect(string, tls.Verifier) error
- func (*SessionMock) ConversationManager() client.ConversationManager
- func (*SessionMock) DenyPresenceSubscription(string, string) error
- func (*SessionMock) DisplayName() string
- func (*SessionMock) EncryptAndSendTo(string, string, string) (int, bool, error)
- func (*SessionMock) GetConfig() *config.Account
- func (*SessionMock) GroupDelimiter() string
- func (*SessionMock) HandleConfirmOrDeny(string, bool)
- func (*SessionMock) IsConnected() bool
- func (*SessionMock) IsDisconnected() bool
- func (*SessionMock) ManuallyEndEncryptedChat(string, string) error
- func (*SessionMock) OtrEventHandler() map[string]*event.OtrEventHandler
- func (*SessionMock) PrivateKeys() []otr3.PrivateKey
- func (*SessionMock) R() *roster.List
- func (*SessionMock) ReloadKeys()
- func (*SessionMock) RemoveContact(string)
- func (*SessionMock) RequestPresenceSubscription(string, string) error
- func (*SessionMock) Send(string, string, string) error
- func (*SessionMock) SendPing()
- func (*SessionMock) SetCommandManager(client.CommandManager)
- func (*SessionMock) SetConnectionLogger(io.Writer)
- func (*SessionMock) SetConnector(access.Connector)
- func (*SessionMock) SetLastActionTime(time.Time)
- func (*SessionMock) SetSessionEventHandler(access.EventHandler)
- func (*SessionMock) SetWantToBeOnline(bool)
- func (*SessionMock) Subscribe(chan<- interface{})
- func (*SessionMock) Timeout(data.Cookie, time.Time)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SessionMock ¶
type SessionMock struct{}
SessionMock is a mock of the Session interface
func (*SessionMock) ApprovePresenceSubscription ¶
func (*SessionMock) ApprovePresenceSubscription(string, string) error
ApprovePresenceSubscription is the implementation for Session interface
func (*SessionMock) AutoApprove ¶
func (*SessionMock) AutoApprove(string)
AutoApprove is the implementation for Session interface
func (*SessionMock) AwaitVersionReply ¶
func (*SessionMock) AwaitVersionReply(<-chan data.Stanza, string)
AwaitVersionReply is the implementation for Session interface
func (*SessionMock) Close ¶
func (*SessionMock) Close()
Close is the implementation for Session interface
func (*SessionMock) CommandManager ¶
func (*SessionMock) CommandManager() client.CommandManager
CommandManager is the implementation for Session interface
func (*SessionMock) Config ¶
func (*SessionMock) Config() *config.ApplicationConfig
Config is the implementation for Session interface
func (*SessionMock) Conn ¶
func (*SessionMock) Conn() xi.Conn
Conn is the implementation for Session interface
func (*SessionMock) Connect ¶
func (*SessionMock) Connect(string, tls.Verifier) error
Connect is the implementation for Session interface
func (*SessionMock) ConversationManager ¶
func (*SessionMock) ConversationManager() client.ConversationManager
ConversationManager is the implementation for Session interface
func (*SessionMock) DenyPresenceSubscription ¶
func (*SessionMock) DenyPresenceSubscription(string, string) error
DenyPresenceSubscription is the implementation for Session interface
func (*SessionMock) DisplayName ¶ added in v0.3.6
func (*SessionMock) DisplayName() string
DisplayName is the implementation for Session interface
func (*SessionMock) EncryptAndSendTo ¶
EncryptAndSendTo is the implementation for Session interface
func (*SessionMock) GetConfig ¶
func (*SessionMock) GetConfig() *config.Account
GetConfig is the implementation for Session interface
func (*SessionMock) GroupDelimiter ¶
func (*SessionMock) GroupDelimiter() string
GroupDelimiter is the implementation for Session interface
func (*SessionMock) HandleConfirmOrDeny ¶
func (*SessionMock) HandleConfirmOrDeny(string, bool)
HandleConfirmOrDeny is the implementation for Session interface
func (*SessionMock) IsConnected ¶
func (*SessionMock) IsConnected() bool
IsConnected is the implementation for Session interface
func (*SessionMock) IsDisconnected ¶
func (*SessionMock) IsDisconnected() bool
IsDisconnected is the implementation for Session interface
func (*SessionMock) ManuallyEndEncryptedChat ¶ added in v0.3.7
func (*SessionMock) ManuallyEndEncryptedChat(string, string) error
ManuallyEndEncryptedChat is the implementation for Session interface
func (*SessionMock) OtrEventHandler ¶
func (*SessionMock) OtrEventHandler() map[string]*event.OtrEventHandler
OtrEventHandler is the implementation for Session interface
func (*SessionMock) PrivateKeys ¶
func (*SessionMock) PrivateKeys() []otr3.PrivateKey
PrivateKeys is the implementation for Session interface
func (*SessionMock) R ¶
func (*SessionMock) R() *roster.List
R is the implementation for Session interface
func (*SessionMock) ReloadKeys ¶
func (*SessionMock) ReloadKeys()
ReloadKeys is the implementation for Session interface
func (*SessionMock) RemoveContact ¶
func (*SessionMock) RemoveContact(string)
RemoveContact is the implementation for Session interface
func (*SessionMock) RequestPresenceSubscription ¶
func (*SessionMock) RequestPresenceSubscription(string, string) error
RequestPresenceSubscription is the implementation for Session interface
func (*SessionMock) Send ¶
func (*SessionMock) Send(string, string, string) error
Send is the implementation for Session interface
func (*SessionMock) SendPing ¶ added in v0.3.6
func (*SessionMock) SendPing()
SendPing is the implementation for Session interface
func (*SessionMock) SetCommandManager ¶
func (*SessionMock) SetCommandManager(client.CommandManager)
SetCommandManager is the implementation for Session interface
func (*SessionMock) SetConnectionLogger ¶
func (*SessionMock) SetConnectionLogger(io.Writer)
SetConnectionLogger is the implementation for Session interface
func (*SessionMock) SetConnector ¶
func (*SessionMock) SetConnector(access.Connector)
SetConnector is the implementation for Session interface
func (*SessionMock) SetLastActionTime ¶
func (*SessionMock) SetLastActionTime(time.Time)
SetLastActionTime is the implementation for Session interface
func (*SessionMock) SetSessionEventHandler ¶
func (*SessionMock) SetSessionEventHandler(access.EventHandler)
SetSessionEventHandler is the implementation for Session interface
func (*SessionMock) SetWantToBeOnline ¶
func (*SessionMock) SetWantToBeOnline(bool)
SetWantToBeOnline is the implementation for Session interface
func (*SessionMock) Subscribe ¶
func (*SessionMock) Subscribe(chan<- interface{})
Subscribe is the implementation for Session interface