Commit 2cc804ec authored by Matt Bell's avatar Matt Bell

commands: Added Request#SetStream

parent addad78b
......@@ -16,6 +16,7 @@ type Request interface {
SetOption(name string, val interface{})
Arguments() []string
Stream() io.Reader
SetStream(io.Reader)
ConvertOptions(options map[string]Option) error
}
......@@ -53,6 +54,11 @@ func (r *request) Stream() io.Reader {
return r.in
}
// SetStream sets the value of the input stream Reader
func (r *request) SetStream(in io.Reader) {
r.in = in
}
type converter func(string) (interface{}, error)
var converters = map[reflect.Kind]converter{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment