Documentation
¶
Index ¶
- Constants
- Variables
- type ErrorStack
- func (es *ErrorStack) Copy() *ErrorStack
- func (es *ErrorStack) Error() string
- func (es *ErrorStack) LatestError() error
- func (es *ErrorStack) MarshalJSON() ([]byte, error)
- func (es *ErrorStack) OriginalError() error
- func (es *ErrorStack) Push(err error)
- func (es *ErrorStack) UnmarshalJSON(bstr []byte) error
- type NXDomainError
- type NoNameServerError
- type ServfailError
- type TimeoutError
Constants ¶
View Source
const ( UDP_TRANSPORT = 17 TCP_TRANSPORT = 6 )
Variables ¶
View Source
var PROTO_TO_STR = map[int]string{ TCP_TRANSPORT: "TCP", UDP_TRANSPORT: "UDP", }
View Source
var STR_TO_PROTO = map[string]int{ "": UDP_TRANSPORT, "TCP": TCP_TRANSPORT, "tcp": TCP_TRANSPORT, "UDP": UDP_TRANSPORT, "udp": UDP_TRANSPORT, }
Functions ¶
This section is empty.
Types ¶
type ErrorStack ¶
type ErrorStack struct {
// contains filtered or unexported fields
}
func NewErrorStack ¶
func NewErrorStack(err error) *ErrorStack
func (*ErrorStack) Copy ¶
func (es *ErrorStack) Copy() *ErrorStack
func (*ErrorStack) Error ¶
func (es *ErrorStack) Error() string
func (*ErrorStack) LatestError ¶
func (es *ErrorStack) LatestError() error
func (*ErrorStack) MarshalJSON ¶
func (es *ErrorStack) MarshalJSON() ([]byte, error)
func (*ErrorStack) OriginalError ¶
func (es *ErrorStack) OriginalError() error
func (*ErrorStack) Push ¶
func (es *ErrorStack) Push(err error)
func (*ErrorStack) UnmarshalJSON ¶
func (es *ErrorStack) UnmarshalJSON(bstr []byte) error
type NXDomainError ¶
type NXDomainError struct {
// contains filtered or unexported fields
}
func NewNXDomainError ¶
func (*NXDomainError) Error ¶
func (nx *NXDomainError) Error() string
func (*NXDomainError) MarshalJSON ¶
func (nx *NXDomainError) MarshalJSON() ([]byte, error)
func (*NXDomainError) UnmarshalJSON ¶
func (nx *NXDomainError) UnmarshalJSON(bstr []byte) error
type NoNameServerError ¶
type NoNameServerError struct {
// contains filtered or unexported fields
}
func NewNoNameServerError ¶
func NewNoNameServerError(name string) *NoNameServerError
func (*NoNameServerError) Error ¶
func (ne *NoNameServerError) Error() string
func (*NoNameServerError) MarshalJSON ¶
func (ne *NoNameServerError) MarshalJSON() ([]byte, error)
func (*NoNameServerError) UnmarshalJSON ¶
func (ne *NoNameServerError) UnmarshalJSON(bstr []byte) error
type ServfailError ¶
type ServfailError struct {
// contains filtered or unexported fields
}
func NewServfailError ¶
func (*ServfailError) Error ¶
func (se *ServfailError) Error() string
func (*ServfailError) MarshalJSON ¶
func (se *ServfailError) MarshalJSON() ([]byte, error)
func (*ServfailError) UnmarshalJSON ¶
func (se *ServfailError) UnmarshalJSON(bstr []byte) error
type TimeoutError ¶
type TimeoutError struct {
// contains filtered or unexported fields
}
func NewTimeoutError ¶
func NewTimeoutError(operation, topic string) *TimeoutError
func (*TimeoutError) Error ¶
func (te *TimeoutError) Error() string
Click to show internal directories.
Click to hide internal directories.