Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BasicResponse ¶
type BasicResponse struct {
// contains filtered or unexported fields
}
BasicResponse
When embedded into a Response object, this wil provide error handling functionality
func (BasicResponse) Failed ¶
func (b BasicResponse) Failed() error
Failed
Implements kitDefaults.Failer
func (*BasicResponse) NewCode ¶
func (b *BasicResponse) NewCode(code int)
func (*BasicResponse) NewError ¶
func (b *BasicResponse) NewError(code int, format string, vars ...interface{})
NewError
Use this function when it is necessary to indicate an error result for business logic
func (BasicResponse) StatusCode ¶
func (b BasicResponse) StatusCode() int
StatusCode
Returns the status code set by the NewError method
type ExpandedLogging ¶
type ExpandedLogging struct {
// contains filtered or unexported fields
}
ExpandedLogging
Added to a response, should enable additional request-scoped log values
func (*ExpandedLogging) GetAll ¶
func (l *ExpandedLogging) GetAll() map[string]interface{}
GetAll
creates defensive copy of the underlying map
func (*ExpandedLogging) Log ¶
func (l *ExpandedLogging) Log(values ...interface{})
Log
create a new log entry to be traversed later
type ExtendedLog ¶
type ExtendedLog interface {
GetAll() map[string]interface{}
}
Click to show internal directories.
Click to hide internal directories.