sink

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package sink contains the generated public Sink v1 protobuf and gRPC API.

Index

Constants

View Source
const (
	Sink_Read_FullMethodName    = "/sink.v1.Sink/Read"
	Sink_Write_FullMethodName   = "/sink.v1.Sink/Write"
	Sink_Delete_FullMethodName  = "/sink.v1.Sink/Delete"
	Sink_Execute_FullMethodName = "/sink.v1.Sink/Execute"
	Sink_Query_FullMethodName   = "/sink.v1.Sink/Query"
	Sink_Count_FullMethodName   = "/sink.v1.Sink/Count"
	Sink_Scan_FullMethodName    = "/sink.v1.Sink/Scan"
)

Variables

View Source
var (
	DocumentEncoding_name = map[int32]string{
		0: "DOCUMENT_ENCODING_UNSPECIFIED",
		1: "DOCUMENT_ENCODING_JSON",
		2: "DOCUMENT_ENCODING_BSON",
	}
	DocumentEncoding_value = map[string]int32{
		"DOCUMENT_ENCODING_UNSPECIFIED": 0,
		"DOCUMENT_ENCODING_JSON":        1,
		"DOCUMENT_ENCODING_BSON":        2,
	}
)

Enum value maps for DocumentEncoding.

View Source
var (
	CompletionMode_name = map[int32]string{
		0: "COMPLETION_MODE_UNSPECIFIED",
		1: "COMPLETION_MODE_WAIT_UNTIL_APPLIED",
		2: "COMPLETION_MODE_RETURN_AFTER_ACCEPTED",
		3: "COMPLETION_MODE_WAIT_UNTIL_VISIBLE",
	}
	CompletionMode_value = map[string]int32{
		"COMPLETION_MODE_UNSPECIFIED":           0,
		"COMPLETION_MODE_WAIT_UNTIL_APPLIED":    1,
		"COMPLETION_MODE_RETURN_AFTER_ACCEPTED": 2,
		"COMPLETION_MODE_WAIT_UNTIL_VISIBLE":    3,
	}
)

Enum value maps for CompletionMode.

View Source
var (
	ReadStatus_name = map[int32]string{
		0: "READ_STATUS_UNSPECIFIED",
		1: "READ_STATUS_FOUND",
		2: "READ_STATUS_NOT_FOUND",
		3: "READ_STATUS_FAILED",
	}
	ReadStatus_value = map[string]int32{
		"READ_STATUS_UNSPECIFIED": 0,
		"READ_STATUS_FOUND":       1,
		"READ_STATUS_NOT_FOUND":   2,
		"READ_STATUS_FAILED":      3,
	}
)

Enum value maps for ReadStatus.

View Source
var (
	WriteMode_name = map[int32]string{
		0: "WRITE_MODE_UNSPECIFIED",
		1: "WRITE_MODE_CREATE",
		2: "WRITE_MODE_REPLACE",
		3: "WRITE_MODE_UPSERT",
	}
	WriteMode_value = map[string]int32{
		"WRITE_MODE_UNSPECIFIED": 0,
		"WRITE_MODE_CREATE":      1,
		"WRITE_MODE_REPLACE":     2,
		"WRITE_MODE_UPSERT":      3,
	}
)

Enum value maps for WriteMode.

View Source
var (
	WriteStatus_name = map[int32]string{
		0: "WRITE_STATUS_UNSPECIFIED",
		1: "WRITE_STATUS_ACCEPTED",
		2: "WRITE_STATUS_APPLIED",
		3: "WRITE_STATUS_PRECONDITION_FAILED",
		4: "WRITE_STATUS_FAILED",
	}
	WriteStatus_value = map[string]int32{
		"WRITE_STATUS_UNSPECIFIED":         0,
		"WRITE_STATUS_ACCEPTED":            1,
		"WRITE_STATUS_APPLIED":             2,
		"WRITE_STATUS_PRECONDITION_FAILED": 3,
		"WRITE_STATUS_FAILED":              4,
	}
)

Enum value maps for WriteStatus.

View Source
var (
	DeleteStatus_name = map[int32]string{
		0: "DELETE_STATUS_UNSPECIFIED",
		1: "DELETE_STATUS_ACCEPTED",
		2: "DELETE_STATUS_APPLIED",
		3: "DELETE_STATUS_FAILED",
	}
	DeleteStatus_value = map[string]int32{
		"DELETE_STATUS_UNSPECIFIED": 0,
		"DELETE_STATUS_ACCEPTED":    1,
		"DELETE_STATUS_APPLIED":     2,
		"DELETE_STATUS_FAILED":      3,
	}
)

Enum value maps for DeleteStatus.

View Source
var (
	FailureCode_name = map[int32]string{
		0: "FAILURE_CODE_UNSPECIFIED",
		1: "FAILURE_CODE_INVALID_ARGUMENT",
		2: "FAILURE_CODE_PRECONDITION_FAILED",
		3: "FAILURE_CODE_NOT_FOUND",
		4: "FAILURE_CODE_CONFLICT",
		5: "FAILURE_CODE_RESOURCE_EXHAUSTED",
		6: "FAILURE_CODE_UNAVAILABLE",
		7: "FAILURE_CODE_DEADLINE_EXCEEDED",
		8: "FAILURE_CODE_INTERNAL",
	}
	FailureCode_value = map[string]int32{
		"FAILURE_CODE_UNSPECIFIED":         0,
		"FAILURE_CODE_INVALID_ARGUMENT":    1,
		"FAILURE_CODE_PRECONDITION_FAILED": 2,
		"FAILURE_CODE_NOT_FOUND":           3,
		"FAILURE_CODE_CONFLICT":            4,
		"FAILURE_CODE_RESOURCE_EXHAUSTED":  5,
		"FAILURE_CODE_UNAVAILABLE":         6,
		"FAILURE_CODE_DEADLINE_EXCEEDED":   7,
		"FAILURE_CODE_INTERNAL":            8,
	}
)

Enum value maps for FailureCode.

View Source
var File_sink_sink_proto protoreflect.FileDescriptor
View Source
var Sink_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "sink.v1.Sink",
	HandlerType: (*SinkServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Delete",
			Handler:    _Sink_Delete_Handler,
		},
		{
			MethodName: "Execute",
			Handler:    _Sink_Execute_Handler,
		},
		{
			MethodName: "Count",
			Handler:    _Sink_Count_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "Read",
			Handler:       _Sink_Read_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "Write",
			Handler:       _Sink_Write_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "Query",
			Handler:       _Sink_Query_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "Scan",
			Handler:       _Sink_Scan_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "sink/sink.proto",
}

Sink_ServiceDesc is the grpc.ServiceDesc for Sink service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterSinkServer

func RegisterSinkServer(s grpc.ServiceRegistrar, srv SinkServer)

Types

type Command

type Command struct {
	Uri string `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"`
	// Native request method, such as GET or POST. Unused by MongoDB.
	Method string `protobuf:"bytes,2,opt,name=method,proto3" json:"method,omitempty"`
	// Operation path relative to the URI resource, e.g. /_search or /_mapping.
	// Unused by MongoDB; its operation is carried by the BSON command.
	Path string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"`
	// URL-encoded query parameters without a leading '?'; repeated keys are valid.
	Query string `protobuf:"bytes,4,opt,name=query,proto3" json:"query,omitempty"`
	// Authentication and transport-owned headers remain server-controlled.
	// Set Content-Type using content_type, not headers.
	Headers []*Header `protobuf:"bytes,5,rep,name=headers,proto3" json:"headers,omitempty"`
	// Payload media type. Required when payload is nonempty.
	ContentType string `protobuf:"bytes,6,opt,name=content_type,json=contentType,proto3" json:"content_type,omitempty"`
	// Original ordered command or request body, without a Sink-specific envelope.
	Payload []byte `protobuf:"bytes,7,opt,name=payload,proto3" json:"payload,omitempty"`
	// contains filtered or unexported fields
}

Command is shared by Execute, Query, Count and Scan. The canonical URI selects a configured Store; only its adapter interprets the remaining path. MongoDB uses sink://store/database[/collection] with an ordered BSON payload. HTTP search uses sink://store/index with a separate native operation path, such as /_search, method, query, headers and body. A Store root is spelled sink://store. Endpoints and authentication come from configuration.

func (*Command) Descriptor deprecated

func (*Command) Descriptor() ([]byte, []int)

Deprecated: Use Command.ProtoReflect.Descriptor instead.

func (*Command) GetContentType

func (x *Command) GetContentType() string

func (*Command) GetHeaders

func (x *Command) GetHeaders() []*Header

func (*Command) GetMethod

func (x *Command) GetMethod() string

func (*Command) GetPath

func (x *Command) GetPath() string

func (*Command) GetPayload

func (x *Command) GetPayload() []byte

func (*Command) GetQuery

func (x *Command) GetQuery() string

func (*Command) GetUri

func (x *Command) GetUri() string

func (*Command) MarshalToSizedBufferVT

