gormfilter

package
v0.0.0-...-519a79d Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Filter

type Filter struct {
	// contains filtered or unexported fields
}

func New

func New(dbhandle gorm.Dialector, cfg *gorm.Config, builder tributary.EventConstructor) (*Filter, error)

func (*Filter) Clean

func (f *Filter) Clean(name string, interval time.Duration) handler.Fn

func (*Filter) Create

func (f *Filter) Create(name string) (interceptor.Fn, error)

type Record

type Record struct {
	Hash       string `gorm:"type:varchar(255);unique"`
	CreateTime int64
}

Jump to

Keyboard shortcuts

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