Documentation ¶
Overview ¶
Package errdetails provides error detail for grpc status
Index ¶
- Constants
- func DecodeDetail(detail *types.Any) (data interface{}, err error)
- func DecodeDetails(details ...*types.Any) (ds []interface{}, err error)
- func DecodeDetailsToString(details ...*types.Any) (msg string, err error)
- func Serialize(objs ...interface{}) string
- type BadRequest
- type BadRequestFieldViolation
- type DebugInfo
- type ErrorDetails
- type ErrorInfo
- type Help
- type HelpLink
- type LocalizedMessage
- type PreconditionFailure
- type PreconditionFailureViolation
- type QuotaFailure
- type QuotaFailureViolation
- type RequestInfo
- type ResourceInfo
- type RetryInfo
Constants ¶
View Source
const ( ValdResourceOwner = "vdaas.org vald team <vald@vdaas.org>" ValdGRPCResourceTypePrefix = "github.com/vdaas/vald/apis/grpc/v1" )
Variables ¶
This section is empty.
Functions ¶
func DecodeDetail ¶
func DecodeDetails ¶
func DecodeDetailsToString ¶
Types ¶
type BadRequest ¶
type BadRequest = errdetails.BadRequest
type BadRequestFieldViolation ¶
type BadRequestFieldViolation = errdetails.BadRequest_FieldViolation
type DebugInfo ¶
type DebugInfo = errdetails.DebugInfo
type ErrorDetails ¶
type ErrorDetails struct { Code int32 `json:"code,omitempty"` Message string `json:"message,omitempty"` Error error `json:"error,omitempty"` Details []*ErrorDetails `json:"details,omitempty"` }
func DecodeErrorDetails ¶
func DecodeErrorDetails(objs ...interface{}) (es []*ErrorDetails)
func (*ErrorDetails) String ¶
func (e *ErrorDetails) String() string
type ErrorInfo ¶
type ErrorInfo = errdetails.ErrorInfo
type Help ¶
type Help = errdetails.Help
type HelpLink ¶
type HelpLink = errdetails.Help_Link
type LocalizedMessage ¶
type LocalizedMessage = errdetails.LocalizedMessage
type PreconditionFailure ¶
type PreconditionFailure = errdetails.PreconditionFailure
type PreconditionFailureViolation ¶
type PreconditionFailureViolation = errdetails.PreconditionFailure_Violation
type QuotaFailure ¶
type QuotaFailure = errdetails.QuotaFailure
type QuotaFailureViolation ¶
type QuotaFailureViolation = errdetails.QuotaFailure_Violation
type RequestInfo ¶
type RequestInfo = errdetails.RequestInfo
type ResourceInfo ¶
type ResourceInfo = errdetails.ResourceInfo
type RetryInfo ¶
type RetryInfo = errdetails.RetryInfo
Click to show internal directories.
Click to hide internal directories.