Regularize JSON stuff

This commit is contained in:
Adam Ierymenko 2019-10-02 09:34:44 -07:00
commit c3e0f262d1
No known key found for this signature in database
GPG key ID: C8877CF2D7A5D7F3
13 changed files with 164 additions and 114 deletions

View file

@ -32,3 +32,10 @@ const (
ErrInvalidSignature Err = "invalid signature"
ErrSecretKeyRequired Err = "secret key required"
)
// APIErr is returned by the JSON API when a call fails
type APIErr struct {
Reason string
}
func (e *APIErr) Error() string { return e.Reason }