Documentation ¶
Index ¶
- Constants
- type Bot
- type ExpectError
- type Expr
- type PClient
- func (c *PClient) Connected() bool
- func (c *PClient) Disconnect()
- func (c *PClient) Notify(route string, data []byte) error
- func (c *PClient) ReceivePush(route string, timeout int) (Response, error)
- func (c *PClient) Request(route string, data []byte) (Response, []byte, error)
- func (c *PClient) StartListening()
- type Response
- type SequentialBot
Constants ¶
View Source
const ( MsgResponseType byte = 0x02 MsgPushType byte = 0x03 )
FIXME - constants from internal pitaya package
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bot ¶
type Bot interface { Initialize() error Run() error Finalize() error Connect(...string) error Disconnect() Reconnect() }
Bot defines the interface the bots must implement
type ExpectError ¶
ExpectError ...
func NewExpectError ¶
func NewExpectError(err error, rawData []byte, expect models.ExpectSpec) *ExpectError
NewExpectError ...
func (*ExpectError) Error ¶
func (b *ExpectError) Error() string
type Expr ¶
type Expr string
Expr is the expression which contains the tokens to access the object value
type PClient ¶
type PClient struct {
// contains filtered or unexported fields
}
PClient is a wrapper around pitaya/client. The ideia is to be able to separate request/responses from server pushes
func NewPClient ¶
func NewPClient(host string, useTLS bool, docs string, pushinfo map[string]string) (*PClient, error)
NewPClient is the PCLient constructor
func (*PClient) ReceivePush ¶
ReceivePush ...
type Response ¶
type Response interface{}
Response is the response received from the pitaya server being tested
type SequentialBot ¶
type SequentialBot struct {
// contains filtered or unexported fields
}
SequentialBot defines the struct for the sequential bot that is going to run
func (*SequentialBot) Finalize ¶
func (b *SequentialBot) Finalize() error
Finalize finalizes the bot
func (*SequentialBot) Initialize ¶
func (b *SequentialBot) Initialize() error
Initialize initializes the bot
Click to show internal directories.
Click to hide internal directories.