This commit is contained in:
DeniskaRediska committed 2019-10-24 16:31:08 +03:00
1 parent 4fdf7c0ca2
commit 5b115440f1
12 files changed
+115 -89

No files matched your search

+6 -7
View File
@@ -7,16 +7,15 @@ import (
var Error errorHelper
func (errorHelper) Create(status codes.Code) ErrorDescription {
type errorHelper struct{}
func (errorHelper) create(status codes.Code) ErrorDescription {
return ErrorDescription{grpcStatus: status}
}
type (
errorHelper struct{}
ErrorDescription struct {
grpcStatus codes.Code
}
)
type ErrorDescription struct {
grpcStatus codes.Code
}
func (e ErrorDescription) Error() string {
return fmt.Sprintf("%v", e)