Versions in this module Expand all Collapse all v0 v0.1.2 Sep 20, 2024 Changes in this version + func IsServiceError(err error) bool + type ServiceError struct + Code string + Description string + Details string + func AsServiceError(err error) (ServiceError, bool) + func (e ServiceError) Error() string + func (e ServiceError) Is(target error) bool v0.1.1 Sep 18, 2024 Changes in this version + var ErrMarshallingFailed = errors.New("Failed to marshal proto message") + var ErrUnmarshallingFailed = errors.New("Failed to unmarshal proto message") + type DoneHandler interface + Done func(service micro.Service) + type ErrHandler interface + Err func(service micro.Service, natsErr *micro.NATSError) + type ServerError struct + Code string + Description string + Headers map[string][]string + Wrapped error + func NewServerErr(code, description string) ServerError + func WrapServerErr(err error, code, description string) ServerError + func (n ServerError) AddHeader(header, value string) ServerError + func (n ServerError) Cause() error + func (n ServerError) Error() string + func (n ServerError) GetHeaders() micro.Headers + func (n ServerError) GetOptHeaders() micro.RespondOpt + func (n ServerError) GetWrapped() []byte + func (n ServerError) SetHeader(header, value string) ServerError + func (n ServerError) WithHeaders(headers map[string][]string) error + type StatsHandler interface + Stats func(endpoint *micro.Endpoint) any v0.1.0 Sep 2, 2024