|
3fc9bedb0b
|
commands: Made Std{in|out|err} accessible in Request/Response
|
2015-01-23 18:29:31 -08:00 |
|
|
6adebfad11
|
commands: Added Length field to Response
squash! commands: Added Length field to Response
commands/http: client: Fixed error on unset length
|
2015-01-23 18:29:29 -08:00 |
|
|
31ae178078
|
commands: Support outputting <-chan interface{}
|
2015-01-21 04:28:02 +00:00 |
|
|
2816ed038c
|
commands: Fixed panic when marshalers gave nil output
|
2015-01-06 15:55:18 -08:00 |
|
|
0452a5f75e
|
commands: Made default JSON marshaler support channel output
|
2015-01-06 15:53:48 -08:00 |
|
|
fd40702f73
|
commands: Changed Marshaler to return a io.Reader instead of a []byte
core/commands: Refactored command marshalers
|
2015-01-06 15:53:42 -08:00 |
|
|
047d2e2d62
|
cmd2: Marshaller -> Marshaler (see golang/encoding)
Also:
- map[cmds.EncodingType]cmds.Marshaller -> MarshalMap
cc @mappum @maybebtc
|
2014-11-14 03:20:05 -08:00 |
|
|
7daf888902
|
cmds2: handle error return codes
|
2014-11-14 03:20:03 -08:00 |
|
|
69374b30be
|
refactor(commands/optionvalue) use
@mappum this optionvalue is a really great abstraction. It makes
maintenance super simple!
@jbenet @whyrusleeping
|
2014-11-14 03:19:57 -08:00 |
|
|
f1fc26e70b
|
commands: Removed a fmt.Println
|
2014-11-14 03:17:38 -08:00 |
|
|
3e507f7c9f
|
commands: Changed option accessor API (Request#Option now returns an OptionValue)
|
2014-11-14 03:17:38 -08:00 |
|
|
20285ead82
|
commands: Indent JSON-marshalled Response output
|
2014-11-14 03:17:34 -08:00 |
|
|
db9c7f7c29
|
commands: Fixed panic when trying to marshal without a command set in request
|
2014-11-04 02:04:51 -08:00 |
|
|
2a1116cec8
|
commands: Allow overriding marshaller for any encoding type
|
2014-11-04 02:04:50 -08:00 |
|
|
33ad56e6d0
|
commands: Safer type coercion when choosing marshaller
|
2014-11-04 02:04:50 -08:00 |
|
|
0149f65c6c
|
commands: Replaced 'Formatter' with 'Marshaller'
|
2014-11-04 02:04:50 -08:00 |
|
|
f6c38882f0
|
commands: Return a reader in a Response#Reader method, instead of making Response implementing io.Reader
|
2014-11-04 02:04:49 -08:00 |
|
|
69a56de040
|
commands: Renamed Response#Value to Response#Output
|
2014-11-04 02:04:49 -08:00 |
|
|
b61cfd9224
|
commands: Don't error when marshalling empty Responses
|
2014-11-04 02:04:47 -08:00 |
|
|
b54801cc10
|
commands: Added plaintext marshalling to Response#Marshal()
|
2014-11-04 02:04:46 -08:00 |
|
|
e8b37acda3
|
commands: Simplified Error string output
|
2014-11-04 02:04:44 -08:00 |
|
|
3cebd2176e
|
commands: Made Response implement io.Reader
|
2014-11-04 02:04:44 -08:00 |
|
|
94683bb6b2
|
commands: Removed unused output stream field from Response
|
2014-11-04 02:04:43 -08:00 |
|
|
19e5fbae70
|
commands: Made Response#Error return an *Error instead of an error
|
2014-11-04 02:04:43 -08:00 |
|
|
d464e3d143
|
commands: go fmt
|
2014-10-21 18:16:04 -07:00 |
|
|
dd84a3eb44
|
commands: Got rid of Response#Stream() in favor of setting value to a io.Reader
|
2014-10-21 16:15:06 -07:00 |
|
|
b65a5bacbe
|
commands: Made Error implement error interface
|
2014-10-21 15:25:47 -07:00 |
|
|
7bd7ed6d52
|
commands: Added output stream field to Response
|
2014-10-20 14:38:36 -07:00 |
|
|
b10fc2cc50
|
turned req + res into interfaces
|
2014-10-20 11:49:07 -07:00 |
|
|
bbef82f4fa
|
"enc" -> EncShort
|
2014-10-20 08:00:28 -07:00 |
|
|
7673ce6f65
|
fmt, lint, + vet commands/
|
2014-10-20 07:53:14 -07:00 |
|
|
e5e121a6b1
|
commands: Made Request#Option also return an existence bool
|
2014-10-20 07:04:54 -07:00 |
|
|
43670971d8
|
commands: Formatted code
|
2014-10-20 07:04:52 -07:00 |
|
|
aa592cec80
|
commands: Added error marshalling to Response
|
2014-10-20 07:04:51 -07:00 |
|
|
a3a843759b
|
commands: Added marshalling to Response
|
2014-10-20 07:04:51 -07:00 |
|
|
95b0dd29f8
|
commands: Added an Error struct for creating marshallable errors
|
2014-10-20 07:04:51 -07:00 |
|
|
f31fd53df9
|
commands: Added Response
|
2014-10-20 07:04:50 -07:00 |
|