func (m *Command) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Command) MarshalToVT

func (m *Command) MarshalToVT(dAtA []byte) (int, error)

func (*Command) MarshalVT

func (m *Command) MarshalVT() (dAtA []byte, err error)

func (*Command) ProtoMessage

func (*Command) ProtoMessage()

func (*Command) ProtoReflect

func (x *Command) ProtoReflect() protoreflect.Message

func (*Command) Reset

func (x *Command) Reset()

func (*Command) SizeVT

func (m *Command) SizeVT() (n int)

func (*Command) String

func (x *Command) String() string

func (*Command) UnmarshalVT

func (m *Command) UnmarshalVT(dAtA []byte) error

type CompletionMode

type CompletionMode int32

CompletionMode defines the point at which a mutating RPC returns success.

const (
	CompletionMode_COMPLETION_MODE_UNSPECIFIED CompletionMode = 0
	// Wait until the storage adapter has applied each operation.
	CompletionMode_COMPLETION_MODE_WAIT_UNTIL_APPLIED CompletionMode = 1
	// Return after a durable asynchronous queue has accepted each operation.
	// Acceptance does not mean that the storage adapter has applied it.
	CompletionMode_COMPLETION_MODE_RETURN_AFTER_ACCEPTED CompletionMode = 2
	// Wait until the storage adapter has applied each operation and made the
	// result visible to subsequent reads. Search adapters use refresh=wait_for.
	CompletionMode_COMPLETION_MODE_WAIT_UNTIL_VISIBLE CompletionMode = 3
)

func (CompletionMode) Descriptor

func (CompletionMode) Enum

func (x CompletionMode) Enum() *CompletionMode

func (CompletionMode) EnumDescriptor deprecated

func (CompletionMode) EnumDescriptor() ([]byte, []int)

Deprecated: Use CompletionMode.Descriptor instead.

func (CompletionMode) Number

func (CompletionMode) String

func (x CompletionMode) String() string

func (CompletionMode) Type

type CountRequest

type CountRequest struct {

	// MongoDB find with an absent or empty filter automatically uses collection
	// metadata when no options require exact execution. Filtered queries,
	// aggregate pipelines and HTTP search counts remain exact.
	Command *Command `protobuf:"bytes,1,opt,name=command,proto3" json:"command,omitempty"`
	// contains filtered or unexported fields
}

Count is an independent query, not an implicit part of Query. It accepts the same sources and counts matches before find/HTTP pagination; for aggregate it counts the output of the supplied pipeline. HTTP counts matching documents before collapse. Partial or timed-out counts fail the request. Count and Query are separate observations and may differ under concurrent writes.

func (*CountRequest) Descriptor deprecated

func (*CountRequest) Descriptor() ([]byte, []int)

Deprecated: Use CountRequest.ProtoReflect.Descriptor instead.

func (*CountRequest) GetCommand

func (x *CountRequest) GetCommand() *Command

func (*CountRequest) MarshalToSizedBufferVT

func (m *CountRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*CountRequest) MarshalToVT

func (m *CountRequest) MarshalToVT(dAtA []byte) (int, error)

func (*CountRequest) MarshalVT

func (m *CountRequest) MarshalVT() (dAtA []byte, err error)

func (*CountRequest) ProtoMessage

func (*CountRequest) ProtoMessage()

func (*CountRequest) ProtoReflect

func (x *CountRequest) ProtoReflect() protoreflect.Message

func (*CountRequest) Reset

func (x *CountRequest) Reset()

func (*CountRequest) SizeVT

func (m *CountRequest) SizeVT() (n int)

func (*CountRequest) String

func (x *CountRequest) String() string

func (*CountRequest) UnmarshalVT

func (m *CountRequest) UnmarshalVT(dAtA []byte) error

type CountResponse

type CountResponse struct {
	Count uint64 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"`
	// True when the backend used an estimate instead of counting matching rows.
	Estimated bool `protobuf:"varint,2,opt,name=estimated,proto3" json:"estimated,omitempty"`
	// contains filtered or unexported fields
}

func (*CountResponse) Descriptor deprecated

func (*CountResponse) Descriptor() ([]byte, []int)

Deprecated: Use CountResponse.ProtoReflect.Descriptor instead.

func (*CountResponse) GetCount

func (x *CountResponse) GetCount() uint64

func (*CountResponse) GetEstimated

func (x *CountResponse) GetEstimated() bool

func (*CountResponse) MarshalToSizedBufferVT

func (m *CountResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*CountResponse) MarshalToVT

func (m *CountResponse) MarshalToVT(dAtA []byte) (int, error)

func (*CountResponse) MarshalVT

func (m *CountResponse) MarshalVT() (dAtA []byte, err error)

func (*CountResponse) ProtoMessage

func (*CountResponse) ProtoMessage()

func (*CountResponse) ProtoReflect

func (x *CountResponse) ProtoReflect() protoreflect.Message

func (*CountResponse) Reset

func (x *CountResponse) Reset()

func (*CountResponse) SizeVT

func (m *CountResponse) SizeVT() (n int)

func (*CountResponse) String

func (x *CountResponse) String() string

func (*CountResponse) UnmarshalVT

func (m *CountResponse) UnmarshalVT(dAtA []byte) error

type DeleteOperation

