route

package
v1.5.6 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 Register

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

Types

type Router

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