Versions in this module Expand all Collapse all v0 v0.1.0 Dec 14, 2018 Changes in this version + func MethodTagToString(mt MethodTag) string + func RequestID(ctx context.Context) json.RawMessage + type Error struct + Code int + Data interface{} + Message string + func ErrInternalError(data interface{}) *Error + func ErrInvalidParams(data interface{}) *Error + func ErrInvalidRequest(data interface{}) *Error + func ErrMethodNotFound(data interface{}) *Error + func ErrParseError(data interface{}) *Error + func (e Error) Error() string + type Method func(ctx context.Context, in io.Reader) (proto.Message, error) + type MethodTag struct + Method string + Service string + func MethodTagFromString(method string) MethodTag + type Repo struct + Marshaler *jsonpb.Marshaler + func New() *Repo + func (repo *Repo) RegisterService(service Service) + func (repo *Repo) ServeHTTP(w http.ResponseWriter, r *http.Request) + type Service interface + Exec func(ctx context.Context, method string, in io.Reader) (proto.Message, error) + JsonrpcService func() + Methods func() []string