Documentation ¶
Index ¶
- type ExampleRequest
- type ExampleResponse
- type Joints
- type Message
- func (message *Message) Build(response interface{}) []byte
- func (message *Message) BuildM(response interface{}) *Message
- func (message *Message) Pack() []byte
- func (message *Message) Request(respChan string) *Message
- func (message *Message) Response() *Message
- func (message *Message) ResponseMulti(multi bool) *Message
- func (message *Message) Unpack(data []byte) error
- type MessageType
- type Pose
- type Result
- type ResultType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExampleRequest ¶
type ExampleRequest struct { }
func (*ExampleRequest) Init ¶
func (exampleRequest *ExampleRequest) Init() *ExampleRequest
func (*ExampleRequest) Pack ¶
func (exampleRequest *ExampleRequest) Pack() []byte
func (*ExampleRequest) Unpack ¶
func (exampleRequest *ExampleRequest) Unpack(data []byte) error
type ExampleResponse ¶
type ExampleResponse struct {
Result
}
func (*ExampleResponse) Failure ¶
func (exampleResponse *ExampleResponse) Failure(reason string) *ExampleResponse
func (*ExampleResponse) Pack ¶
func (exampleResponse *ExampleResponse) Pack() []byte
func (*ExampleResponse) Success ¶
func (exampleResponse *ExampleResponse) Success() *ExampleResponse
func (*ExampleResponse) Unpack ¶
func (exampleResponse *ExampleResponse) Unpack(data []byte) error
type Joints ¶
type Message ¶
type Message struct { Type MessageType Data []byte RespChan string Multi bool }
func (*Message) ResponseMulti ¶
type MessageType ¶
type MessageType int
const ( ExampleRequestMessage MessageType = 1 ExampleResponseMessage MessageType = 2 JointsMessage MessageType = 3 PoseMessage MessageType = 4 )
type Result ¶
type Result struct { Type ResultType Text string }
type ResultType ¶
type ResultType int
const ( SuccessResult ResultType = 1 FailureResult ResultType = 2 UnknownResult ResultType = 99 )
Click to show internal directories.
Click to hide internal directories.