type DeleteOperation struct {
	Address *RecordAddress `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteOperation) Descriptor deprecated

func (*DeleteOperation) Descriptor() ([]byte, []int)

Deprecated: Use DeleteOperation.ProtoReflect.Descriptor instead.

func (*DeleteOperation) GetAddress

func (x *DeleteOperation) GetAddress() *RecordAddress

func (*DeleteOperation) MarshalToSizedBufferVT

func (m *DeleteOperation) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*DeleteOperation) MarshalToVT

func (m *DeleteOperation) MarshalToVT(dAtA []byte) (int, error)

func (*DeleteOperation) MarshalVT

func (m *DeleteOperation) MarshalVT() (dAtA []byte, err error)

func (*DeleteOperation) ProtoMessage

func (*DeleteOperation) ProtoMessage()

func (*DeleteOperation) ProtoReflect

func (x *DeleteOperation) ProtoReflect() protoreflect.Message

func (*DeleteOperation) Reset

func (x *DeleteOperation) Reset()

func (*DeleteOperation) SizeVT

func (m *DeleteOperation) SizeVT() (n int)

func (*DeleteOperation) String

func (x *DeleteOperation) String() string

func (*DeleteOperation) UnmarshalVT

func (m *DeleteOperation) UnmarshalVT(dAtA []byte) error

type DeleteRequest

type DeleteRequest struct {
	CompletionMode CompletionMode `` /* 132-byte string literal not displayed */
	// Deletes are hard deletes. Deleting an absent record is successful.
	Operations []*DeleteOperation `protobuf:"bytes,2,rep,name=operations,proto3" json:"operations,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteRequest) Descriptor deprecated

func (*DeleteRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteRequest.ProtoReflect.Descriptor instead.

func (*DeleteRequest) GetCompletionMode

func (x *DeleteRequest) GetCompletionMode() CompletionMode

func (*DeleteRequest) GetOperations

func (x *DeleteRequest) GetOperations() []*DeleteOperation

func (*DeleteRequest) MarshalToSizedBufferVT

func (m *DeleteRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*DeleteRequest) MarshalToVT

func (m *DeleteRequest) MarshalToVT(dAtA []byte) (int, error)

func (*DeleteRequest) MarshalVT

func (m *DeleteRequest) MarshalVT() (dAtA []byte, err error)

func (*DeleteRequest) ProtoMessage

func (*DeleteRequest) ProtoMessage()

func (*DeleteRequest) ProtoReflect

func (x *DeleteRequest) ProtoReflect() protoreflect.Message

func (*DeleteRequest) Reset

func (x *DeleteRequest) Reset()

func (*DeleteRequest) SizeVT

func (m *DeleteRequest) SizeVT() (n int)

func (*DeleteRequest) String

func (x *DeleteRequest) String() string

func (*DeleteRequest) UnmarshalVT

func (m *DeleteRequest) UnmarshalVT(dAtA []byte) error

type DeleteResponse

type DeleteResponse struct {
	Results []*DeleteResult `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteResponse) Descriptor deprecated

func (*DeleteResponse) Descriptor() ([]byte, []int)

Deprecated: Use DeleteResponse.ProtoReflect.Descriptor instead.

func (*DeleteResponse) GetResults

func (x *DeleteResponse) GetResults() []*DeleteResult

func (*DeleteResponse) MarshalToSizedBufferVT

func (m *DeleteResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*DeleteResponse) MarshalToVT

func (m *DeleteResponse) MarshalToVT(dAtA []byte) (int, error)

func (*DeleteResponse) MarshalVT

func (m *DeleteResponse) MarshalVT() (dAtA []byte, err error)

func (*DeleteResponse) ProtoMessage

func (*DeleteResponse) ProtoMessage()

func (*DeleteResponse) ProtoReflect

func (x *DeleteResponse) ProtoReflect() protoreflect.Message

func (*DeleteResponse) Reset

func (x *DeleteResponse) Reset()

func (*DeleteResponse) SizeVT

func (m *DeleteResponse) SizeVT() (n int)

func (*DeleteResponse) String

func (x *DeleteResponse) String() string

func (*DeleteResponse) UnmarshalVT

func (m *DeleteResponse) UnmarshalVT(dAtA []byte) error

type DeleteResult

type DeleteResult struct {
	OperationIndex uint32       `protobuf:"varint,1,opt,name=operation_index,json=operationIndex,proto3" json:"operation_index,omitempty"`
	Status         DeleteStatus `protobuf:"varint,2,opt,name=status,proto3,enum=sink.v1.DeleteStatus" json:"status,omitempty"`
	Failure        *Failure     `protobuf:"bytes,3,opt,name=failure,proto3" json:"failure,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteResult) Descriptor deprecated

func (*DeleteResult) Descriptor() ([]byte, []int)

Deprecated: Use DeleteResult.ProtoReflect.Descriptor instead.

func (*DeleteResult) GetFailure

func (x *DeleteResult) GetFailure() *Failure

func (*DeleteResult) GetOperationIndex

func (x *DeleteResult) GetOperationIndex() uint32

func (*DeleteResult) GetStatus

func (x *DeleteResult) GetStatus() DeleteStatus

func (*DeleteResult) MarshalToSizedBufferVT

func (m *DeleteResult) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*DeleteResult) MarshalToVT

func (m *DeleteResult) MarshalToVT(dAtA []byte) (int, error)

func (*DeleteResult) MarshalVT

func (m *DeleteResult) MarshalVT() (dAtA []byte, err error)

func (*DeleteResult) ProtoMessage

func (*DeleteResult) ProtoMessage()

func (*DeleteResult) ProtoReflect

func (x *DeleteResult) ProtoReflect() protoreflect.Message

func (*DeleteResult) Reset

func (x *DeleteResult) Reset()

func (*DeleteResult) SizeVT

func (m *DeleteResult) SizeVT() (n int)

func (*DeleteResult) String

func (x *DeleteResult) String() string

func (*DeleteResult) UnmarshalVT

func (m *DeleteResult) UnmarshalVT(dAtA []byte) error

type DeleteStatus

type DeleteStatus int32
const (
	DeleteStatus_DELETE_STATUS_UNSPECIFIED DeleteStatus = 0
	DeleteStatus_DELETE_STATUS_ACCEPTED    DeleteStatus = 1
	DeleteStatus_DELETE_STATUS_APPLIED     DeleteStatus = 2
	DeleteStatus_DELETE_STATUS_FAILED      DeleteStatus = 3
)

func (DeleteStatus) Descriptor

func (DeleteStatus) Enum

func (x DeleteStatus) Enum() *DeleteStatus

func (DeleteStatus) EnumDescriptor deprecated

func (DeleteStatus) EnumDescriptor() ([]byte, []int)

Deprecated: Use DeleteStatus.Descriptor instead.

func (DeleteStatus) Number

func (DeleteStatus) String

func (x DeleteStatus) String() string

func (DeleteStatus) Type

type Document

type Document struct {
	Encoding DocumentEncoding `protobuf:"varint,1,opt,name=encoding,proto3,enum=sink.v1.DocumentEncoding" json:"encoding,omitempty"`
	Payload  []byte           `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"`
	// contains filtered or unexported fields
}

Document contains one explicitly encoded user object. Callers select JSON for search storage and BSON for MongoDB storage.

func (*Document) Descriptor deprecated

func (*Document) Descriptor() ([]byte, []int)

Deprecated: Use Document.ProtoReflect.Descriptor instead.

func (*Document) GetEncoding

func (x *Document) GetEncoding() DocumentEncoding

func (*Document) GetPayload

func (x *Document) GetPayload() []byte

func (*Document) MarshalToSizedBufferVT

func (m *Document) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Document) MarshalToVT

func (m *Document) MarshalToVT(dAtA []byte) (int, error)

func (*Document) MarshalVT

func (m *Document) MarshalVT() (dAtA []byte, err error)

func (*Document) ProtoMessage

func (*Document) ProtoMessage()

func (*Document) ProtoReflect

func (x *Document) ProtoReflect() protoreflect.Message

func (*Document) Reset

func (x *Document) Reset()

func (*Document) SizeVT

func (m *Document) SizeVT() (n int)

func (*Document) String

func (x *Document) String() string

func (*Document) UnmarshalVT

func (m *Document) UnmarshalVT(dAtA []byte) error

type DocumentEncoding

type DocumentEncoding int32
const (
	DocumentEncoding_DOCUMENT_ENCODING_UNSPECIFIED DocumentEncoding = 0
	DocumentEncoding_DOCUMENT_ENCODING_JSON        DocumentEncoding = 1
	DocumentEncoding_DOCUMENT_ENCODING_BSON        DocumentEncoding = 2
)

func (DocumentEncoding) Descriptor

func (DocumentEncoding) Enum

func (DocumentEncoding) EnumDescriptor deprecated

func (DocumentEncoding) EnumDescriptor() ([]byte, []int)

Deprecated: Use DocumentEncoding.Descriptor instead.

func (DocumentEncoding) Number

func (DocumentEncoding) String

func (x DocumentEncoding) String() string

func (DocumentEncoding) Type

type ExecuteRequest

type ExecuteRequest struct {
	Command *Command `protobuf:"bytes,1,opt,name=command,proto3" json:"command,omitempty"`
	// contains filtered or unexported fields
}

Execute performs one native interaction. It does not provide cross-RPC session affinity. Adapters reject commands requiring session affinity or a client-managed session; supported cursor queries use Scan instead. Each adapter validates its supported operations before forwarding. MongoDB protects revisions on supported writes; HTTP search rejects index lifecycle and alias management, including unknown administrative write endpoints.

Permitted writes retain backend semantics subject to adapter safeguards. They do not run Lua merges, record batching or asynchronous completion. Neither Sink nor its SDK should automatically replay Execute after an unknown outcome.

func (*ExecuteRequest) Descriptor deprecated

func (*ExecuteRequest) Descriptor() ([]byte, []int)

Deprecated: Use ExecuteRequest.ProtoReflect.Descriptor instead.

func (*ExecuteRequest) GetCommand

func (x *ExecuteRequest) GetCommand() *Command

func (*ExecuteRequest) MarshalToSizedBufferVT

func (m *ExecuteRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*ExecuteRequest) MarshalToVT

func (m *ExecuteRequest) MarshalToVT(dAtA []byte) (int, error)

func (*ExecuteRequest) MarshalVT

func (m *ExecuteRequest) MarshalVT() (dAtA []byte, err error)

func (*ExecuteRequest) ProtoMessage

func (*ExecuteRequest) ProtoMessage()

func (*ExecuteRequest) ProtoReflect

func (x *ExecuteRequest) ProtoReflect() protoreflect.Message

func (*ExecuteRequest) Reset

func (x *ExecuteRequest) Reset()

func (*ExecuteRequest) SizeVT

func (m *ExecuteRequest) SizeVT() (n int)

func (*ExecuteRequest) String

func (x *ExecuteRequest) String() string

func (*ExecuteRequest) UnmarshalVT

func (m *ExecuteRequest) UnmarshalVT(dAtA []byte) error

type ExecuteResponse

type ExecuteResponse struct {
	ContentType string `protobuf:"bytes,1,opt,name=content_type,json=contentType,proto3" json:"content_type,omitempty"`
	Payload     []byte `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"`
	// Native command success, or HTTP 2xx. Callers must still inspect item-level
	// failures in batch responses. Document commands also check native write and
	// write-concern errors.
	Success bool `protobuf:"varint,3,opt,name=success,proto3" json:"success,omitempty"`
	// Native transport status when available; zero means no such status exists.
	StatusCode uint32    `protobuf:"varint,4,opt,name=status_code,json=statusCode,proto3" json:"status_code,omitempty"`
	Headers    []*Header `protobuf:"bytes,5,rep,name=headers,proto3" json:"headers,omitempty"`
	// contains filtered or unexported fields
}

A complete native reply retains its original payload, including backend error replies. Such replies use gRPC OK with success=false; validation, transport and capacity failures use gRPC errors. HTTP replies preserve the status, repeated headers and entity bytes; redirects are returned without following.

func (*ExecuteResponse) Descriptor deprecated

func (*ExecuteResponse) Descriptor() ([]byte, []int)

Deprecated: Use ExecuteResponse.ProtoReflect.Descriptor instead.

func (*ExecuteResponse) GetContentType

func (x *ExecuteResponse) GetContentType() string

func (*ExecuteResponse) GetHeaders

func (x *ExecuteResponse) GetHeaders() []*Header

func (*ExecuteResponse) GetPayload

func (x *ExecuteResponse) GetPayload() []byte

func (*ExecuteResponse) GetStatusCode

func (x *ExecuteResponse) GetStatusCode() uint32

func (*ExecuteResponse) GetSuccess

func (x *ExecuteResponse) GetSuccess() bool

func (*ExecuteResponse) MarshalToSizedBufferVT

func (m *ExecuteResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*ExecuteResponse) MarshalToVT

func (m *ExecuteResponse) MarshalToVT(dAtA []byte) (int, error)

func (*ExecuteResponse) MarshalVT

func (m *ExecuteResponse) MarshalVT() (dAtA []byte, err error)

func (*ExecuteResponse) ProtoMessage

func (*ExecuteResponse) ProtoMessage()

func (*ExecuteResponse) ProtoReflect

func (x *ExecuteResponse) ProtoReflect() protoreflect.Message

func (*ExecuteResponse) Reset

func (x *ExecuteResponse) Reset()

func (*ExecuteResponse) SizeVT

func (m *ExecuteResponse) SizeVT() (n int)

func (*ExecuteResponse) String

func (x *ExecuteResponse) String() string

func (*ExecuteResponse) UnmarshalVT

func (m *ExecuteResponse) UnmarshalVT(dAtA []byte) error

type Failure

type Failure struct {
	Code      FailureCode `protobuf:"varint,1,opt,name=code,proto3,enum=sink.v1.FailureCode" json:"code,omitempty"`
	Message   string      `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	Retryable bool        `protobuf:"varint,3,opt,name=retryable,proto3" json:"retryable,omitempty"`
	// contains filtered or unexported fields
}

func (*Failure) Descriptor deprecated

func (*Failure) Descriptor() ([]byte, []int)

Deprecated: Use Failure.ProtoReflect.Descriptor instead.

func (*Failure) GetCode

func (x *Failure) GetCode() FailureCode

func (*Failure) GetMessage

func (x *Failure) GetMessage() string

func (*Failure) GetRetryable

func (x *Failure) GetRetryable() bool

func (*Failure) MarshalToSizedBufferVT

func (m *Failure) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Failure) MarshalToVT

func (m *Failure) MarshalToVT(dAtA []byte) (int, error)

func (*Failure) MarshalVT

func (m *Failure) MarshalVT() (dAtA []byte, err error)

func (*Failure) ProtoMessage

func (*Failure) ProtoMessage()

func (*Failure) ProtoReflect

func (x *Failure) ProtoReflect() protoreflect.Message

func (*Failure) Reset

func (x *Failure) Reset()

func (*Failure) SizeVT

func (m *Failure) SizeVT() (n int)

func (*Failure) String

func (x *Failure) String() string

func (*Failure) UnmarshalVT

func (m *Failure) UnmarshalVT(dAtA []byte) error

type FailureCode

type FailureCode int32
const (
	FailureCode_FAILURE_CODE_UNSPECIFIED         FailureCode = 0
	FailureCode_FAILURE_CODE_INVALID_ARGUMENT    FailureCode = 1
	FailureCode_FAILURE_CODE_PRECONDITION_FAILED FailureCode = 2
	FailureCode_FAILURE_CODE_NOT_FOUND           FailureCode = 3
	FailureCode_FAILURE_CODE_CONFLICT            FailureCode = 4
	FailureCode_FAILURE_CODE_RESOURCE_EXHAUSTED  FailureCode = 5
	FailureCode_FAILURE_CODE_UNAVAILABLE         FailureCode = 6
	FailureCode_FAILURE_CODE_DEADLINE_EXCEEDED   FailureCode = 7
	FailureCode_FAILURE_CODE_INTERNAL            FailureCode = 8
)

func (FailureCode) Descriptor

func (FailureCode) Enum

func (x FailureCode) Enum() *FailureCode

func (FailureCode) EnumDescriptor deprecated

func (FailureCode) EnumDescriptor() ([]byte, []int)

Deprecated: Use FailureCode.Descriptor instead.

func (FailureCode) Number

func (x FailureCode) Number() protoreflect.EnumNumber

func (FailureCode) String

func (x FailureCode) String() string

func (FailureCode) Type

type Header struct {
	Name   string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Values []string `protobuf:"bytes,2,rep,name=values,proto3" json:"values,omitempty"`
	// contains filtered or unexported fields
}

func (*Header) Descriptor deprecated

func (*Header) Descriptor() ([]byte, []int)

Deprecated: Use Header.ProtoReflect.Descriptor instead.

func (*Header) GetName

func (x *Header) GetName() string

func (*Header) GetValues

func (x *Header) GetValues() []string

func (*Header) MarshalToSizedBufferVT

func (m *Header) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Header) MarshalToVT

func (m *Header) MarshalToVT(dAtA []byte) (int, error)

func (*Header) MarshalVT

func (m *Header) MarshalVT() (dAtA []byte, err error)

func (*Header) ProtoMessage

func (*Header) ProtoMessage()

func (*Header) ProtoReflect

func (x *Header) ProtoReflect() protoreflect.Message

func (*Header) Reset

func (x *Header) Reset()

func (*Header) SizeVT

func (m *Header) SizeVT() (n int)

func (*Header) String

func (x *Header) String() string

func (*Header) UnmarshalVT

func (m *Header) UnmarshalVT(dAtA []byte) error

type LuaProgram

type LuaProgram struct {

	// Source may be omitted from a merge operation when the matching full program
	// is present in WriteRequest.lua_programs. Workers always receive full source.
	Source []byte `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"`
	// Optional SHA-256 digest. Sink verifies it when present and always uses the
	// computed digest as the compiled-program cache key.
	Sha256 []byte `protobuf:"bytes,2,opt,name=sha256,proto3" json:"sha256,omitempty"`
	// contains filtered or unexported fields
}

LuaProgram is self-contained so merge rules can be versioned and deployed with the calling application instead of being registered in Sink.

func (*LuaProgram) Descriptor deprecated

func (*LuaProgram) Descriptor() ([]byte, []int)

Deprecated: Use LuaProgram.ProtoReflect.Descriptor instead.

func (*LuaProgram) GetSha256

func (x *LuaProgram) GetSha256() []byte

func (*LuaProgram) GetSource

func (x *LuaProgram) GetSource() []byte

func (*LuaProgram) MarshalToSizedBufferVT

func (m *LuaProgram) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*LuaProgram) MarshalToVT

