예제 #1
0
// NewRequestBin returns a new Request instance. mainly used by the shared library.
func (i *Input) NewRequestBin(function string, parameter []byte, ctype messages.CallType) (req *messages.Request) {
	req = messages.NewEncodedRequest(i.cfg.UUID(), function, ctype, parameter)
	return
}
예제 #2
0
// EmitEncoded does the same as Emit, but takes already encoded return parameters. Used mainly by the shared library.
func (o *Output) EmitEncoded(function string, inparams []byte, outparams []byte) {
	req := messages.NewEncodedRequest("", function, messages.TRIGGER, inparams)
	o.ReplyEncoded(req, outparams)
}