You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
509 B

9 years ago
9 years ago
9 years ago
  1. package types
  2. type RetCode uint
  3. // Reserved return codes
  4. const (
  5. RetCodeOK RetCode = 0
  6. RetCodeInternalError RetCode = 1
  7. RetCodeUnauthorized RetCode = 2
  8. RetCodeInsufficientFees RetCode = 3
  9. RetCodeUnknownRequest RetCode = 4
  10. RetCodeEncodingError RetCode = 5
  11. RetCodeBadNonce RetCode = 6
  12. )
  13. //go:generate stringer -type=RetCode
  14. // NOTE: The previous comment generates r.String().
  15. // To run it, `go get golang.org/x/tools/cmd/stringer`
  16. // and `go generate` in tmsp/types