func (inpack *inPack) SendData(data []byte) {
	outpack := getOutPack()
	outpack.dataType = rt.PT_WorkData
	hl := len(inpack.handle)
	l := hl + len(data) + 1
	outpack.data = rt.NewBuffer(l)
	copy(outpack.data, []byte(inpack.handle))
	copy(outpack.data[hl+1:], data)
	inpack.a.write(outpack)
}
Send some datas to client.
Using this in a job's executing.
package worker
import (
	"bytes"
	"encoding/binary"
	"fmt"
	"strconv"
	rt "github.com/appscode/g2/pkg/runtime"
)
type inPack struct {
	dataType             rt.PT
	data                 []byte
	handle, uniqueId, fn string
	a                    *agent
}
func getInPack() *inPack {
	return &inPack{}
}
func (inpack *inPack) Data() []byte {
	return inpack.data
}
func (inpack *inPack) Fn() string {
	return inpack.fn
}
func (inpack *inPack) Handle() string {
	return inpack.handle
}
func (inpack *inPack) UniqueId() string {
	return inpack.uniqueId
}
func (inpack *inPack) Err() error {
	if inpack.dataType == rt.PT_Error {
		return getError(inpack.data)
	}
	return nil
}