Documentation ¶
Index ¶
- type SessionMock
- func (*SessionMock) AbortSMP(jid.WithResource)
- func (*SessionMock) ApprovePresenceSubscription(jid.WithoutResource, string) error
- func (*SessionMock) AutoApprove(string)
- func (*SessionMock) AwaitVersionReply(<-chan data.Stanza, string)
- func (*SessionMock) CancelRoomConfiguration(jid.Bare) <-chan error
- func (*SessionMock) Close()
- func (*SessionMock) CommandManager() otrclient.CommandManager
- func (*SessionMock) Config() *config.ApplicationConfig
- func (*SessionMock) Conn() xi.Conn
- func (*SessionMock) Connect(string, tls.Verifier) error
- func (*SessionMock) ConversationManager() otrclient.ConversationManager
- func (*SessionMock) CreateInstantRoom(jid.Bare) <-chan error
- func (*SessionMock) CreateReservedRoom(jid.Bare) (<-chan *muc.RoomConfigForm, <-chan error)
- func (*SessionMock) CreateSymmetricKeyFor(jid.Any) []byte
- func (*SessionMock) DenyPresenceSubscription(jid.WithoutResource, string) error
- func (*SessionMock) DestroyRoom(jid.Bare, string, jid.Bare, string) (<-chan bool, <-chan error)
- func (*SessionMock) DisplayName() string
- func (*SessionMock) EncryptAndSendTo(jid.Any, string) (int, bool, error)
- func (*SessionMock) FinishSMP(jid.WithResource, string)
- func (*SessionMock) GetAndWipeSymmetricKeyFor(jid.Any) []byte
- func (*SessionMock) GetChatServices(jid.Domain) (<-chan jid.Domain, <-chan error, func())
- func (*SessionMock) GetConfig() *config.Account
- func (*SessionMock) GetInMemoryLog() *bytes.Buffer
- func (s *SessionMock) GetRoomListing(jid.Bare, chan<- *muc.RoomListing)
- func (*SessionMock) GetRooms(jid.Domain, string) (<-chan *muc.RoomListing, <-chan *muc.ServiceListing, <-chan error)
- func (*SessionMock) GroupDelimiter() string
- func (*SessionMock) HandleConfirmOrDeny(jid.WithoutResource, bool)
- func (s *SessionMock) HasRoom(jid.Bare, chan<- *muc.RoomListing) (<-chan bool, <-chan error)
- func (*SessionMock) IsConnected() bool
- func (*SessionMock) IsDisconnected() bool
- func (s *SessionMock) JoinRoom(jid.Bare, string, string) error
- func (*SessionMock) KickOccupant(roomID jid.Bare, occupantNickname string, reason string) (<-chan bool, <-chan error)
- func (*SessionMock) LeaveRoom(room jid.Bare, nickname string) (<-chan bool, <-chan error)
- func (*SessionMock) Log() coylog.Logger
- func (*SessionMock) ManuallyEndEncryptedChat(jid.Any) error
- func (*SessionMock) NewRoom(jid.Bare) *muc.Room
- func (*SessionMock) PrivateKeys() []otr3.PrivateKey
- func (*SessionMock) PublishEvent(interface{})
- func (*SessionMock) R() *roster.List
- func (*SessionMock) ReloadKeys()
- func (*SessionMock) RemoveContact(string)
- func (*SessionMock) RequestPresenceSubscription(jid.WithoutResource, string) error
- func (s *SessionMock) RequestRoomDiscoInfo(jid.Bare)
- func (*SessionMock) Send(jid.Any, string, bool) error
- func (*SessionMock) SendDirTo(jid.Any, string, func() bool, func(bool)) *sdata.FileTransferControl
- func (*SessionMock) SendFileTo(jid.Any, string, func() bool, func(bool)) *sdata.FileTransferControl
- func (*SessionMock) SendIQError(*data.ClientIQ, interface{})
- func (*SessionMock) SendIQResult(*data.ClientIQ, interface{})
- func (*SessionMock) SendMUCMessage(to, from, body string) error
- func (*SessionMock) SendPing()
- func (*SessionMock) SetCommandManager(otrclient.CommandManager)
- func (*SessionMock) SetConnector(access.Connector)
- func (*SessionMock) SetLastActionTime(time.Time)
- func (*SessionMock) SetSessionEventHandler(access.EventHandler)
- func (*SessionMock) SetWantToBeOnline(bool)
- func (*SessionMock) StartSMP(jid.WithResource, string, string)
- func (*SessionMock) SubmitRoomConfigurationForm(jid.Bare, *muc.RoomConfigForm) (<-chan bool, <-chan error)
- func (*SessionMock) Subscribe(chan<- interface{})
- func (*SessionMock) Timeout(data.Cookie, time.Time)
- func (*SessionMock) UpdateOccupantAffiliation(roomID jid.Bare, occupantNickname string, occupantRealJID jid.Full, ...) (<-chan bool, <-chan error)
- func (*SessionMock) UpdateOccupantRole(jid.Bare, string, mdata.Role, string) (<-chan bool, <-chan error)
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) AbortSMP ¶ added in v0.3.9
func (*SessionMock) AbortSMP(jid.WithResource)
AbortSMP is the implementation for Session interface
func (*SessionMock) ApprovePresenceSubscription ¶
func (*SessionMock) ApprovePresenceSubscription(jid.WithoutResource, 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) CancelRoomConfiguration ¶
func (*SessionMock) CancelRoomConfiguration(jid.Bare) <-chan error
CancelRoomConfiguration 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() otrclient.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() otrclient.ConversationManager
ConversationManager is the implementation for Session interface
func (*SessionMock) CreateInstantRoom ¶
func (*SessionMock) CreateInstantRoom(jid.Bare) <-chan error
CreateInstantRoom is the implementation for session interface
func (*SessionMock) CreateReservedRoom ¶
func (*SessionMock) CreateReservedRoom(jid.Bare) (<-chan *muc.RoomConfigForm, <-chan error)
CreateReservedRoom is the implementation for session interface
func (*SessionMock) CreateSymmetricKeyFor ¶ added in v0.3.9
func (*SessionMock) CreateSymmetricKeyFor(jid.Any) []byte
CreateSymmetricKeyFor is the implementation for Session interface
func (*SessionMock) DenyPresenceSubscription ¶
func (*SessionMock) DenyPresenceSubscription(jid.WithoutResource, string) error
DenyPresenceSubscription is the implementation for Session interface
func (*SessionMock) DestroyRoom ¶
DestroyRoom 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) FinishSMP ¶ added in v0.3.9
func (*SessionMock) FinishSMP(jid.WithResource, string)
FinishSMP is the implementation for Session interface
func (*SessionMock) GetAndWipeSymmetricKeyFor ¶
func (*SessionMock) GetAndWipeSymmetricKeyFor(jid.Any) []byte
GetAndWipeSymmetricKeyFor is the implementation for Session interface
func (*SessionMock) GetChatServices ¶
GetChatServices is the implementation for session interface
func (*SessionMock) GetConfig ¶
func (*SessionMock) GetConfig() *config.Account
GetConfig is the implementation for Session interface
func (*SessionMock) GetInMemoryLog ¶ added in v0.3.7
func (*SessionMock) GetInMemoryLog() *bytes.Buffer
GetInMemoryLog is the implementation for Session interface
func (*SessionMock) GetRoomListing ¶
func (s *SessionMock) GetRoomListing(jid.Bare, chan<- *muc.RoomListing)
GetRoomListing is the implementation for Session interface
func (*SessionMock) GetRooms ¶
func (*SessionMock) GetRooms(jid.Domain, string) (<-chan *muc.RoomListing, <-chan *muc.ServiceListing, <-chan error)
GetRooms 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(jid.WithoutResource, bool)
HandleConfirmOrDeny is the implementation for Session interface
func (*SessionMock) HasRoom ¶
func (s *SessionMock) HasRoom(jid.Bare, chan<- *muc.RoomListing) (<-chan bool, <-chan error)
HasRoom 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) KickOccupant ¶
func (*SessionMock) KickOccupant(roomID jid.Bare, occupantNickname string, reason string) (<-chan bool, <-chan error)
KickOccupant is the implementation for session interface
func (*SessionMock) Log ¶
func (*SessionMock) Log() coylog.Logger
Log is the implementation for session interface
func (*SessionMock) ManuallyEndEncryptedChat ¶ added in v0.3.7
func (*SessionMock) ManuallyEndEncryptedChat(jid.Any) error
ManuallyEndEncryptedChat is the implementation for Session interface
func (*SessionMock) NewRoom ¶
func (*SessionMock) NewRoom(jid.Bare) *muc.Room
NewRoom is the implementation for session interface
func (*SessionMock) PrivateKeys ¶
func (*SessionMock) PrivateKeys() []otr3.PrivateKey
PrivateKeys is the implementation for Session interface
func (*SessionMock) PublishEvent ¶ added in v0.3.9
func (*SessionMock) PublishEvent(interface{})
PublishEvent 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(jid.WithoutResource, string) error
RequestPresenceSubscription is the implementation for Session interface
func (*SessionMock) RequestRoomDiscoInfo ¶
func (s *SessionMock) RequestRoomDiscoInfo(jid.Bare)
RequestRoomDiscoInfo is the implementation for Session interface
func (*SessionMock) SendDirTo ¶ added in v0.3.9
func (*SessionMock) SendDirTo(jid.Any, string, func() bool, func(bool)) *sdata.FileTransferControl
SendDirTo is the implementation for Session interface
func (*SessionMock) SendFileTo ¶ added in v0.3.9
func (*SessionMock) SendFileTo(jid.Any, string, func() bool, func(bool)) *sdata.FileTransferControl
SendFileTo is the implementation for Session interface
func (*SessionMock) SendIQError ¶ added in v0.3.9
func (*SessionMock) SendIQError(*data.ClientIQ, interface{})
SendIQError is the implementation for Session interface
func (*SessionMock) SendIQResult ¶ added in v0.3.9
func (*SessionMock) SendIQResult(*data.ClientIQ, interface{})
SendIQResult is the implementation for Session interface
func (*SessionMock) SendMUCMessage ¶
func (*SessionMock) SendMUCMessage(to, from, body string) error
SendMUCMessage 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(otrclient.CommandManager)
SetCommandManager 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) StartSMP ¶ added in v0.3.9
func (*SessionMock) StartSMP(jid.WithResource, string, string)
StartSMP is the implementation for Session interface
func (*SessionMock) SubmitRoomConfigurationForm ¶
func (*SessionMock) SubmitRoomConfigurationForm(jid.Bare, *muc.RoomConfigForm) (<-chan bool, <-chan error)
SubmitRoomConfigurationForm is the implementation for session interface
func (*SessionMock) Subscribe ¶
func (*SessionMock) Subscribe(chan<- interface{})
Subscribe is the implementation for Session interface
func (*SessionMock) Timeout ¶
func (*SessionMock) Timeout(data.Cookie, time.Time)
Timeout is the implementation for Session interface
func (*SessionMock) UpdateOccupantAffiliation ¶
func (*SessionMock) UpdateOccupantAffiliation(roomID jid.Bare, occupantNickname string, occupantRealJID jid.Full, affiliation mdata.Affiliation, reason string) (<-chan bool, <-chan error)
UpdateOccupantAffiliation is the implementation for session interface