actions

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action struct {
	Method, Path string
	// contains filtered or unexported fields
}

func (*Action) Handle

func (a *Action) Handle(action func(c *gin.Context) g.Node) *Action

func (*Action) Hx

func (a *Action) Hx() g.Node

type Router

type Router struct {
	// contains filtered or unexported fields
}

func NewRouter

func NewRouter() Router

func (*Router) DELETE

func (r *Router) DELETE(path string) *Action

func (*Router) Engine

func (r *Router) Engine() *gin.Engine

func (*Router) GET

func (r *Router) GET(path string) *Action

func (*Router) Group

func (r *Router) Group(path string) Router

func (*Router) PATCH

func (r *Router) PATCH(path string) *Action

func (*Router) POST

func (r *Router) POST(path string) *Action

func (*Router) PUT

func (r *Router) PUT(path string) *Action

Jump to

Keyboard shortcuts

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