func (m *LuaProgram) MarshalToVT(dAtA []byte) (int, error)

func (*LuaProgram) MarshalVT

func (m *LuaProgram) MarshalVT() (dAtA []byte, err error)

func (*LuaProgram) ProtoMessage

func (*LuaProgram) ProtoMessage()

func (*LuaProgram) ProtoReflect

func (x *LuaProgram) ProtoReflect() protoreflect.Message

func (*LuaProgram) Reset

func (x *LuaProgram) Reset()

func (*LuaProgram) SizeVT

func (m *LuaProgram) SizeVT() (n int)

func (*LuaProgram) String

func (x *LuaProgram) String() string

func (*LuaProgram) UnmarshalVT

func (m *LuaProgram) UnmarshalVT(dAtA []byte) error

type MergeOperation

type MergeOperation struct {
	IncomingDocument *Document   `protobuf:"bytes,1,opt,name=incoming_document,json=incomingDocument,proto3" json:"incoming_document,omitempty"`
	LuaProgram       *LuaProgram `protobuf:"bytes,2,opt,name=lua_program,json=luaProgram,proto3" json:"lua_program,omitempty"`
	// contains filtered or unexported fields
}

MergeOperation carries the original merge intent. In asynchronous mode Sink expands any program reference before queueing the operation so the worker can merge against the document version it reads at execution time.

func (*MergeOperation) Descriptor deprecated

func (*MergeOperation) Descriptor() ([]byte, []int)

Deprecated: Use MergeOperation.ProtoReflect.Descriptor instead.

func (*MergeOperation) GetIncomingDocument

func (x *MergeOperation) GetIncomingDocument() *Document

func (*MergeOperation) GetLuaProgram

func (x *MergeOperation) GetLuaProgram() *LuaProgram

func (*MergeOperation) MarshalToSizedBufferVT

func (m *MergeOperation) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*MergeOperation) MarshalToVT

func (m *MergeOperation) MarshalToVT(dAtA []byte) (int, error)

func (*MergeOperation) MarshalVT

func (m *MergeOperation) MarshalVT() (dAtA []byte, err error)

func (*MergeOperation) ProtoMessage

func (*MergeOperation) ProtoMessage()

func (*MergeOperation) ProtoReflect

func (x *MergeOperation) ProtoReflect() protoreflect.Message

func (*MergeOperation) Reset

func (x *MergeOperation) Reset()

func (*MergeOperation) SizeVT

func (m *MergeOperation) SizeVT() (n int)

func (*MergeOperation) String

func (x *MergeOperation) String() string

func (*MergeOperation) UnmarshalVT

func (m *MergeOperation) UnmarshalVT(dAtA []byte) error

type Projection

