1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-05-28 04:38:08 +08:00
Files
kubo/commands/request.go
2014-10-20 07:04:51 -07:00

23 lines
411 B
Go

package commands
// Request represents a call to a command from a consumer
type Request struct {
options map[string]interface{}
arguments []string
}
func (r *Request) Option(name string) interface{} {
return r.options[name]
}
func (r *Request) Arguments() []string {
return r.arguments
}
func NewRequest() *Request {
return &Request{
make(map[string]interface{}),
make([]string, 0),
}
}