gorm

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: MIT Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Base

type Base struct {
	Model     schema.Tabler
	Scope     func(ctx *gin.Context, table schema.Tabler) func(db *gorm.DB) *gorm.DB
	Handlers  gin.HandlersChain
	TreeField string
	Depth     int
}

Base action

func (*Base) Handler

func (*Base) Handler() gin.HandlersChain

Handler action handler

func (*Base) String

func (*Base) String() string

String string

type Control

type Control struct {
	Base
	Key string
}

Control action

func NewControl

func NewControl(b Base, key string) *Control

NewControl new control action

func (*Control) Handler

func (e *Control) Handler() gin.HandlersChain

func (*Control) String

func (*Control) String() string

String action name

type Delete

type Delete struct {
	Base
	Key string
}

Delete action

func NewDelete

func NewDelete(b Base, key string) *Delete

NewDelete new delete action

func (*Delete) Handler

func (e *Delete) Handler() gin.HandlersChain

func (*Delete) String

func (*Delete) String() string

String action name

type Get

type Get struct {
	Base
	Key string
}

Get action

func NewGet

func NewGet(b Base, key string) *Get

NewGet new get action

func (*Get) Handler

func (e *Get) Handler() gin.HandlersChain

func (*Get) String

func (*Get) String() string

String action name

type Search struct {
	Base
	Search response.Searcher
}

Search action

func NewSearch

func NewSearch(b Base, search response.Searcher) *Search

NewSearch new search action

func (*Search) Handler

func (e *Search) Handler() gin.HandlersChain

Handler action handler

func (*Search) String

func (*Search) String() string

String action name

Jump to

Keyboard shortcuts

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