polaris

package
v1.4.3 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2023 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 3 more Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultMaxCallRecvMsgSize 默认GRPC链路包接收大小.
	DefaultMaxCallRecvMsgSize = 50 * 1024 * 1024
	// MaxMaxCallRecvMsgSize GRPC链路包接收大小的设置上限.
	MaxMaxCallRecvMsgSize = 500 * 1024 * 1024
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Connector

type Connector struct {
	*plugin.PluginBase
	*common.RunContext
	// contains filtered or unexported fields
}

Connector 使用GRPC协议对接.

func (*Connector) CreateConnection

func (c *Connector) CreateConnection(
	address string, timeout time.Duration, clientInfo *network.ClientInfo,
) (network.ClosableConn, error)

CreateConnection 创建连接.

func (*Connector) Destroy

func (c *Connector) Destroy() error

Destroy 销毁插件,可用于释放资源.

func (*Connector) GetConfigFile

func (c *Connector) GetConfigFile(configFile *configconnector.ConfigFile) (*configconnector.ConfigFileResponse, error)

GetConfigFile Get config file.

func (*Connector) Init

func (c *Connector) Init(ctx *plugin.InitContext) error

Init 初始化插件.

func (*Connector) IsEnable

func (c *Connector) IsEnable(cfg config.Configuration) bool

IsEnable .插件开关.

func (*Connector) Name

func (c *Connector) Name() string

Name 插件名,一个类型下插件名唯一.

func (*Connector) Type

func (c *Connector) Type() common.Type

Type 插件类型.

func (*Connector) WatchConfigFiles

func (c *Connector) WatchConfigFiles(configFileList []*configconnector.ConfigFile) (*configconnector.ConfigFileResponse, error)

WatchConfigFiles Watch config files.

Jump to

Keyboard shortcuts

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