Versions in this module Expand all Collapse all v0 v0.1.0 Aug 7, 2020 Changes in this version + func HTTPHandleFunc(m *Manager) func(w http.ResponseWriter, r *http.Request) + type Error struct + Code ErrorCode + Data interface{} + Message string + func (e *Error) Error() string + type ErrorCode int + type Manager struct + func (m *Manager) Handle(ctx context.Context, r io.Reader, w io.Writer) error + type ManagerBuilder struct + func NewManagerBuilder() *ManagerBuilder + func (mb *ManagerBuilder) Add(name string, h Method) *ManagerBuilder + func (mb *ManagerBuilder) Build() Manager + func (mb *ManagerBuilder) SetTimeout(timeout time.Duration) *ManagerBuilder + type Method interface + Execute func(req *Request, resp *Response) + type Request struct + ID *json.RawMessage + Method string + Params *json.RawMessage + Version string + func (r *Request) Context() context.Context + func (r *Request) ParseParams(v interface{}) *Error + func (r *Request) WithContext(ctx context.Context) *Request + type Response struct + Error *Error + ID *json.RawMessage + Result interface{} + Version string