ref
This commit is contained in:
1 parent
4fdf7c0ca2
commit
5b115440f1
12 files changed
+115
-89
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user