type Projection struct {
	Fields  []string `protobuf:"bytes,1,rep,name=fields,proto3" json:"fields,omitempty"`
	Exclude bool     `protobuf:"varint,2,opt,name=exclude,proto3" json:"exclude,omitempty"` // False includes listed fields; true excludes them.
	// contains filtered or unexported fields
}

Field names are native document paths (relative to _source for HTTP search). HTTP hit metadata is unchanged. Document stores retain their native rules for identity-field projection. Database-specific computed projections can remain in Command.payload.

func (*Projection) Descriptor deprecated

func (*Projection) Descriptor() ([]byte, []int)

Deprecated: Use Projection.ProtoReflect.Descriptor instead.

func (*Projection) GetExclude

func (x *Projection) GetExclude() bool

func (*Projection) GetFields

func (x *Projection) GetFields() []string

func (*Projection) MarshalToSizedBufferVT

func (m *Projection) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Projection) MarshalToVT

func (m *Projection) MarshalToVT(dAtA []byte) (int, error)

func (*Projection) MarshalVT

func (m *Projection) MarshalVT() (dAtA []byte, err error)

func (*Projection) ProtoMessage

func (*Projection) ProtoMessage()

func (*Projection) ProtoReflect

func (x *Projection) ProtoReflect() protoreflect.Message

func (*Projection) Reset

func (x *Projection) Reset()

func (*Projection) SizeVT

func (m *Projection) SizeVT() (n int)

func (*Projection) String

func (x *Projection) String() string

func (*Projection) UnmarshalVT

func (m *Projection) UnmarshalVT(dAtA []byte) error

type PutOperation

type PutOperation struct {
	Document *Document `protobuf:"bytes,1,opt,name=document,proto3" json:"document,omitempty"`
	Mode     WriteMode `protobuf:"varint,2,opt,name=mode,proto3,enum=sink.v1.WriteMode" json:"mode,omitempty"`
	// contains filtered or unexported fields
}

PutOperation writes a complete user document without interpreting its fields.

func (*PutOperation) Descriptor deprecated

func (*PutOperation) Descriptor() ([]byte, []int)

Deprecated: Use PutOperation.ProtoReflect.Descriptor instead.

func (*PutOperation) GetDocument

func (x *PutOperation) GetDocument() *Document

func (*PutOperation) GetMode

func (x *PutOperation) GetMode() WriteMode

func (*PutOperation) MarshalToSizedBufferVT

func (m *PutOperation) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*PutOperation) MarshalToVT

func (m *PutOperation) MarshalToVT(dAtA []byte) (int, error)

func (*PutOperation) MarshalVT

func (m *PutOperation) MarshalVT() (dAtA []byte, err error)

func (*PutOperation) ProtoMessage

func (*PutOperation) ProtoMessage()

func (*PutOperation) ProtoReflect

func (x *PutOperation) ProtoReflect() protoreflect.Message

func (*PutOperation) Reset

func (x *PutOperation) Reset()

func (*PutOperation) SizeVT

func (m *PutOperation) SizeVT() (n int)

func (*PutOperation) String

func (x *PutOperation) String() string

func (*PutOperation) UnmarshalVT

func (m *PutOperation) UnmarshalVT(dAtA []byte) error

type QueryRequest

type QueryRequest struct {
	Command *Command `protobuf:"bytes,1,opt,name=command,proto3" json:"command,omitempty"`
	// One-based page number; zero selects page 1. Deep pages still incur backend
	// offset costs and are subject to the backend's result-window limits.
	Page uint32 `protobuf:"varint,2,opt,name=page,proto3" json:"page,omitempty"`
	// Zero selects 100; maximum 1000. Query replaces native find skip/limit and
	// HTTP from/size. For aggregate, pagination follows the supplied pipeline.
	PageSize uint32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// Ordered sort keys. Empty preserves the native sort; nonempty replaces find
	// or HTTP sorting. For aggregate, sort follows the supplied pipeline.
	Sort []*SortField `protobuf:"bytes,4,rep,name=sort,proto3" json:"sort,omitempty"`
	// Absent preserves native projection. Present replaces find projection or
	// HTTP _source selection; aggregate applies it after the pipeline and sort,
	// before pagination. An empty fields list selects all document fields.
	Projection *Projection `protobuf:"bytes,5,opt,name=projection,proto3" json:"projection,omitempty"`
	// contains filtered or unexported fields
}

Query returns an independent page without retaining a cursor between RPCs. Supported sources are find/read-only aggregate command documents and HTTP _search requests. Documents have the same native result shape as Scan. Use a stable native sort with a unique tie-breaker for predictable pages. Concurrent changes may shift results; pagination does not provide a snapshot.

func (*QueryRequest) Descriptor deprecated

func (*QueryRequest) Descriptor() ([]byte, []int)

Deprecated: Use QueryRequest.ProtoReflect.Descriptor instead.

func (*QueryRequest) GetCommand

func (x *QueryRequest) GetCommand() *Command

func (*QueryRequest) GetPage

func (x *QueryRequest) GetPage() uint32

func (*QueryRequest) GetPageSize

func (x *QueryRequest) GetPageSize() uint32

func (*QueryRequest) GetProjection

func (x *QueryRequest) GetProjection() *Projection

func (*QueryRequest) GetSort

func (x *QueryRequest) GetSort() []*SortField

func (*QueryRequest) MarshalToSizedBufferVT

func (m *QueryRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*QueryRequest) MarshalToVT

func (m *QueryRequest) MarshalToVT(dAtA []byte) (int, error)

func (*QueryRequest) MarshalVT

func (m *QueryRequest) MarshalVT() (dAtA []byte, err error)

func (*QueryRequest) ProtoMessage

func (*QueryRequest) ProtoMessage()

func (*QueryRequest) ProtoReflect

func (x *QueryRequest) ProtoReflect() protoreflect.Message

func (*QueryRequest) Reset

func (x *QueryRequest) Reset()

func (*QueryRequest) SizeVT

func (m *QueryRequest) SizeVT() (n int)

func (*QueryRequest) String

func (x *QueryRequest) String() string

func (*QueryRequest) UnmarshalVT

func (m *QueryRequest) UnmarshalVT(dAtA []byte) error

type QueryResponse

type QueryResponse struct {
	Documents []*Document `protobuf:"bytes,1,rep,name=documents,proto3" json:"documents,omitempty"`
	// Determined by fetching one extra result, not by running Count. Result-window
	// limits apply to this extra result too. A byte limit fails the whole request;
	// it never produces a silently shortened page.
	HasMore  bool `protobuf:"varint,2,opt,name=has_more,json=hasMore,proto3" json:"has_more,omitempty"`
	Complete bool `protobuf:"varint,3,opt,name=complete,proto3" json:"complete,omitempty"`
	// contains filtered or unexported fields
}

Document frames contain one document. A final, document-free frame sets complete and has_more. Metadata is valid only after successful EOF.

func (*QueryResponse) Descriptor deprecated

func (*QueryResponse) Descriptor() ([]byte, []int)

Deprecated: Use QueryResponse.ProtoReflect.Descriptor instead.

func (*QueryResponse) GetComplete

func (x *QueryResponse) GetComplete() bool

func (*QueryResponse) GetDocuments

func (x *QueryResponse) GetDocuments() []*Document

func (*QueryResponse) GetHasMore

func (x *QueryResponse) GetHasMore() bool

func (*QueryResponse) MarshalToSizedBufferVT

func (m *QueryResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*QueryResponse) MarshalToVT

func (m *QueryResponse) MarshalToVT(dAtA []byte) (int, error)

func (*QueryResponse) MarshalVT

func (m *QueryResponse) MarshalVT() (dAtA []byte, err error)

func (*QueryResponse) ProtoMessage

func (*QueryResponse) ProtoMessage()

func (*QueryResponse) ProtoReflect

func (x *QueryResponse) ProtoReflect() protoreflect.Message

func (*QueryResponse) Reset

func (x *QueryResponse) Reset()

func (*QueryResponse) SizeVT

func (m *QueryResponse) SizeVT() (n int)

func (*QueryResponse) String

func (x *QueryResponse) String() string

func (*QueryResponse) UnmarshalVT

func (m *QueryResponse) UnmarshalVT(dAtA []byte) error

type ReadOperation

