1
0
mirror of https://github.com/go-micro/go-micro.git synced 2024-12-24 10:07:04 +02:00

Add error comment

This commit is contained in:
Asim 2016-01-30 21:16:45 +00:00
parent 8edb0c4b06
commit 0bdd3bc1b6

View File

@ -5,6 +5,9 @@ import (
"net/http"
)
// Errors provide a way to return detailed information
// for an RPC request error. The error is normally
// JSON encoded.
type Error struct {
Id string `json:"id"`
Code int32 `json:"code"`