Documentation
¶
Index ¶
Constants ¶
View Source
const ( Address = "0.0.0.0" Port = 9765 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StatusError ¶
StatusError represents an error with an associated HTTP status code.
func NewStatusError ¶
func NewStatusError(ctx context.Context, code int, err error) StatusError
func (StatusError) Error ¶
func (statusErr StatusError) Error() string
Allows StatusError to satisfy the error interface.
func (StatusError) MarshalJSON ¶
func (statusErr StatusError) MarshalJSON() ([]byte, error)
func (StatusError) Status ¶
func (statusErr StatusError) Status() int
Status returns our HTTP status code.
func (StatusError) String ¶
func (statusErr StatusError) String() string
String returns our HTTP status code.
Click to show internal directories.
Click to hide internal directories.