type ReadOperation struct {
	Address *RecordAddress `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// contains filtered or unexported fields
}

func (*ReadOperation) Descriptor deprecated

func (*ReadOperation) Descriptor() ([]byte, []int)

Deprecated: Use ReadOperation.ProtoReflect.Descriptor instead.

func (*ReadOperation) GetAddress

func (x *ReadOperation) GetAddress() *RecordAddress

func (*ReadOperation) MarshalToSizedBufferVT

func (m *ReadOperation) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*ReadOperation) MarshalToVT

func (m *ReadOperation) MarshalToVT(dAtA []byte) (int, error)

func (*ReadOperation) MarshalVT

func (m *ReadOperation) MarshalVT() (dAtA []byte, err error)

func (*ReadOperation) ProtoMessage

func (*ReadOperation) ProtoMessage()

func (*ReadOperation) ProtoReflect

func (x *ReadOperation) ProtoReflect() protoreflect.Message

func (*ReadOperation) Reset

func (x *ReadOperation) Reset()

func (*ReadOperation) SizeVT

func (m *ReadOperation) SizeVT() (n int)

func (*ReadOperation) String

func (x *ReadOperation) String() string

func (*ReadOperation) UnmarshalVT

func (m *ReadOperation) UnmarshalVT(dAtA []byte) error

type ReadRequest

type ReadRequest struct {
	Operations []*ReadOperation `protobuf:"bytes,1,rep,name=operations,proto3" json:"operations,omitempty"`
	// contains filtered or unexported fields
}

func (*ReadRequest) Descriptor deprecated

func (*ReadRequest) Descriptor() ([]byte, []int)

Deprecated: Use ReadRequest.ProtoReflect.Descriptor instead.

func (*ReadRequest) GetOperations

func (x *ReadRequest) GetOperations() []*ReadOperation

func (*ReadRequest) MarshalToSizedBufferVT

func (m *ReadRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*ReadRequest) MarshalToVT

func (m *ReadRequest) MarshalToVT(dAtA []byte) (int, error)

func (*ReadRequest) MarshalVT

func (m *ReadRequest) MarshalVT() (dAtA []byte, err error)

func (*ReadRequest) ProtoMessage

func (*ReadRequest) ProtoMessage()

func (*ReadRequest) ProtoReflect

func (x *ReadRequest) ProtoReflect() protoreflect.Message

func (*ReadRequest) Reset

func (x *ReadRequest) Reset()

func (*ReadRequest) SizeVT

func (m *ReadRequest) SizeVT() (n int)

func (*ReadRequest) String

func (x *ReadRequest) String() string

func (*ReadRequest) UnmarshalVT

func (m *ReadRequest) UnmarshalVT(dAtA []byte) error

type ReadResponse

type ReadResponse struct {

	// Each frame contains one result. Results may arrive out of order; correlate
	// by operation_index. Successful EOF requires exactly one result per operation.
	Results []*ReadResult `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"`
	// contains filtered or unexported fields
}

func (*ReadResponse) Descriptor deprecated

func (*ReadResponse) Descriptor() ([]byte, []int)

Deprecated: Use ReadResponse.ProtoReflect.Descriptor instead.

func (*ReadResponse) GetResults

func (x *ReadResponse) GetResults() []*ReadResult

func (*ReadResponse) MarshalToSizedBufferVT

func (m *ReadResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*ReadResponse) MarshalToVT

func (m *ReadResponse) MarshalToVT(dAtA []byte) (int, error)

func (*ReadResponse) MarshalVT

func (m *ReadResponse) MarshalVT() (dAtA []byte, err error)

func (*ReadResponse) ProtoMessage

func (*ReadResponse) ProtoMessage()

func (*ReadResponse) ProtoReflect

func (x *ReadResponse) ProtoReflect() protoreflect.Message

func (*ReadResponse) Reset

func (x *ReadResponse) Reset()

func (*ReadResponse) SizeVT

func (m *ReadResponse) SizeVT() (n int)

func (*ReadResponse) String

func (x *ReadResponse) String() string

func (*ReadResponse) UnmarshalVT

func (m *ReadResponse) UnmarshalVT(dAtA []byte) error

type ReadResult

type ReadResult struct {
	OperationIndex uint32     `protobuf:"varint,1,opt,name=operation_index,json=operationIndex,proto3" json:"operation_index,omitempty"`
	Status         ReadStatus `protobuf:"varint,2,opt,name=status,proto3,enum=sink.v1.ReadStatus" json:"status,omitempty"`
	Document       *Document  `protobuf:"bytes,3,opt,name=document,proto3" json:"document,omitempty"`
	Failure        *Failure   `protobuf:"bytes,5,opt,name=failure,proto3" json:"failure,omitempty"`
	// contains filtered or unexported fields
}

func (*ReadResult) Descriptor deprecated

func (*ReadResult) Descriptor() ([]byte, []int)

Deprecated: Use ReadResult.ProtoReflect.Descriptor instead.

func (*ReadResult) GetDocument

func (x *ReadResult) GetDocument() *Document

func (*ReadResult) GetFailure

func (x *ReadResult) GetFailure() *Failure

func (*ReadResult) GetOperationIndex

func (x *ReadResult) GetOperationIndex() uint32

func (*ReadResult) GetStatus

func (x *ReadResult) GetStatus() ReadStatus

func (*ReadResult) MarshalToSizedBufferVT

func (m *ReadResult) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*ReadResult) MarshalToVT

func (m *ReadResult) MarshalToVT(dAtA []byte) (int, error)

func (*ReadResult) MarshalVT

func (m *ReadResult) MarshalVT() (dAtA []byte, err error)

func (*ReadResult) ProtoMessage

func (*ReadResult) ProtoMessage()

func (*ReadResult) ProtoReflect

func (x *ReadResult) ProtoReflect() protoreflect.Message

func (*ReadResult) Reset

func (x *ReadResult) Reset()

func (*ReadResult) SizeVT

func (m *ReadResult) SizeVT() (n int)

func (*ReadResult) String

func (x *ReadResult) String() string

func (*ReadResult) UnmarshalVT

func (m *ReadResult) UnmarshalVT(dAtA []byte) error

type ReadStatus

type ReadStatus int32
const (
	ReadStatus_READ_STATUS_UNSPECIFIED ReadStatus = 0
	ReadStatus_READ_STATUS_FOUND       ReadStatus = 1
	ReadStatus_READ_STATUS_NOT_FOUND   ReadStatus = 2
	ReadStatus_READ_STATUS_FAILED      ReadStatus = 3
)

func (ReadStatus) Descriptor

func (ReadStatus) Descriptor() protoreflect.EnumDescriptor

func (ReadStatus) Enum

func (x ReadStatus) Enum() *ReadStatus

func (ReadStatus) EnumDescriptor deprecated

func (ReadStatus) EnumDescriptor() ([]byte, []int)

Deprecated: Use ReadStatus.Descriptor instead.

func (ReadStatus) Number

func (x ReadStatus) Number() protoreflect.EnumNumber

func (ReadStatus) String

func (x ReadStatus) String() string

func (ReadStatus) Type

type RecordAddress

type RecordAddress struct {
	Uri string `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"`
	// contains filtered or unexported fields
}

RecordAddress is a canonical sink://<store>/<path> URI. The core treats the path as opaque; each Store adapter owns its path grammar. The full canonical URI is the record identity for routing, batching, and durable delivery.

func (*RecordAddress) Descriptor deprecated

func (*RecordAddress) Descriptor() ([]byte, []int)

Deprecated: Use RecordAddress.ProtoReflect.Descriptor instead.

func (*RecordAddress) GetUri

func (x *RecordAddress) GetUri() string

func (*RecordAddress) MarshalToSizedBufferVT

func (m *RecordAddress) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*RecordAddress) MarshalToVT

func (m *RecordAddress) MarshalToVT(dAtA []byte) (int, error)

func (*RecordAddress) MarshalVT

func (m *RecordAddress) MarshalVT() (dAtA []byte, err error)

func (*RecordAddress) ProtoMessage

func (*RecordAddress) ProtoMessage()

func (*RecordAddress) ProtoReflect

func (x *RecordAddress) ProtoReflect() protoreflect.Message

func (*RecordAddress) Reset

func (x *RecordAddress) Reset()

func (*RecordAddress) SizeVT

func (m *RecordAddress) SizeVT() (n int)

func (*RecordAddress) String

func (x *RecordAddress) String() string

func (*RecordAddress) UnmarshalVT

func (m *RecordAddress) UnmarshalVT(dAtA []byte) error

type ScanRequest

type ScanRequest struct {
	Command *Command `protobuf:"bytes,1,opt,name=command,proto3" json:"command,omitempty"`
	// Zero selects 100; maximum 1000. The byte limit may produce a smaller page.
	BatchSize uint32 `protobuf:"varint,2,opt,name=batch_size,json=batchSize,proto3" json:"batch_size,omitempty"`
	// Empty starts a new scan. Treat this continuation marker as opaque; it is
	// bound to Command and Projection and is not an authorization credential.
	Cursor []byte `protobuf:"bytes,3,opt,name=cursor,proto3" json:"cursor,omitempty"`
	// Absent preserves native projection. Present replaces find projection or
	// HTTP _source selection. Empty fields selects all document fields. MongoDB
	// retains _id internally for continuation even when excluded from results;
	// HTTP hit metadata and sort values are unchanged.
	Projection *Projection `protobuf:"bytes,4,opt,name=projection,proto3" json:"projection,omitempty"`
	// contains filtered or unexported fields
}

Scan returns one live page. Supply the same Command and Projection and pass next_cursor back as cursor after processing a page. Cursors carry the seek position across server restarts and do not expire; no database session survives a request. Task deadlines and checkpoint retention belong to callers. Concurrent changes can affect later pages and retries. Scan is not a snapshot.

