store

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2026 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const LabelSuffix = "__label"

Variables

View Source
var ErrBadFilter = fmt.Errorf("coyote/repo: unusable filter")
View Source
var ErrNotFound = errors.New("coyote/repo: record not found")

Functions

func Cached

func Cached(inner model.Store, entries cache.Cache, opts CacheOptions) model.Store

func Jobs

func Jobs(handle *gorm.DB, opts JobOptions) jobs.Queue

func LazyJobs

func LazyJobs(resolve Resolver, opts JobOptions) jobs.Queue

func LazyPermissions

func LazyPermissions(resolve Resolver) auth.PermissionStore

func LazySessions

func LazySessions(resolve Resolver, sweep time.Duration) session.ManageableStore

func LazyTokens

func LazyTokens(resolve Resolver) auth.TokenStore

func LazyUsers

func LazyUsers(resolve Resolver) auth.Store

func New

func New(handle *gorm.DB) model.Store

func Permissions

func Permissions(handle *gorm.DB) auth.PermissionStore

func Sessions

func Sessions(handle *gorm.DB, sweep time.Duration) session.ManageableStore

func Tokens

func Tokens(handle *gorm.DB) auth.TokenStore

func Users

func Users(handle *gorm.DB) auth.Store

Types

type CacheOptions

type CacheOptions struct {
	Tables []string
	TTL    time.Duration
}

type JobOptions

type JobOptions struct {
	MaxAttempts int
}

type Resolver

type Resolver func() (*gorm.DB, error)

Jump to

Keyboard shortcuts

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