router

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Result

func Result(result []reflect.Value) error

Types

type Router

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

func NewRouter

func NewRouter(path string, action string, ctl interface{}, viewPath string) *Router

func (*Router) Call

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

func (*Router) Path

func (r *Router) Path() string

func (*Router) ViewDisabled

func (r *Router) ViewDisabled() bool

type Routers

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

func NewRouters

func NewRouters() *Routers

func (*Routers) AddDel

func (r *Routers) AddDel(router *Router)

func (*Routers) AddGet

func (r *Routers) AddGet(router *Router)

func (*Routers) AddPost

func (r *Routers) AddPost(router *Router)

func (*Routers) AddPut

func (r *Routers) AddPut(router *Router)

func (*Routers) Del

func (r *Routers) Del(path string) *Router

func (*Routers) Get

func (r *Routers) Get(path string) *Router

func (*Routers) Post

func (r *Routers) Post(path string) *Router

func (*Routers) Put

func (r *Routers) Put(path string) *Router

func (*Routers) Router

func (r *Routers) Router(path string, intput *context.Input) *Router

Jump to

Keyboard shortcuts

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