tools

package
v0.0.0-...-5259590 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EndpointRegister

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

业务 1. 先获取当前路由的所有条目 2. 转换成需要注册的 数据结构 3. 调用rpc 进行注册

func NewEndpointRegister

func NewEndpointRegister(service string) *EndpointRegister

func (*EndpointRegister) Registry

func (r *EndpointRegister) Registry(ctx context.Context, c *restful.Container) error

gorestful 的根路由传递过来

Jump to

Keyboard shortcuts

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