protocol

package
v0.0.0-...-c1ebfd7 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2019 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KeywordAndArgsInput

type KeywordAndArgsInput struct {
	KeywordName     string
	KeywordAguments []interface{}
}

type KeywordArgumentsReturnValue

type KeywordArgumentsReturnValue struct {
	KeywordAguments []interface{}
}

type KeywordDocumentationReturnValue

type KeywordDocumentationReturnValue struct {
	KeywordDocumentation string
}

type KeywordInput

type KeywordInput struct {
	KeywordName string
}

type KeywordNamesReturnValue

type KeywordNamesReturnValue struct {
	Keywords []interface{}
}

type RobotRemoteService

type RobotRemoteService struct{}

func (*RobotRemoteService) GetKeywordArguments

func (h *RobotRemoteService) GetKeywordArguments(r *http.Request, args *KeywordInput, reply *KeywordArgumentsReturnValue) error

sample XML-RPC input: <methodCall><methodName>GetKeywordArguments</methodName><params><param><value><string>KeywordName</string></value></param></params></methodCall> sample XML-RPC output: <methodResponse><params><param><value><array><data><value><string>arg1</string></value>...</data></array></value></param></params></methodResponse>

func (*RobotRemoteService) GetKeywordDocumentation

func (h *RobotRemoteService) GetKeywordDocumentation(r *http.Request, args *KeywordInput, reply *KeywordDocumentationReturnValue) error

sample XML-RPC input: <methodCall><methodName>GetKeywordDocumentation</methodName><params><param><value><string>KeywordName</string></value></param></params></methodCall> sample XML-RPC output: <methodResponse><params><param><value><string>godoc text</string></value></param></params></methodResponse>

func (*RobotRemoteService) GetKeywordNames

func (h *RobotRemoteService) GetKeywordNames(r *http.Request, args *struct{}, reply *KeywordNamesReturnValue) error

sample XML-RPC input: <methodCall><methodName>GetKeywordNames</methodName><params></params></methodCall>

sample XML-RPC output:
* <methodResponse><params><param><value><array><data>
*   <value><string>TruthOfLife</string></value>
*   <value><string>StringsShouldBeEqual</string></value>
*   <value><string>StopRemoteServer</string></value>
* </data></array></value></param></params></methodResponse>

func (*RobotRemoteService) RunKeyword

e.g. sample XML-RPC input
* <methodCall><methodName>RunKeyword</methodName>
*   <params>
*     <param><value><string>KeywordName</string></value></param>
*     <param><value><array><data>
*       <value><string>keyword_arg1</string></value>
*       <value><string>keyword_arg2</string></value>
*     </data></array></value></param>
*   </params></methodCall>
*
* sample XML-RPC output
* <methodResponse>
*   <params>
*     <param>
*       <value><struct>
*         <member>
*           <name>return</name>
*           <value><int>42</int></value>
*         </member>
*         <member>
*           <name>status</name>
*           <value><string>PASS</string></value>
*        </member>
*        <member>
*          <name>output</name>
*          <value><string></string></value>
*        </member>
*        <member>
*          <name>error</name>
*          <value><string></string></value>
*         </member>
*         <member>
*           <name>traceback</name>
*           <value><string></string></value>
*         </member>
*       </struct></value>
*     </param>
*   </params>
* </methodResponse>

this function doesn't fully work yet, see https://github.com/divan/gorilla-xmlrpc/issues/ #16 and 18

func (*RobotRemoteService) StopRemoteServer

func (h *RobotRemoteService) StopRemoteServer()

type RunKeywordReturnValue

type RunKeywordReturnValue struct {
	Return    interface{} `xml:"return"`
	Status    string      `xml:"status"`
	Stdout    string      `xml:"output"`
	Stderr    string      `xml:"error"`
	Traceback string      `xml:"traceback"`
}

Jump to

Keyboard shortcuts

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