models

package
v1.1.6 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2023 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyChanges

func ApplyChanges(changes interface{}, to interface{}) error

Types

type BootstrapVersionFilter

type BootstrapVersionFilter struct {
	Limit   *int                              `json:"limit" validate:"omitempty,min=1,max=100"`
	Offset  *int                              `json:"offset" validate:"omitempty,min=0"`
	OrderBy *generated.BootstrapVersionFields `json:"order_by"`
	Order   *generated.Order                  `json:"order"`
	Search  *string                           `json:"search" validate:"omitempty,min=3"`
	Ids     []string                          `json:"ids" validate:"omitempty,max=100"`
}

func DefaultBootstrapVersionFilter

func DefaultBootstrapVersionFilter() *BootstrapVersionFilter

func ProcessBootstrapVersionFilter

func ProcessBootstrapVersionFilter(filter map[string]interface{}) (*BootstrapVersionFilter, error)

type GuideFilter

type GuideFilter struct {
	Limit   *int                   `json:"limit" validate:"omitempty,min=1,max=100"`
	Offset  *int                   `json:"offset" validate:"omitempty,min=0"`
	OrderBy *generated.GuideFields `json:"order_by"`
	Order   *generated.Order       `json:"order"`
	Search  *string                `json:"search" validate:"omitempty,min=3"`
	Ids     []string               `json:"ids" validate:"omitempty,max=100"`
	TagIDs  []string               `json:"tagIDs" validate:"omitempty,max=100"`
}

func DefaultGuideFilter

func DefaultGuideFilter() *GuideFilter

func ProcessGuideFilter

func ProcessGuideFilter(filter map[string]interface{}) (*GuideFilter, error)

func (GuideFilter) Hash

func (f GuideFilter) Hash() (string, error)

type ModFilter

type ModFilter struct {
	Limit      *int                 `json:"limit" validate:"omitempty,min=1,max=100"`
	Offset     *int                 `json:"offset" validate:"omitempty,min=0"`
	OrderBy    *generated.ModFields `json:"order_by"`
	Order      *generated.Order     `json:"order"`
	Search     *string              `json:"search" validate:"omitempty,min=3"`
	Ids        []string             `json:"ids" validate:"omitempty,max=100"`
	References []string             `json:"references" validate:"omitempty,max=100"`
	Hidden     *bool                `json:"hidden"`
	Fields     []string             `json:"-"`
	TagIDs     []string             `json:"tagIDs" validate:"omitempty,max=100"`
}

func DefaultModFilter

func DefaultModFilter() *ModFilter

func ProcessModFilter

func ProcessModFilter(filter map[string]interface{}) (*ModFilter, error)

func (*ModFilter) AddField

func (f *ModFilter) AddField(name string)

func (*ModFilter) Hash

func (f *ModFilter) Hash() (string, error)

type SMLVersionFilter

type SMLVersionFilter struct {
	Limit   *int                        `json:"limit" validate:"omitempty,min=1,max=100"`
	Offset  *int                        `json:"offset" validate:"omitempty,min=0"`
	OrderBy *generated.SMLVersionFields `json:"order_by"`
	Order   *generated.Order            `json:"order"`
	Search  *string                     `json:"search" validate:"omitempty,min=3"`
	Ids     []string                    `json:"ids" validate:"omitempty,max=100"`
}

func DefaultSMLVersionFilter

func DefaultSMLVersionFilter() *SMLVersionFilter

func ProcessSMLVersionFilter

func ProcessSMLVersionFilter(filter map[string]interface{}) (*SMLVersionFilter, error)

type VersionFilter

type VersionFilter struct {
	Limit   *int                     `json:"limit" validate:"omitempty,min=1,max=100"`
	Offset  *int                     `json:"offset" validate:"omitempty,min=0"`
	OrderBy *generated.VersionFields `json:"order_by"`
	Order   *generated.Order         `json:"order"`
	Search  *string                  `json:"search" validate:"omitempty,min=3"`
	Ids     []string                 `json:"ids" validate:"omitempty,max=100"`
	Fields  []string                 `json:"-"`
}

func DefaultVersionFilter

func DefaultVersionFilter() *VersionFilter

func ProcessVersionFilter

func ProcessVersionFilter(filter map[string]interface{}) (*VersionFilter, error)

func (*VersionFilter) AddField

func (f *VersionFilter) AddField(name string)

func (*VersionFilter) Hash

func (f *VersionFilter) Hash() (string, error)

func (*VersionFilter) IsDefault

func (f *VersionFilter) IsDefault(ignoreLimits bool) bool

Jump to

Keyboard shortcuts

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