crud

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterCRUDRoutes

func RegisterCRUDRoutes(
	engine http.HTTPEngine,
	dbAdapter db.DBAdapter,
	entity any,
	config *Config,
	authProvider auth.AuthProvider,
)

Types

type Config added in v1.1.0

type Config struct {
	ProtectedMethods map[string]bool
}

func DefaultConfig added in v1.1.0

func DefaultConfig() *Config

type Option added in v1.1.0

type Option func(*Config)

func Protect added in v1.1.0

func Protect(methods ...string) Option

func ProtectAll added in v1.1.0

func ProtectAll() Option

Jump to

Keyboard shortcuts

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