mocks

package
v0.3.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 22, 2019 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

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) Close

func (*SessionMock) Close()

Close is the implementation for Session interface

func (*SessionMock) CommandManager

func (*SessionMock) CommandManager() otr_client.CommandManager

CommandManager is the implementation for Session interface

func (*SessionMock) Config

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() otr_client.ConversationManager

ConversationManager 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) DisplayName added in v0.3.6

func (*SessionMock) DisplayName() string

DisplayName is the implementation for Session interface

func (*SessionMock) EncryptAndSendTo

func (*SessionMock) EncryptAndSendTo(jid.Any, string) (int, bool, error)

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) 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) 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) Info added in v0.3.9

func (*SessionMock) Info(string)

Info 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(jid.Any) error

ManuallyEndEncryptedChat 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) Send

func (*SessionMock) Send(jid.Any, string) error

Send is the implementation for Session interface

func (*SessionMock) SendDirTo added in v0.3.9

SendDirTo is the implementation for Session interface

func (*SessionMock) SendFileTo added in v0.3.9

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) SendPing added in v0.3.6

func (*SessionMock) SendPing()

SendPing is the implementation for Session interface

func (*SessionMock) SetCommandManager

func (*SessionMock) SetCommandManager(otr_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) StartSMP added in v0.3.9

func (*SessionMock) StartSMP(jid.WithResource, string, string)

StartSMP 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) Warn added in v0.3.9

func (*SessionMock) Warn(string)

Warn is the implementation for Session interface

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL