Documentation ¶
Index ¶
Constants ¶
View Source
const (
GO_PG_PACKAGE = "/github.com/go-pg"
)
Variables ¶
This section is empty.
Functions ¶
func ConnByContainer ¶
Get postgres connection by container
Types ¶
type QueryLogger ¶
type QueryLogger struct {
// contains filtered or unexported fields
}
Query log model contains method names and mux for locking
var (
QL *QueryLogger
)
func (*QueryLogger) AddMethod ¶
func (q *QueryLogger) AddMethod(methodName string)
Add methodName in queryLogger model
func (*QueryLogger) RemoveMethod ¶
func (q *QueryLogger) RemoveMethod(methodName string)
Remove methodName from queryLogger model
Click to show internal directories.
Click to hide internal directories.