Commit a2e271ac authored by Matt Bell's avatar Matt Bell Committed by Juan Batiz-Benet

commands: Added basic methods to Request

parent 5e30fd47
...@@ -3,18 +3,20 @@ package commands ...@@ -3,18 +3,20 @@ package commands
// Request represents a call to a command from a consumer // Request represents a call to a command from a consumer
type Request struct { type Request struct {
options map[string]interface{} options map[string]interface{}
arguments []string
} }
/*func (r *Request) Option(name string) interface{} { func (r *Request) Option(name string) interface{} {
return r.options[name]
} }
func (r *Request) Arguments() interface{} { func (r *Request) Arguments() []string {
return r.arguments
}*/ }
func NewRequest() *Request { func NewRequest() *Request {
return &Request{ return &Request{
make(map[string]interface{}), make(map[string]interface{}),
make([]string, 0),
} }
} }
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