client

package
v2.4.4 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(opts *Options) *Client

func (*Client) Call

func (c *Client) Call(ctx context.Context, seq uint64, buf *buffer.NocopyBuffer, idx ...int64) ([]byte, error)

Call 调用

func (*Client) Establish

func (c *Client) Establish() error

Establish 新建连接

func (*Client) Send

func (c *Client) Send(ctx context.Context, buf *buffer.NocopyBuffer, idx ...int64) error

Send 发送

type Conn

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

type Options

type Options struct {
	Addr         string       // 连接地址
	InsID        string       // 实例ID
	InsKind      cluster.Kind // 实例类型
	CloseHandler func()       // 关闭处理器
}

Jump to

Keyboard shortcuts

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