ops

package
v1.0.10 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2025 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StoreOp

type StoreOp struct {
	SeqID         uint8          // SeqID is the sequence id of the operation within a single request (optional, may be used for ordering)
	RequestID     uint32         // RequestID identifies the request that this StoreOp belongs to
	Cmd           *cmd.DiceDBCmd // Cmd is the atomic Store command (e.g., GET, SET)
	ShardID       uint8          // ShardID of the shard on which the Store command will be executed
	CmdHandlerID  string         // CmdHandlerID is the ID of the command handler that sent this Store operation
	Client        *comm.Client   // Client that sent this Store operation. TODO: This can potentially replace the CmdHandlerID in the future
	HTTPOp        bool           // HTTPOp is true if this Store operation is an HTTP operation
	WebsocketOp   bool           // WebsocketOp is true if this Store operation is a Websocket operation
	PreProcessing bool           // PreProcessing indicates whether a comamnd operation requires preprocessing before execution. This is mainly used is multi-step-multi-shard commands
}

type StoreResponse

type StoreResponse struct {
	RequestID    uint32             // RequestID that this StoreResponse belongs to
	EvalResponse *eval.EvalResponse // Result of the Store operation, for now the type is set to []byte, but this can change in the future.
	SeqID        uint8              // Sequence ID to maintain the order of responses, used to track the sequence in which operations are processed or received.
}

StoreResponse represents the response of a Store operation.

Jump to

Keyboard shortcuts

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