testconn

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TestConn

type TestConn struct {
	AudioSends  [][]byte
	ErrorOnSend bool
	// contains filtered or unexported fields
}

func NewTestConn

func NewTestConn() *TestConn

func (*TestConn) Close

func (c *TestConn) Close() error

func (*TestConn) CloseSend

func (c *TestConn) CloseSend() error

func (*TestConn) SendAudio

func (c *TestConn) SendAudio(buf []byte) error

func (*TestConn) TriggerResponse

func (c *TestConn) TriggerResponse(obj interface{}, err error)

func (*TestConn) WaitForResponse

func (c *TestConn) WaitForResponse() (interface{}, error)

Jump to

Keyboard shortcuts

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