Documentation
¶
Index ¶
- Variables
- type Report
- func (report *Report) Error(r interface{}, err error)
- func (report *Report) FileWithLineNum() string
- func (report *Report) FilesWithLineNum() (out []string)
- func (report *Report) Message(subject, body string)
- func (report *Report) Sql(query string, params ...interface{})
- func (report *Report) SqlError(r interface{}, err error, query string, params ...interface{})
- type ReportProvider
Constants ¶
This section is empty.
Variables ¶
View Source
var ( QueryTimeWarning = 200 * time.Millisecond // Высылает предупреждение, если время выполнения запроса превышает установленное QueryDeadline = 5 * time.Second // Прерывает запрос, освобождая соединение, если время выполнения запроса превышает установленное ErrReported = errors.New(`error has been reported`) ErrNotFound = errors.New("not found") ErrContext = errors.New(`context canceled`) ErrInternal = errors.New("internal server error") )
Functions ¶
This section is empty.
Types ¶
type Report ¶
type Report struct {
// contains filtered or unexported fields
}
func (*Report) FileWithLineNum ¶
func (*Report) FilesWithLineNum ¶
Click to show internal directories.
Click to hide internal directories.