@cryptotaxi247 / kubo / commits / 15b7388c0

commands: Request struct

Matt Bell committed Oct 8, 2014 at 14:29 UTC 15b7388c0e5fc9c6b8d42ea00d0ac209fc82262f
1 file changed +20
commands/request.go new
+20
@@ -0,0 +1,20 @@
1 +package commands
2 +
3 +// Request represents a call to a command from a consumer
4 +type Request struct {
5 + options map[string]interface{}
6 +}
7 +
8 +/*func (r *Request) Option(name string) interface{} {
9 +
10 +}
11 +
12 +func (r *Request) Arguments() interface{} {
13 +
14 +}*/
15 +
16 +func NewRequest() *Request {
17 + return &Request{
18 + make(map[string]interface{}),
19 + }
20 +}