Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature List #1

Open
taowen opened this issue Jan 19, 2018 · 0 comments
Open

Feature List #1

taowen opened this issue Jan 19, 2018 · 0 comments

Comments

@taowen
Copy link
Contributor

taowen commented Jan 19, 2018

Protocol

Binary Compact
Decode []byte Yes Yes
Decode io.Reader Yes TODO
Encode Yes Yes

API Styles

  • Iterator/Stream: low level spi
  • Object: decode/encode with generic object model ([]interface{}, map[interface{}]interface{}, map[protocol.FieldId]interface{})
  • Static codegen: generate code to decode/encode, to support object binding
  • Dynamic codegen: generate the code in the runtime, to support object binding
Simple Value List Map Struct Pointer Message RawMessage
Iterator / Decode Yes Yes Yes Yes N/A Yes Yes
Stream / Encode Yes Yes Yes Yes N/A Yes Yes
Object / Decode Yes Yes Yes Yes N/A Yes N/A
Object / Encode Yes Yes Yes Yes N/A Yes N/A
Static / Decode Yes Yes Yes Yes Yes N/A TODO
Static / Encode Yes Yes Yes Yes Yes N/A TODO
Dynamic / Decode Yes Yes Yes Yes Yes N/A TODO
Dynamic / Encode Yes Yes Yes Yes Yes N/A TODO
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant