Documentation ¶
Overview ¶
Package popf is an orm filter for gobuffalo/pop.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Filter ¶
type Filter struct { // FormParams holds the filter rules that will be used // only if ormf.Rule.CheckParam returns no error. FromParams ormf.Rules // DefaultParams holds the filter rules that will be used every time. // If the ormf.Rule.CheckParam returns an error the filter will use the default value (ormf.Rule.Value). DefaultParams ormf.Rules // MustFiler holds the rules used every time using ormf.Rule.Value (won't check the omrf.Rule.CheckParam). MustFilter ormf.Rules }
Filter struct holds all the filter rules that will be used in the *pop.Query or *pop.Connection.
func (Filter) FilterConnection ¶
func (f Filter) FilterConnection(c *pop.Connection, fp FilterParams) *pop.Query
FilterConnection will filter the *pop.Connection passed.
func (Filter) FilterQuery ¶
FilterQuery will filter the *pop.Query passed.
type FilterParams ¶
FilterParams is the provider from which the filter will get the values passing ormf.Rule.Param
Click to show internal directories.
Click to hide internal directories.