route

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2024 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAllRouter added in v1.5.7

func GetAllRouter() map[string]*Router

func Register

func Register(serverName, endpoint, path, method string, plugins []string, req interface{}, resp interface{}, after ...string)

Types

type Router

type Router struct {
	// server name
	ServerName string
	// 端点
	Endpoint string
	// 路由path
	Path string
	// 插件
	Plugins []string
	// 后置插件
	After []string

	Method string
	// contains filtered or unexported fields
}

func RouterServer

func RouterServer(key string) (Router, error)

func (*Router) ReqI

func (r *Router) ReqI() (interface{}, error)

func (*Router) RespI

func (r *Router) RespI() (interface{}, error)

Jump to

Keyboard shortcuts

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