Documentation ¶
Index ¶
- Constants
- type OptionsOps
- func (o *OptionsOps) CheckIfCurrentLevelBiggerThanMaxLevel() bool
- func (o *OptionsOps) CheckIfCustomFieldsAreFromThisTable(tableName string) bool
- func (o *OptionsOps) FieldsPresentInQueryCustomFields(tableName, fieldName string) bool
- func (o *OptionsOps) GetOptionsAsArrayOfValues() (optionsAsValues []reflect.Value)
- func (o *OptionsOps) GetOptionsAsSliceOfInterface() (optionsAsInterface []interface{})
- func (o *OptionsOps) IncreaseCurrentLevel()
- func (o *OptionsOps) QueryCustomFieldsAsSlice(tableName string) []string
- func (o *OptionsOps) QueryCustomFieldsPresent() bool
Constants ¶
View Source
const CurrentLevel = 2
View Source
const DeepQuery = 0
View Source
const Inner = 4
View Source
const MaxLevel = 1
View Source
const QueryCustomFields = 3
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OptionsOps ¶
type OptionsOps struct { // True: Every collection_of_attributes is rendered with all of its relationships // False: Objects are rendered without their relationships DeepQuery bool MaxLevel int CurrentLevel int QueryCustomFields helpers.Limit Inner bool }
func NewOptionsOps ¶
func NewOptionsOps(extraOptions ...interface{}) OptionsOps
Using variadic functions here, as it would be a bummer to pass far too many values. Index | Param
0 | DeepQuery 1 | MaxLevel
func OptionOpsFromExtraOptions ¶
func OptionOpsFromExtraOptions(extraOptions ...interface{}) OptionsOps
func (*OptionsOps) CheckIfCurrentLevelBiggerThanMaxLevel ¶
func (o *OptionsOps) CheckIfCurrentLevelBiggerThanMaxLevel() bool
func (*OptionsOps) CheckIfCustomFieldsAreFromThisTable ¶
func (o *OptionsOps) CheckIfCustomFieldsAreFromThisTable(tableName string) bool
func (*OptionsOps) FieldsPresentInQueryCustomFields ¶
func (o *OptionsOps) FieldsPresentInQueryCustomFields(tableName, fieldName string) bool
func (*OptionsOps) GetOptionsAsArrayOfValues ¶
func (o *OptionsOps) GetOptionsAsArrayOfValues() (optionsAsValues []reflect.Value)
func (*OptionsOps) GetOptionsAsSliceOfInterface ¶
func (o *OptionsOps) GetOptionsAsSliceOfInterface() (optionsAsInterface []interface{})
func (*OptionsOps) IncreaseCurrentLevel ¶
func (o *OptionsOps) IncreaseCurrentLevel()
func (*OptionsOps) QueryCustomFieldsAsSlice ¶
func (o *OptionsOps) QueryCustomFieldsAsSlice(tableName string) []string
func (*OptionsOps) QueryCustomFieldsPresent ¶
func (o *OptionsOps) QueryCustomFieldsPresent() bool
Click to show internal directories.
Click to hide internal directories.