options

package
v0.0.0-...-3473e7d Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

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