route

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 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{})

Types

type Router

type Router struct {
	// server name
	ServerName string
	// 端点
	Endpoint string
	// 路由path
	Path string
	// 插件
	Plugins []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