Documentation ¶
Index ¶
- Variables
- func AssertOneRow(l int) error
- func BytesToString(b []byte) string
- func Logf(s string, args ...interface{})
- func RetryBackoff(retry int, minBackoff, maxBackoff time.Duration) time.Duration
- func SliceNextElem(v reflect.Value) reflect.Value
- func StringToBytes(s string) []byte
- func ToExported(s string) string
- func ToUpper(s string) string
- func Underscore(s string) string
- type Error
- type PGError
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrMultiRows = errors.New("pg: multiple rows in result set")
View Source
var ErrNoRows = errors.New("pg: no rows in result set")
View Source
var Logger *log.Logger
Functions ¶
func AssertOneRow ¶
func BytesToString ¶
func RetryBackoff ¶
Retry backoff with jitter sleep to prevent overloaded conditions during intervals https://www.awsarchitectureblog.com/2015/03/backoff.html
func StringToBytes ¶
func ToExported ¶
func Underscore ¶
Underscore converts "CamelCasedString" to "camel_cased_string".
Types ¶
type PGError ¶
type PGError struct {
// contains filtered or unexported fields
}
func NewPGError ¶
func (PGError) IntegrityViolation ¶
Click to show internal directories.
Click to hide internal directories.