router

package
v0.0.0-...-9a745d8 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	Resource types.Resource
}

func (*Handler) Create

func (h *Handler) Create(c *gin.Context)

func (*Handler) Delete

func (h *Handler) Delete(c *gin.Context)

func (*Handler) Find

func (h *Handler) Find(c *gin.Context)

func (*Handler) Get

func (h *Handler) Get(c *gin.Context)

func (*Handler) Patch

func (h *Handler) Patch(c types.Context)

func (*Handler) Put

func (h *Handler) Put(c *gin.Context)

type Router

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

func NewRouter

func NewRouter(cfg *config.Config) *Router

func (*Router) Group

func (r *Router) Group(name string) types.Routes

func (*Router) NewRs

func (r *Router) NewRs(name string, resource types.Resource)

func (*Router) Run

func (r *Router) Run() error

func (*Router) Shutdown

func (r *Router) Shutdown(ctx context.Context) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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