func (*ScanRequest) Descriptor deprecated

func (*ScanRequest) Descriptor() ([]byte, []int)

Deprecated: Use ScanRequest.ProtoReflect.Descriptor instead.

func (*ScanRequest) GetBatchSize

func (x *ScanRequest) GetBatchSize() uint32

func (*ScanRequest) GetCommand

func (x *ScanRequest) GetCommand() *Command

func (*ScanRequest) GetCursor

func (x *ScanRequest) GetCursor() []byte

func (*ScanRequest) GetProjection

func (x *ScanRequest) GetProjection() *Projection

func (*ScanRequest) MarshalToSizedBufferVT

func (m *ScanRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*ScanRequest) MarshalToVT

func (m *ScanRequest) MarshalToVT(dAtA []byte) (int, error)

func (*ScanRequest) MarshalVT

func (m *ScanRequest) MarshalVT() (dAtA []byte, err error)

func (*ScanRequest) ProtoMessage

func (*ScanRequest) ProtoMessage()

func (*ScanRequest) ProtoReflect

func (x *ScanRequest) ProtoReflect() protoreflect.Message

func (*ScanRequest) Reset

func (x *ScanRequest) Reset()

func (*ScanRequest) SizeVT

func (m *ScanRequest) SizeVT() (n int)

func (*ScanRequest) String

func (x *ScanRequest) String() string

func (*ScanRequest) UnmarshalVT

func (m *ScanRequest) UnmarshalVT(dAtA []byte) error

type ScanResponse

type ScanResponse struct {
	Documents []*Document `protobuf:"bytes,1,rep,name=documents,proto3" json:"documents,omitempty"`
	// Empty means the scan reached the end observed by this request. Commit a
	// checkpoint only after processing documents and successful EOF. No close RPC is needed.
	NextCursor []byte `protobuf:"bytes,2,opt,name=next_cursor,json=nextCursor,proto3" json:"next_cursor,omitempty"`
	Complete   bool   `protobuf:"varint,3,opt,name=complete,proto3" json:"complete,omitempty"`
	// contains filtered or unexported fields
}

Documents retain native encodings: BSON documents or complete JSON hits. A failed stream may have delivered documents but never a committed page. Resume from the last saved cursor with idempotent business processing. Document frames contain one document. A final, document-free frame sets complete and next_cursor. Checkpoint only after successful EOF.

func (*ScanResponse) Descriptor deprecated

func (*ScanResponse) Descriptor() ([]byte, []int)

Deprecated: Use ScanResponse.ProtoReflect.Descriptor instead.

func (*ScanResponse) GetComplete

func (x *ScanResponse) GetComplete() bool

func (*ScanResponse) GetDocuments

func (x *ScanResponse) GetDocuments() []*Document

func (*ScanResponse) GetNextCursor

func (x *ScanResponse) GetNextCursor() []byte

func (*ScanResponse) MarshalToSizedBufferVT

func (m *ScanResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*ScanResponse) MarshalToVT

func (m *ScanResponse) MarshalToVT(dAtA []byte) (int, error)

func (*ScanResponse) MarshalVT

func (m *ScanResponse) MarshalVT() (dAtA []byte, err error)

func (*ScanResponse) ProtoMessage

func (*ScanResponse) ProtoMessage()

func (*ScanResponse) ProtoReflect

func (x *ScanResponse) ProtoReflect() protoreflect.Message

func (*ScanResponse) Reset

func (x *ScanResponse) Reset()

func (*ScanResponse) SizeVT

func (m *ScanResponse) SizeVT() (n int)

func (*ScanResponse) String

func (x *ScanResponse) String() string

func (*ScanResponse) UnmarshalVT

func (m *ScanResponse) UnmarshalVT(dAtA []byte) error

type SinkClient

SinkClient is the client API for Sink service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

Sink provides database-independent record reads and mutations.

Record requests are batch-native. Atomicity is guaranteed per record, never for the whole request. Native queries use Execute, Query, Count or paged Scan.

func NewSinkClient

func NewSinkClient(cc grpc.ClientConnInterface) SinkClient

type SinkServer

SinkServer is the server API for Sink service. All implementations must embed UnimplementedSinkServer for forward compatibility.

Sink provides database-independent record reads and mutations.

Record requests are batch-native. Atomicity is guaranteed per record, never for the whole request. Native queries use Execute, Query, Count or paged Scan.

type Sink_QueryClient

type Sink_QueryClient = grpc.ServerStreamingClient[QueryResponse]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type Sink_QueryServer

type Sink_QueryServer = grpc.ServerStreamingServer[QueryResponse]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type Sink_ReadClient

type Sink_ReadClient = grpc.ServerStreamingClient[ReadResponse]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type Sink_ReadServer

type Sink_ReadServer = grpc.ServerStreamingServer[ReadResponse]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type Sink_ScanClient

type Sink_ScanClient = grpc.ServerStreamingClient[ScanResponse]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type Sink_ScanServer

type Sink_ScanServer = grpc.ServerStreamingServer[ScanResponse]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type Sink_WriteClient

type Sink_WriteClient = grpc.ServerStreamingClient[WriteResponse]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type Sink_WriteServer

type Sink_WriteServer = grpc.ServerStreamingServer[WriteResponse]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type SortField

type SortField struct {
	Field      string `protobuf:"bytes,1,opt,name=field,proto3" json:"field,omitempty"`
	Descending bool   `protobuf:"varint,2,opt,name=descending,proto3" json:"descending,omitempty"`
	// contains filtered or unexported fields
}

func (*SortField) Descriptor deprecated

func (*SortField) Descriptor() ([]byte, []int)

Deprecated: Use SortField.ProtoReflect.Descriptor instead.

func (*SortField) GetDescending

func (x *SortField) GetDescending() bool

func (*SortField) GetField

func (x *SortField) GetField() string

func (*SortField) MarshalToSizedBufferVT

func (m *SortField) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*SortField) MarshalToVT

func (m *SortField) MarshalToVT(dAtA []byte) (int, error)

func (*SortField) MarshalVT

func (m *SortField) MarshalVT() (dAtA []byte, err error)

func (*SortField) ProtoMessage

func (*SortField) ProtoMessage()

func (*SortField) ProtoReflect

func (x *SortField) ProtoReflect() protoreflect.Message

func (*SortField) Reset

func (x *SortField) Reset()

func (*SortField) SizeVT

func (m *SortField) SizeVT() (n int)

func (*SortField) String

func (x *SortField) String() string

func (*SortField) UnmarshalVT

func (m *SortField) UnmarshalVT(dAtA []byte) error

type UnimplementedSinkServer

type UnimplementedSinkServer struct{}

UnimplementedSinkServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedSinkServer) Count

func (UnimplementedSinkServer) Delete

func (UnimplementedSinkServer) Execute

func (UnimplementedSinkServer) Query

func (UnimplementedSinkServer) Read

func (UnimplementedSinkServer) Scan

func (UnimplementedSinkServer) Write

type UnsafeSinkServer

type UnsafeSinkServer interface {
	// contains filtered or unexported methods
}

UnsafeSinkServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SinkServer will result in compilation errors.

type WriteMode

type WriteMode int32
const (
	WriteMode_WRITE_MODE_UNSPECIFIED WriteMode = 0
	WriteMode_WRITE_MODE_CREATE      WriteMode = 1
	WriteMode_WRITE_MODE_REPLACE     WriteMode = 2
	WriteMode_WRITE_MODE_UPSERT      WriteMode = 3
)

func (WriteMode) Descriptor

func (WriteMode) Descriptor() protoreflect.EnumDescriptor

func (WriteMode) Enum

func (x WriteMode) Enum() *WriteMode

func (WriteMode) EnumDescriptor deprecated

func (WriteMode) EnumDescriptor() ([]byte, []int)

Deprecated: Use WriteMode.Descriptor instead.

func (WriteMode) Number

func (x WriteMode) Number() protoreflect.EnumNumber

func (WriteMode) String

func (x WriteMode) String() string

func (WriteMode) Type

type WriteOperation

