modelx

package
v0.11.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 19, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL