v2

package
v1.18.0 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 3 more Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPServerV2

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

HTTPServerV2

func NewV2Server

func NewV2Server(
	namespaceServer namespace.NamespaceOperateServer,
	namingServer service.DiscoverServer,
	healthCheckServer *healthcheck.Server) *HTTPServerV2

NewV2Server 创建V2版本的HTTPServer

func (*HTTPServerV2) CreateRoutings

func (h *HTTPServerV2) CreateRoutings(req *restful.Request, rsp *restful.Response)

CreateRoutings 创建规则路由

func (*HTTPServerV2) DeleteRoutings

func (h *HTTPServerV2) DeleteRoutings(req *restful.Request, rsp *restful.Response)

DeleteRoutings 删除规则路由

func (*HTTPServerV2) EnableRoutings

func (h *HTTPServerV2) EnableRoutings(req *restful.Request, rsp *restful.Response)

EnableRoutings 启用规则路由

func (*HTTPServerV2) GetConsoleAccessServer added in v1.18.0

func (h *HTTPServerV2) GetConsoleAccessServer(include []string) (*restful.WebService, error)

GetConsoleAccessServer 注册管理端接口

func (*HTTPServerV2) GetRoutings

func (h *HTTPServerV2) GetRoutings(req *restful.Request, rsp *restful.Response)

GetRoutings 查询规则路由

func (*HTTPServerV2) UpdateRoutings

func (h *HTTPServerV2) UpdateRoutings(req *restful.Request, rsp *restful.Response)

UpdateRoutings 修改规则路由

type RoutingArr

type RoutingArr []*apitraffic.RouteRule

RoutingArr 路由规则数组定义

func (*RoutingArr) ProtoMessage

func (*RoutingArr) ProtoMessage()

ProtoMessage return proto message

func (*RoutingArr) Reset

func (m *RoutingArr) Reset()

Reset reset initialization

func (*RoutingArr) String

func (m *RoutingArr) String() string

String return string

Jump to

Keyboard shortcuts

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