type WriteOperation struct {
	Address *RecordAddress `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// Types that are valid to be assigned to Action:
	//
	//	*WriteOperation_Put
	//	*WriteOperation_Merge
	Action isWriteOperation_Action `protobuf_oneof:"action"`
	// Return the logical document submitted by this operation after its commit.
	// Only synchronous completion modes support this. These operations do not
	// share a folded commit with preceding or following operations.
	ReturnDocument bool `protobuf:"varint,4,opt,name=return_document,json=returnDocument,proto3" json:"return_document,omitempty"`
	// contains filtered or unexported fields
}

func (*WriteOperation) Descriptor deprecated

func (*WriteOperation) Descriptor() ([]byte, []int)

Deprecated: Use WriteOperation.ProtoReflect.Descriptor instead.

func (*WriteOperation) GetAction

func (x *WriteOperation) GetAction() isWriteOperation_Action

func (*WriteOperation) GetAddress

func (x *WriteOperation) GetAddress() *RecordAddress

func (*WriteOperation) GetMerge

func (x *WriteOperation) GetMerge() *MergeOperation

func (*WriteOperation) GetPut

func (x *WriteOperation) GetPut() *PutOperation

func (*WriteOperation) GetReturnDocument

func (x *WriteOperation) GetReturnDocument() bool

func (*WriteOperation) MarshalToSizedBufferVT

func (m *WriteOperation) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*WriteOperation) MarshalToVT

func (m *WriteOperation) MarshalToVT(dAtA []byte) (int, error)

func (*WriteOperation) MarshalVT

func (m *WriteOperation) MarshalVT() (dAtA []byte, err error)

func (*WriteOperation) ProtoMessage

func (*WriteOperation) ProtoMessage()

func (*WriteOperation) ProtoReflect

func (x *WriteOperation) ProtoReflect() protoreflect.Message

func (*WriteOperation) Reset

func (x *WriteOperation) Reset()

func (*WriteOperation) SizeVT

func (m *WriteOperation) SizeVT() (n int)

func (*WriteOperation) String

func (x *WriteOperation) String() string

func (*WriteOperation) UnmarshalVT

func (m *WriteOperation) UnmarshalVT(dAtA []byte) error

type WriteOperation_Merge

type WriteOperation_Merge struct {
	Merge *MergeOperation `protobuf:"bytes,3,opt,name=merge,proto3,oneof"`
}

func (*WriteOperation_Merge) MarshalToSizedBufferVT

func (m *WriteOperation_Merge) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*WriteOperation_Merge) MarshalToVT

func (m *WriteOperation_Merge) MarshalToVT(dAtA []byte) (int, error)

func (*WriteOperation_Merge) SizeVT

func (m *WriteOperation_Merge) SizeVT() (n int)

type WriteOperation_Put

type WriteOperation_Put struct {
	Put *PutOperation `protobuf:"bytes,2,opt,name=put,proto3,oneof"`
}

func (*WriteOperation_Put) MarshalToSizedBufferVT

func (m *WriteOperation_Put) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*WriteOperation_Put) MarshalToVT

func (m *WriteOperation_Put) MarshalToVT(dAtA []byte) (int, error)

func (*WriteOperation_Put) SizeVT

func (m *WriteOperation_Put) SizeVT() (n int)

type WriteRequest

type WriteRequest struct {
	CompletionMode CompletionMode `` /* 132-byte string literal not displayed */
	// Operations for the same address are executed in request order. Operations
	// for different addresses may execute concurrently.
	Operations []*WriteOperation `protobuf:"bytes,2,rep,name=operations,proto3" json:"operations,omitempty"`
	// Programs can be declared once and referenced by digest from multiple merge
	// operations, avoiding repeated Lua source bytes in a synchronous batch.
	LuaPrograms []*LuaProgram `protobuf:"bytes,3,rep,name=lua_programs,json=luaPrograms,proto3" json:"lua_programs,omitempty"`
	// contains filtered or unexported fields
}

func (*WriteRequest) Descriptor deprecated

func (*WriteRequest) Descriptor() ([]byte, []int)

Deprecated: Use WriteRequest.ProtoReflect.Descriptor instead.

func (*WriteRequest) GetCompletionMode

func (x *WriteRequest) GetCompletionMode() CompletionMode

func (*WriteRequest) GetLuaPrograms

func (x *WriteRequest) GetLuaPrograms() []*LuaProgram

func (*WriteRequest) GetOperations

func (x *WriteRequest) GetOperations() []*WriteOperation

func (*WriteRequest) MarshalToSizedBufferVT

func (m *WriteRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*WriteRequest) MarshalToVT

func (m *WriteRequest) MarshalToVT(dAtA []byte) (int, error)

func (*WriteRequest) MarshalVT

func (m *WriteRequest) MarshalVT() (dAtA []byte, err error)

func (*WriteRequest) ProtoMessage

func (*WriteRequest) ProtoMessage()

func (*WriteRequest) ProtoReflect

func (x *WriteRequest) ProtoReflect() protoreflect.Message

func (*WriteRequest) Reset

func (x *WriteRequest) Reset()

func (*WriteRequest) SizeVT

func (m *WriteRequest) SizeVT() (n int)

func (*WriteRequest) String

func (x *WriteRequest) String() string

func (*WriteRequest) UnmarshalVT

func (m *WriteRequest) UnmarshalVT(dAtA []byte) error

type WriteResponse

type WriteResponse struct {
	Results []*WriteResult `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"`
	// contains filtered or unexported fields
}

Each frame contains one final result, identified by operation_index. A disconnected stream does not establish the outcome of missing operations.

func (*WriteResponse) Descriptor deprecated

func (*WriteResponse) Descriptor() ([]byte, []int)

Deprecated: Use WriteResponse.ProtoReflect.Descriptor instead.

func (*WriteResponse) GetResults

func (x *WriteResponse) GetResults() []*WriteResult

func (*WriteResponse) MarshalToSizedBufferVT

func (m *WriteResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*WriteResponse) MarshalToVT

func (m *WriteResponse) MarshalToVT(dAtA []byte) (int, error)

func (*WriteResponse) MarshalVT

func (m *WriteResponse) MarshalVT() (dAtA []byte, err error)

func (*WriteResponse) ProtoMessage

func (*WriteResponse) ProtoMessage()

func (*WriteResponse) ProtoReflect

func (x *WriteResponse) ProtoReflect() protoreflect.Message

func (*WriteResponse) Reset

func (x *WriteResponse) Reset()

func (*WriteResponse) SizeVT

func (m *WriteResponse) SizeVT() (n int)

func (*WriteResponse) String

func (x *WriteResponse) String() string

func (*WriteResponse) UnmarshalVT

func (m *WriteResponse) UnmarshalVT(dAtA []byte) error

type WriteResult

type WriteResult struct {
	OperationIndex uint32      `protobuf:"varint,1,opt,name=operation_index,json=operationIndex,proto3" json:"operation_index,omitempty"`
	Status         WriteStatus `protobuf:"varint,2,opt,name=status,proto3,enum=sink.v1.WriteStatus" json:"status,omitempty"`
	Failure        *Failure    `protobuf:"bytes,4,opt,name=failure,proto3" json:"failure,omitempty"`
	Document       *Document   `protobuf:"bytes,5,opt,name=document,proto3" json:"document,omitempty"`
	// contains filtered or unexported fields
}

func (*WriteResult) Descriptor deprecated

func (*WriteResult) Descriptor() ([]byte, []int)

Deprecated: Use WriteResult.ProtoReflect.Descriptor instead.

func (*WriteResult) GetDocument

func (x *WriteResult) GetDocument() *Document

func (*WriteResult) GetFailure

func (x *WriteResult) GetFailure() *Failure

func (*WriteResult) GetOperationIndex

func (x *WriteResult) GetOperationIndex() uint32

func (*WriteResult) GetStatus

func (x *WriteResult) GetStatus() WriteStatus

func (*WriteResult) MarshalToSizedBufferVT

func (m *WriteResult) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*WriteResult) MarshalToVT

func (m *WriteResult) MarshalToVT(dAtA []byte) (int, error)

func (*WriteResult) MarshalVT

func (m *WriteResult) MarshalVT() (dAtA []byte, err error)

func (*WriteResult) ProtoMessage

func (*WriteResult) ProtoMessage()

func (*WriteResult) ProtoReflect

func (x *WriteResult) ProtoReflect() protoreflect.Message

func (*WriteResult) Reset

func (x *WriteResult) Reset()

func (*WriteResult) SizeVT

func (m *WriteResult) SizeVT() (n int)

func (*WriteResult) String

func (x *WriteResult) String() string

func (*WriteResult) UnmarshalVT

func (m *WriteResult) UnmarshalVT(dAtA []byte) error

type WriteStatus

type WriteStatus int32
const (
	WriteStatus_WRITE_STATUS_UNSPECIFIED WriteStatus = 0
	// The asynchronous queue accepted the operation durably.
	WriteStatus_WRITE_STATUS_ACCEPTED WriteStatus = 1
	// The storage adapter applied the operation.
	WriteStatus_WRITE_STATUS_APPLIED WriteStatus = 2
	// A CREATE, REPLACE, or adapter-level revision condition did not match.
	WriteStatus_WRITE_STATUS_PRECONDITION_FAILED WriteStatus = 3
	WriteStatus_WRITE_STATUS_FAILED              WriteStatus = 4
)

func (WriteStatus) Descriptor

func (WriteStatus) Enum

func (x WriteStatus) Enum() *WriteStatus

func (WriteStatus) EnumDescriptor deprecated

func (WriteStatus) EnumDescriptor() ([]byte, []int)

Deprecated: Use WriteStatus.Descriptor instead.

func (WriteStatus) Number

func (x WriteStatus) Number() protoreflect.EnumNumber

func (WriteStatus) String

func (x WriteStatus) String() string

func (WriteStatus) Type

Jump to

Keyboard shortcuts

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