sorting

package
v0.0.0-...-24faacb Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2015 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MoveDown

func MoveDown(db *gorm.DB, value sortingInterface, pos int) error

func MoveTo

func MoveTo(db *gorm.DB, value sortingInterface, pos int) error

func MoveUp

func MoveUp(db *gorm.DB, value sortingInterface, pos int) error

func RegisterCallbacks

func RegisterCallbacks(db *gorm.DB)

Types

type Sorting

type Sorting struct {
	Position int `sql:"DEFAULT:NULL"`
}

func (Sorting) GetPosition

func (position Sorting) GetPosition() int

func (*Sorting) InjectQorAdmin

func (s *Sorting) InjectQorAdmin(res *admin.Resource)

func (*Sorting) SetPosition

func (position *Sorting) SetPosition(pos int)

type SortingDESC

type SortingDESC struct {
	Sorting
}

func (SortingDESC) SortingDesc

func (SortingDESC) SortingDesc()

Jump to

Keyboard shortcuts

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