Documentation ¶ Index ¶ func WithCacheConf(cacheConf cache.CacheConf) opts.Opt[ModelOpts] func WithCacheOpts(cacheOpts ...cache.Option) opts.Opt[ModelOpts] func WithCachedConn(cachedConn sqlc.CachedConn) opts.Opt[ModelOpts] type ModelOpts func (opts ModelOpts) DefaultOptions() ModelOpts Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func WithCacheConf ¶ func WithCacheConf(cacheConf cache.CacheConf) opts.Opt[ModelOpts] func WithCacheOpts ¶ func WithCacheOpts(cacheOpts ...cache.Option) opts.Opt[ModelOpts] func WithCachedConn ¶ added in v0.9.1 func WithCachedConn(cachedConn sqlc.CachedConn) opts.Opt[ModelOpts] Types ¶ type ModelOpts ¶ type ModelOpts struct { CachedConn *sqlc.CachedConn CacheConf cache.CacheConf CacheOpts []cache.Option } func (ModelOpts) DefaultOptions ¶ func (opts ModelOpts) DefaultOptions() ModelOpts Source Files ¶ View all Source files modelx.go Click to show internal directories. Click to hide internal directories.