Documentation
¶
Index ¶
- Constants
- func BadRequest(ctx context.Context, message string, ...) error
- func Error(ctx context.Context, code codes.Code, message string, details ...proto.Message) error
- func ErrorInfo(ctx context.Context, code codes.Code, message, reason string, ...) error
- func FieldViolation(field, description string) *errdetails.BadRequest_FieldViolation
- func NewStatus(ctx context.Context, code codes.Code, message string, details ...proto.Message) *status.Status
- func RequestIDFromContext(ctx context.Context) string
- func Retryable(ctx context.Context, code codes.Code, message string, delay time.Duration) error
Constants ¶
View Source
const DefaultErrorDomain = "invenlore"
Variables ¶
This section is empty.
Functions ¶
func BadRequest ¶
func BadRequest(ctx context.Context, message string, violations ...*errdetails.BadRequest_FieldViolation) error
func FieldViolation ¶
func FieldViolation(field, description string) *errdetails.BadRequest_FieldViolation
func RequestIDFromContext ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.