client

package
v0.10.3-0...-96d0e78 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2025 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AssignmentService

type AssignmentService interface {
	// AssignmentDiscover is used to watches the assignment discovery.
	types.AssignmentDiscoverWatcher

	// UpdateReplicateConfiguration updates the replicate configuration to the milvus cluster.
	UpdateReplicateConfiguration(ctx context.Context, config *commonpb.ReplicateConfiguration) error

	// GetReplicateConfiguration returns the replicate configuration of the milvus cluster.
	GetReplicateConfiguration(ctx context.Context) (*replicateutil.ConfigHelper, error)

	// GetLatestAssignments returns the latest assignment discovery result.
	GetLatestAssignments(ctx context.Context) (*types.VersionedStreamingNodeAssignments, error)

	// UpdateWALBalancePolicy is used to update the WAL balance policy.
	// Return the WAL balance policy after the update.
	// Deprecated: This function is deprecated and will be removed in the future.
	UpdateWALBalancePolicy(ctx context.Context, req *types.UpdateWALBalancePolicyRequest) (*types.UpdateWALBalancePolicyResponse, error)
}

AssignmentService is the interface of assignment service.

type BroadcastService

type BroadcastService interface {
	// Broadcast sends a broadcast message to the streaming service.
	Broadcast(ctx context.Context, msg message.BroadcastMutableMessage) (*types.BroadcastAppendResult, error)

	// Ack sends a broadcast ack to the streaming service.
	Ack(ctx context.Context, msg message.ImmutableMessage) error
}

BroadcastService is the interface of broadcast service.

type Client

type Client interface {
	// Broadcast access broadcast service.
	// Broadcast service will always be available.
	// When streaming service is enabled, the broadcast will use the streaming service.
	// When streaming service is disabled, the broadcast will use legacy msgstream.
	Broadcast() BroadcastService

	// Assignment access assignment service.
	// Assignment service will only be available when streaming service is enabled.
	Assignment() AssignmentService

	// Close close the client.
	Close()
}

Client is the interface of log service client.

func NewClient

func NewClient(etcdCli *clientv3.Client) Client

NewClient creates a new client.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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