Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Cache ¶ added in v0.2.0
type Cache struct {
// contains filtered or unexported fields
}
func NewCache ¶ added in v0.2.0
func NewCache(config *Configuration) *Cache
type CacheMethod ¶ added in v0.0.19
type CacheMethod func() (interface{}, error)
CacheMethod generic cacheable function
type Configuration ¶ added in v0.2.0
type Configuration struct { BaseURL string Debug bool HostAddress string Port int TemplatePath string MediaPath string MediaURL string ThumbnailsPrefix string CacheEnabled bool DbHost string DbPort string DbName string DbUser string DbPassword string SMTPHost string SMTPPort int SMTPUser string SMTPPassword string SessionVersion string SecureAuthKey string SecureVault *securecookie.SecureCookie SecondsRarely time.Duration SecondsFrequently time.Duration Timezone *time.Location }
func NewConfiguration ¶ added in v0.2.0
func NewConfiguration(namespace string, overrides map[string]interface{}) *Configuration
NewConfiguration sets Config singletone by ENV variables overriden by map
type QueryLogger ¶
type QueryLogger struct{}
QueryLogger logs formatted queries
func (QueryLogger) AfterQuery ¶
func (ql QueryLogger) AfterQuery(c context.Context, q *bun.QueryEvent)
AfterQuery logs formatted query after it finishes
func (QueryLogger) BeforeQuery ¶
func (ql QueryLogger) BeforeQuery(c context.Context, q *bun.QueryEvent) context.Context
BeforeQuery dummy
Source Files ¶
Click to show internal directories.
Click to hide internal directories.