l5pbserver

package
v1.18.0-alpha Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 3 more Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type L5pbserver

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

L5pbserver CL5 API服务器

func (*L5pbserver) GetPort

func (l *L5pbserver) GetPort() uint32

GetPort 获取端口

func (*L5pbserver) GetProtocol

func (l *L5pbserver) GetProtocol() string

GetProtocol 获取Server的协议

func (*L5pbserver) Initialize

func (l *L5pbserver) Initialize(_ context.Context, option map[string]interface{},
	_ map[string]apiserver.APIConfig) error

Initialize 初始化CL5 API服务器

func (*L5pbserver) PostProcess

func (l *L5pbserver) PostProcess(req *cl5Request)

PostProcess 请求后处理:统计/告警

func (*L5pbserver) PreProcess

func (l *L5pbserver) PreProcess(req *cl5Request) bool

PreProcess 请求预处理:限频/鉴权

func (*L5pbserver) Restart

func (l *L5pbserver) Restart(_ map[string]interface{}, _ map[string]apiserver.APIConfig,
	_ chan error) error

Restart restart server

func (*L5pbserver) Run

func (l *L5pbserver) Run(errCh chan error)

Run 启动CL5 API服务器

func (*L5pbserver) Stop

func (l *L5pbserver) Stop()

Stop server

Jump to

Keyboard shortcuts

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