sorting

package
v0.0.0-...-c72e3f0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2015 License: MIT Imports: 16 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) ConfigureQorResource

func (s *Sorting) ConfigureQorResource(res resource.Resourcer)

func (Sorting) GetPosition

func (position Sorting) GetPosition() int

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