Documentation ¶
Index ¶
- type Cursor
- func (c *Cursor) AddField(name string, value interface{}, order common.DirectionType) *Cursor
- func (c *Cursor) Encode() string
- func (c *Cursor) GroupConditions(db *gorm.DB) *gorm.DB
- func (c *Cursor) Scope() func(db *gorm.DB) *gorm.DB
- func (c *Cursor) SetBackward() *Cursor
- func (c *Cursor) ToCursor(value interface{}) (cursor *Cursor)
- type Field
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cursor ¶
type Cursor struct { Fields []Field `json:"fields"` Limit int `json:"limit"` Backward bool `json:"backward"` DB *gorm.DB `json:"-"` }
Cursor struct
func DecodeAction ¶
func (*Cursor) AddField ¶
func (c *Cursor) AddField(name string, value interface{}, order common.DirectionType) *Cursor
AddField to cursor
func (*Cursor) GroupConditions ¶
GroupConditions for GORM v2
func (*Cursor) SetBackward ¶ added in v1.1.2
type Field ¶
type Field struct { Name string `json:"name"` Value interface{} `json:"value"` Direction common.DirectionType `json:"direction"` }
Field struct
Click to show internal directories.
Click to hide internal directories.