rest

package
v0.0.0-...-c0c7c65 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller interface {
	// Prefix route pattern prefix
	Prefix() string
	// Gets route => GET: /${Prefix}
	Gets() func(ctx *context.Context)
	// Get route => GET: /${Prefix}/${RESTFUL_KEY}
	Get() func(ctx *context.Context)
	// Post route => POST: /${Prefix}
	Post() func(ctx *context.Context)
	// Put route => PUT: /${Prefix}/${RESTFUL_KEY}
	Put() func(ctx *context.Context)
	// Delete route => DELETE: /${Prefix}/${RESTFUL_KEY}
	Delete() func(ctx *context.Context)
}

Controller interface

Jump to

Keyboard shortcuts

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