cnclient

package
v0.0.0-debug-20260702 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AcquireMessage

func AcquireMessage() *pipeline.Message

func ReleaseMessage

func ReleaseMessage(msg *pipeline.Message)

Types

type PipelineClient

type PipelineClient interface {
	NewStream(ctx context.Context, backend string) (morpc.Stream, error)
	Raw() morpc.RPCClient
	Close() error
}

PipelineClient pipeline client

func GetPipelineClient

func GetPipelineClient(
	sid string,
) PipelineClient

func NewPipelineClient

func NewPipelineClient(
	sid string,
	localServiceAddress string,
	cfg *PipelineConfig,
) (PipelineClient, error)

type PipelineConfig

type PipelineConfig struct {
	// MaxSenderNumber is the max number of backends per host for compute node service.
	MaxSenderNumber int
	// TimeOutForEachConnect is the out time for each tcp connect.
	TimeOutForEachConnect time.Duration
	// related buffer size.
	ReadBufferSize  int
	WriteBufferSize int
	// RPC rpc config
	RPC rpc.Config
}

PipelineConfig a config to init a CNClient

Jump to

Keyboard shortcuts

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