types

package
v0.0.27 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HandleFunc

type HandleFunc func(ctx *gin.Context, params map[string]interface{}, db *gorm.DB, opts *Options)

HandleFunc defines the handler used by gin middleware as return value.

type HandleMap

type HandleMap map[string]HandleFunc

type Options added in v0.0.12

type Options struct {
	Handles        HandleMap
	ModelMapper    map[string]interface{}
	OnBeforeStart  func(eng *gin.Engine, config *config.AppConfig)
	OnUpload       func(ctx *gin.Context, filename string, bytes []byte, config *config.AppConfig) (bool, string)
	OnDownload     func(ctx *gin.Context, filename string, file interface{}, config *config.AppConfig) bool
	OnCreate       func(ctx *gin.Context, params *map[string]interface{}, config *config.AppConfig) bool
	OnUpdate       func(ctx *gin.Context, params *map[string]interface{}, config *config.AppConfig) bool
	OnRead         func(ctx *gin.Context, data *entity.Result, config *config.AppConfig) bool
	OnDelete       func(ctx *gin.Context, params *map[string]interface{}, config *config.AppConfig) bool
	DisableFastApi bool
}

Jump to

Keyboard shortcuts

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